JGraph X 1.3.0.0

## Uses of Class
com.mxgraph.util.mxRectangle

Packages that use mxRectangle
com.mxgraph.layout: This package contains various graph layouts.
com.mxgraph.model: This package contains the classes that define a graph model.
com.mxgraph.reader: This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model.
com.mxgraph.swing: This package contains the main component for JFC/Swing, namely the graph component and the outline component.
com.mxgraph.swing.handler: This package contains all classes required for mouse event handling in JFC/Swing.
com.mxgraph.swing.util: This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays.
com.mxgraph.util: This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history.
com.mxgraph.view: This package implements the graph component, represented by the mxGraph class.

Uses of mxRectangle in com.mxgraph.layout

Methods in com.mxgraph.layout that return mxRectangle
`protected mxRectangle` `mxCompactTreeLayout.apply(mxCompactTreeLayout.TreeNode node, mxRectangle bounds)`
`mxRectangle` `mxStackLayout.getContainerSize()` Hook for subclassers to return the container size.
`mxRectangle` `mxPartitionLayout.getContainerSize()` Hook for subclassers to return the container size.
`mxRectangle` `mxGraphLayout.getVertexBounds(java.lang.Object vertex)` Returns an <mxRectangle> that defines the bounds of the given cell or the bounding box if <useBoundingBox> is true.
`protected mxRectangle` `mxCompactTreeLayout.horizontalLayout(mxCompactTreeLayout.TreeNode node, double x0, double y0, mxRectangle bounds)`
`mxRectangle` `mxGraphLayout.setVertexLocation(java.lang.Object vertex, double x, double y)` Sets the new position of the given cell taking into account the size of the bounding box if <useBoundingBox> is true.
`protected mxRectangle` `mxCompactTreeLayout.verticalLayout(mxCompactTreeLayout.TreeNode node, java.lang.Object parent, double x0, double y0, mxRectangle bounds)`

Methods in com.mxgraph.layout with parameters of type mxRectangle
`protected mxRectangle` `mxCompactTreeLayout.apply(mxCompactTreeLayout.TreeNode node, mxRectangle bounds)`
`protected mxRectangle` `mxCompactTreeLayout.horizontalLayout(mxCompactTreeLayout.TreeNode node, double x0, double y0, mxRectangle bounds)`
`protected mxRectangle` `mxCompactTreeLayout.verticalLayout(mxCompactTreeLayout.TreeNode node, java.lang.Object parent, double x0, double y0, mxRectangle bounds)`

Uses of mxRectangle in com.mxgraph.model

Subclasses of mxRectangle in com.mxgraph.model
`class` `mxGeometry` Represents the geometry of a cell.

Fields in com.mxgraph.model declared as mxRectangle
`protected mxRectangle` `mxGeometry.alternateBounds` Stores alternate values for x, y, width and height in a rectangle.

Methods in com.mxgraph.model that return mxRectangle
`mxRectangle` `mxGeometry.getAlternateBounds()` Returns the alternate bounds.

Methods in com.mxgraph.model with parameters of type mxRectangle
`void` `mxGeometry.setAlternateBounds(mxRectangle rect)` Sets the alternate bounds to the given rectangle.

Uses of mxRectangle in com.mxgraph.reader

Fields in com.mxgraph.reader declared as mxRectangle
`protected mxRectangle` `mxGraphViewImageReader.clip` Defines the clip to be drawn.

Methods in com.mxgraph.reader that return mxRectangle
`mxRectangle` `mxGraphViewImageReader.getClip()`

Methods in com.mxgraph.reader with parameters of type mxRectangle
`void` `mxGraphViewImageReader.setClip(mxRectangle value)`

Uses of mxRectangle in com.mxgraph.swing

Fields in com.mxgraph.swing declared as mxRectangle
`protected mxRectangle` `mxGraphOutline.repaintClip` Clip of the triple buffer to be repainted.

Methods in com.mxgraph.swing that return mxRectangle
`mxRectangle` `mxGraphComponent.getLayoutAreaSize()` Returns the size of the area that layouts can operate in.

Uses of mxRectangle in com.mxgraph.swing.handler

Fields in com.mxgraph.swing.handler declared as mxRectangle
`protected mxRectangle` `mxGraphHandler.bbox` Scaled, translated bounding box of the selection cells.
`protected mxRectangle` `mxGraphHandler.cellBounds` Scaled, translated bounds of the selection cells.
`protected mxRectangle` `mxGraphHandler.transferBounds` Unscaled, untranslated bounding box of the selection cells.

Methods in com.mxgraph.swing.handler that return mxRectangle
`protected mxRectangle` `mxVertexHandler.union(mxRectangle bounds, double dx, double dy, int index)`

Methods in com.mxgraph.swing.handler with parameters of type mxRectangle
`protected boolean` `mxGraphTransferHandler.importCells(mxGraphComponent graphComponent, java.lang.Object[] cells, mxRectangle bounds)` Returns true if the cells have been imported.
`protected mxRectangle` `mxVertexHandler.union(mxRectangle bounds, double dx, double dy, int index)`

Uses of mxRectangle in com.mxgraph.swing.util

Fields in com.mxgraph.swing.util declared as mxRectangle
`protected mxRectangle` `mxGraphTransferable.bounds`

Methods in com.mxgraph.swing.util that return mxRectangle
`mxRectangle` `mxGraphTransferable.getBounds()` Returns the unscaled, untranslated bounding box of the cells.
`mxRectangle` `mxCellOverlay.getBounds(mxCellState state)`
`mxRectangle` `mxICellOverlay.getBounds(mxCellState state)`

Constructors in com.mxgraph.swing.util with parameters of type mxRectangle
`mxGraphTransferable(java.lang.Object[] cells, mxRectangle bounds)`
`mxGraphTransferable(java.lang.Object[] cells, mxRectangle bounds, javax.swing.ImageIcon image)`

Uses of mxRectangle in com.mxgraph.util

Methods in com.mxgraph.util that return mxRectangle
`static mxRectangle` `mxUtils.getBoundingBox(mxRectangle rect, double rotation)` Returns the bounding box for the rotated rectangle.
`static mxRectangle` `mxUtils.getLabelPaintBounds(java.lang.String label, java.util.Map<java.lang.String,java.lang.Object> style, boolean isHtml, mxPoint offset, mxRectangle vertexBounds, double scale)` Returns the paint bounds for the given label.
`static mxRectangle` `mxUtils.getLabelSize(java.lang.String label, java.util.Map<java.lang.String,java.lang.Object> style, boolean isHtml)` Returns the size for the given label.

`static mxRectangle`

`mxUtils.getScaledLabelBounds(double x, double y, mxRectangle size, double outerWidth, double outerHeight, java.util.Map<java.lang.String,java.lang.Object> style, double scale)`
Returns the bounds for a label for the given location and size, taking into account the alignment and spacing in the specified style, as well as the width and height of the rectangle that contains the label.

`static mxRectangle` `mxUtils.getSizeForHtml(java.lang.String markup, java.util.Map<java.lang.String,java.lang.Object> style)` Returns an mxRectangle with the size (width and height in pixels) of the given HTML markup.
`static mxRectangle` `mxUtils.getSizeForString(java.lang.String text, java.awt.Font font)` Returns an <mxRectangle> with the size (width and height in pixels) of the given string.

Methods in com.mxgraph.util with parameters of type mxRectangle
`void` `mxRectangle.add(mxRectangle rect)` Adds the given rectangle to this rectangle.
`static java.awt.image.BufferedImage` `mxCellRenderer.createBufferedImage(mxGraph graph, java.lang.Object[] cells, double scale, java.awt.Color background, boolean antiAlias, mxRectangle clip)`
`static java.awt.image.BufferedImage` `mxCellRenderer.createBufferedImage(mxGraph graph, java.lang.Object[] cells, double scale, java.awt.Color background, boolean antiAlias, mxRectangle clip, mxGraphics2DCanvas graphicsCanvas)`
`static org.w3c.dom.Document` `mxCellRenderer.createHtmlDocument(mxGraph graph, java.lang.Object[] cells, double scale, java.awt.Color background, mxRectangle clip)`
`static org.w3c.dom.Document` `mxCellRenderer.createSvgDocument(mxGraph graph, java.lang.Object[] cells, double scale, java.awt.Color background, mxRectangle clip)`
`static org.w3c.dom.Document` `mxCellRenderer.createVmlDocument(mxGraph graph, java.lang.Object[] cells, double scale, java.awt.Color background, mxRectangle clip)`
`static mxICanvas` `mxCellRenderer.drawCells(mxGraph graph, java.lang.Object[] cells, double scale, mxRectangle clip, mxCellRenderer.CanvasFactory factory)` Draws the given cells using a Graphics2D canvas and returns the buffered image that represents the cells.
`static mxRectangle` `mxUtils.getBoundingBox(mxRectangle rect, double rotation)` Returns the bounding box for the rotated rectangle.
`static mxRectangle` `mxUtils.getLabelPaintBounds(java.lang.String label, java.util.Map<java.lang.String,java.lang.Object> style, boolean isHtml, mxPoint offset, mxRectangle vertexBounds, double scale)` Returns the paint bounds for the given label.

`static mxRectangle`

`mxUtils.getScaledLabelBounds(double x, double y, mxRectangle size, double outerWidth, double outerHeight, java.util.Map<java.lang.String,java.lang.Object> style, double scale)`
Returns the bounds for a label for the given location and size, taking into account the alignment and spacing in the specified style, as well as the width and height of the rectangle that contains the label.

Constructors in com.mxgraph.util with parameters of type mxRectangle
`mxRectangle(mxRectangle rect)` Constructs a copy of the given rectangle.

Uses of mxRectangle in com.mxgraph.view

Subclasses of mxRectangle in com.mxgraph.view
`class` `mxCellState` Represents the current state of a cell in a given graph view.

Fields in com.mxgraph.view declared as mxRectangle
`protected mxRectangle` `mxCellState.boundingBox` Holds the largest rectangle which contains all rendering for this cell.
`protected mxRectangle` `mxGraphView.graphBounds` Caches the current bounds of the graph.
`protected mxRectangle` `mxCellState.labelBounds` Holds the rectangle which contains the label.
`protected mxRectangle` `mxGraph.maximumGraphBounds` <mxRectangle> that specifies the area in which all cells in the diagram should be placed.
`protected mxRectangle` `mxGraph.minimumGraphSize` mxRectangle that specifies the minimum size of the graph canvas inside the scrollpane.
`protected mxRectangle` `mxTemporaryCellStates.oldBounds`

Methods in com.mxgraph.view that return mxRectangle
`mxRectangle` `mxCellState.getBoundingBox()` Returns the bounding box.
`mxRectangle` `mxGraph.getBoundingBox(java.lang.Object cell)` Returns the bounds of the given cell.
`mxRectangle` `mxGraphView.getBoundingBox(java.lang.Object[] cells)` Returns the bounding box for an array of cells or null, if no cells are specified.
`mxRectangle` `mxGraph.getBoundingBox(java.lang.Object cell, boolean includeEdges)` Returns the bounding box of the given cell including all connected edges if includeEdge is true.
`mxRectangle` `mxGraph.getBoundingBox(java.lang.Object cell, boolean includeEdges, boolean includeDescendants)` Returns the bounding box of the given cell including all connected edges if includeEdge is true.
`mxRectangle` `mxGraph.getBoundingBoxFromGeometry(java.lang.Object[] cells)` Returns the bounding box for the geometries of the vertices in the given array of cells.
`mxRectangle` `mxGraphView.getBounds(java.lang.Object[] cells)` Returns the bounding box for an array of cells or null, if no cells are specified.
`mxRectangle` `mxGraphView.getBounds(java.lang.Object[] cells, boolean boundingBox)` Returns the bounding box for an array of cells or null, if no cells are specified.
`mxRectangle` `mxGraph.getBoundsForCells(java.lang.Object[] cells, boolean includeEdges, boolean includeDescendants, boolean boundingBox)` Returns the bounds for the given cells.
`mxRectangle` `mxGraph.getBoundsForGroup(java.lang.Object group, java.lang.Object[] children, double border)` Returns the bounds to be used for the given group and children.
`mxRectangle` `mxGraph.getCellBounds(java.lang.Object cell)` Returns the bounds of the given cell.
`mxRectangle` `mxGraph.getCellBounds(java.lang.Object cell, boolean includeEdges)` Returns the bounds of the given cell including all connected edges if includeEdge is true.
`mxRectangle` `mxGraph.getCellBounds(java.lang.Object cell, boolean includeEdges, boolean includeDescendants)` Returns the bounds of the given cell including all connected edges if includeEdge is true.
`mxRectangle` `mxGraph.getCellBounds(java.lang.Object cell, boolean includeEdges, boolean includeDescendants, boolean boundingBox)` Returns the bounds of the given cell including all connected edges if includeEdge is true.
`mxRectangle` `mxGraph.getCellContainmentArea(java.lang.Object cell)` Returns the mxRectangle inside which a cell is to be kept.
`mxRectangle` `mxGraphView.getGraphBounds()` Returns the cached diagram bounds.
`mxRectangle` `mxGraph.getGraphBounds()` Returns the bounds of the visible graph.
`mxRectangle` `mxCellState.getLabelBounds()` Returns the label bounds.
`mxRectangle` `mxGraph.getMaximumGraphBounds()`
`mxRectangle` `mxGraph.getMinimumGraphSize()` Returns the minimum size of the diagram.
`mxRectangle` `mxGraph.getPaintBounds(java.lang.Object[] cells)` Returns the bounding box of the given cells and their descendants.
`mxRectangle` `mxCellState.getPerimeterBounds()` Returns the rectangle that should be used as the perimeter of the cell.
`mxRectangle` `mxCellState.getPerimeterBounds(double border)` Returns the rectangle that should be used as the perimeter of the cell.
`mxRectangle` `mxGraphView.getPerimeterBounds(mxCellState terminal, mxCellState edge, boolean isSource)` Returns the perimeter bounds for the given terminal, edge pair.
`mxRectangle` `mxGraph.getPreferredSizeForCell(java.lang.Object cell)` Returns the preferred width and height of the given <mxCell> as an <mxRectangle>.
`mxRectangle` `mxGraph.getStartSize(java.lang.Object swimlane)` Returns the start size of the given swimlane, that is, the width or height of the part that contains the title, depending on the horizontal style.
`mxRectangle` `mxGraph.graphModelChanged(mxIGraphModel sender, java.util.List<mxUndoableEdit.mxUndoableChange> changes)` Called when the graph model changes.
`mxRectangle` `mxGraph.processChange(mxUndoableEdit.mxUndoableChange change, boolean invalidate)` Processes the given change and invalidates the respective cached data in <view>.
`mxRectangle` `mxGraph.processChanges(java.util.List<mxUndoableEdit.mxUndoableChange> changes, boolean invalidate)` Processes the changes and returns the minimal rectangle to be repainted in the buffer.
`mxRectangle` `mxGraphView.updateBoundingBox(mxCellState state)` Updates the bounding box in the given cell state.
`mxRectangle` `mxGraphView.validatePoints(mxCellState parentState, java.lang.Object cell)` Validates the points for the state of the given cell recursively if the cell is not collapsed and returns the bounding box of all visited states as a rectangle.

Methods in com.mxgraph.view with parameters of type mxRectangle
`mxPoint` `mxPerimeter.mxPerimeterFunction.apply(mxRectangle bounds, mxCellState edgeState, mxCellState terminalState, boolean isSource, mxPoint next)` Implements a perimeter function.
`void` `mxGraph.cellsResized(java.lang.Object[] cells, mxRectangle[] bounds)` Sets the bounds of the given cells and fires a <mxEvent.CELLS_RESIZED> event.
`void` `mxGraph.repaint(mxRectangle region)` Fires a repaint event.
`java.lang.Object` `mxGraph.resizeCell(java.lang.Object cell, mxRectangle bounds)` Sets the bounds of the given cell using resizeCells.
`java.lang.Object[]` `mxGraph.resizeCells(java.lang.Object[] cells, mxRectangle[] bounds)` Sets the bounds of the given cells and fires a mxEvent.RESIZE_CELLS event.
`void` `mxCellState.setBoundingBox(mxRectangle boundingBox)` Sets the bounding box.
`void` `mxGraphView.setGraphBounds(mxRectangle value)` Sets the graph bounds.
`void` `mxCellState.setLabelBounds(mxRectangle labelBounds)` Sets the label bounds.
`void` `mxGraph.setMaximumGraphBounds(mxRectangle maximumGraphBounds)`
`void` `mxGraph.setMinimumGraphSize(mxRectangle value)`

JGraph X 1.3.0.0

Copyright (c) 2008 Gaudenz Alder. All rights reserved.