Uses of Class
com.mxgraph.util.mxRectangle
-
Packages that use mxRectangle Package Description com.mxgraph.canvas This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML.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.shape 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.swing.view This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes.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.canvas
Methods in com.mxgraph.canvas with parameters of type mxRectangle Modifier and Type Method Description java.awt.PaintmxGraphics2DCanvas. createFillPaint(mxRectangle bounds, java.util.Map<java.lang.String,java.lang.Object> style)java.awt.Graphics2DmxGraphics2DCanvas. createTemporaryGraphics(java.util.Map<java.lang.String,java.lang.Object> style, float opacity, mxRectangle bounds) -
Uses of mxRectangle in com.mxgraph.layout
Methods in com.mxgraph.layout that return mxRectangle Modifier and Type Method Description protected mxRectanglemxCompactTreeLayout. apply(mxCompactTreeLayout.TreeNode node, mxRectangle bounds)mxRectanglemxPartitionLayout. getContainerSize()Hook for subclassers to return the container size.mxRectanglemxStackLayout. getContainerSize()Hook for subclassers to return the container size.mxRectanglemxGraphLayout. getVertexBounds(java.lang.Object vertex)Returns anthat defines the bounds of the given cell or the bounding box if is true. protected mxRectanglemxCompactTreeLayout. horizontalLayout(mxCompactTreeLayout.TreeNode node, double x0, double y0, mxRectangle bounds)mxRectanglemxGraphLayout. 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 ifis true. protected mxRectanglemxCompactTreeLayout. verticalLayout(mxCompactTreeLayout.TreeNode node, java.lang.Object parent, double x0, double y0, mxRectangle bounds)Methods in com.mxgraph.layout with parameters of type mxRectangle Modifier and Type Method Description protected mxRectanglemxCompactTreeLayout. apply(mxCompactTreeLayout.TreeNode node, mxRectangle bounds)protected mxRectanglemxCompactTreeLayout. horizontalLayout(mxCompactTreeLayout.TreeNode node, double x0, double y0, mxRectangle bounds)protected mxRectanglemxCompactTreeLayout. 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 Modifier and Type Class Description classmxGeometryRepresents the geometry of a cell.Fields in com.mxgraph.model declared as mxRectangle Modifier and Type Field Description protected mxRectanglemxGeometry. alternateBoundsStores alternate values for x, y, width and height in a rectangle.Methods in com.mxgraph.model that return mxRectangle Modifier and Type Method Description mxRectanglemxGeometry. getAlternateBounds()Returns the alternate bounds.Methods in com.mxgraph.model with parameters of type mxRectangle Modifier and Type Method Description voidmxGeometry. 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 Modifier and Type Field Description protected mxRectanglemxGraphViewImageReader. clipDefines the clip to be drawn.Methods in com.mxgraph.reader that return mxRectangle Modifier and Type Method Description mxRectanglemxGraphViewImageReader. getClip()Methods in com.mxgraph.reader with parameters of type mxRectangle Modifier and Type Method Description voidmxGraphViewImageReader. setClip(mxRectangle value) -
Uses of mxRectangle in com.mxgraph.shape
Fields in com.mxgraph.shape declared as mxRectangle Modifier and Type Field Description mxRectanglemxCurveLabelShape.LabelGlyphCache. drawingBoundsThe un-rotated rectangle that just bounds this characterstatic mxRectanglemxCurveLabelShape. INVALID_GLYPH_BOUNDSIndicates that a glyph does not have valid drawing bounds, usually because it is not visibleprotected mxRectanglemxCurveLabelShape. labelBoundsCache of the bounds of the labelmxRectanglemxCurveLabelShape.LabelGlyphCache. labelGlyphBoundsCache of the bounds of the individual element of the label of this edge.Methods in com.mxgraph.shape that return mxRectangle Modifier and Type Method Description protected mxRectanglemxStencil. computeAspect(mxCellState state, mxRectangle bounds, java.lang.String direction)Returns a rectangle that contains the offset in x and y and the horizontal and vertical scale in width and height used to draw this shape inside the given rectangle.mxRectanglemxCurveLabelShape. getCenterVisiblePosition()Returns the drawing bounds of the central indexed visible glyphprotected mxRectanglemxBasicShape. getGradientBounds(mxGraphics2DCanvas canvas, mxCellState state)protected mxRectanglemxSwimlaneShape. getGradientBounds(mxGraphics2DCanvas canvas, mxCellState state)mxRectanglemxCurveLabelShape. getLabelBounds()mxRectanglemxCurveLabelShape. updateLabelBounds(java.lang.String label, java.util.Map<java.lang.String,java.lang.Object> style)Updates the cached position and size of each glyph in the edge label.Methods in com.mxgraph.shape with parameters of type mxRectangle Modifier and Type Method Description protected mxRectanglemxStencil. computeAspect(mxCellState state, mxRectangle bounds, java.lang.String direction)Returns a rectangle that contains the offset in x and y and the horizontal and vertical scale in width and height used to draw this shape inside the given rectangle.protected voidmxStencil. drawElement(mxGraphicsCanvas2D canvas, mxCellState state, org.w3c.dom.Element node, mxRectangle aspect)Drawsthe given element.protected voidmxStencil. drawShadow(mxGraphicsCanvas2D canvas, mxCellState state, double rotation, boolean flipH, boolean flipV, mxRectangle bounds, double alpha, boolean filled, mxRectangle aspect)Draws the shadow.booleanmxStencil. drawShape(mxGraphicsCanvas2D canvas, mxCellState state, mxRectangle bounds, mxRectangle aspect, boolean background)Draws this stencil inside the given bounds. -
Uses of mxRectangle in com.mxgraph.swing
Fields in com.mxgraph.swing declared as mxRectangle Modifier and Type Field Description protected mxRectanglemxGraphOutline. repaintClipClip of the triple buffer to be repainted.Methods in com.mxgraph.swing that return mxRectangle Modifier and Type Method Description mxRectanglemxGraphComponent. 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 Modifier and Type Field Description protected mxRectanglemxGraphHandler. bboxScaled, translated bounding box of the selection cells.protected mxRectanglemxGraphHandler. cellBoundsScaled, translated bounds of the selection cells.protected mxRectanglemxInsertHandler. currentprotected mxRectanglemxMovePreview. lastDirtyprotected mxRectanglemxGraphHandler. transferBoundsUnscaled, untranslated bounding box of the selection cells.Methods in com.mxgraph.swing.handler that return mxRectangle Modifier and Type Method Description protected mxRectanglemxMovePreview. getPlaceholderBounds(mxCellState startState)protected mxRectanglemxVertexHandler. union(mxRectangle bounds, double dx, double dy, int index)Methods in com.mxgraph.swing.handler with parameters of type mxRectangle Modifier and Type Method Description mxGraphTransferablemxGraphTransferHandler. createGraphTransferable(mxGraphComponent graphComponent, java.lang.Object[] cells, mxRectangle bounds, javax.swing.ImageIcon icon)protected java.awt.RectanglemxConnectPreview. getDirtyRect(mxRectangle dirty)java.lang.ObjectmxInsertHandler. insertCell(mxRectangle bounds)protected voidmxMovePreview. repaint(mxRectangle dirty)protected mxRectanglemxVertexHandler. 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 Modifier and Type Field Description protected mxRectanglemxGraphTransferable. boundsprotected mxRectanglemxMorphing. dirtyMethods in com.mxgraph.swing.util that return mxRectangle Modifier and Type Method Description mxRectanglemxCellOverlay. getBounds(mxCellState state)mxRectanglemxGraphTransferable. getBounds()Returns the unscaled, untranslated bounding box of the cells.mxRectanglemxICellOverlay. getBounds(mxCellState state)Constructors in com.mxgraph.swing.util with parameters of type mxRectangle Constructor Description mxGraphTransferable(java.lang.Object[] cells, mxRectangle bounds)mxGraphTransferable(java.lang.Object[] cells, mxRectangle bounds, javax.swing.ImageIcon image) -
Uses of mxRectangle in com.mxgraph.swing.view
Methods in com.mxgraph.swing.view that return mxRectangle Modifier and Type Method Description protected mxRectanglemxCellStatePreview. revalidateState(mxCellState parentState, mxCellState state, double dx, double dy)mxRectanglemxCellStatePreview. show()Returns a dirty rectangle to be repainted in mxGraphControl. -
Uses of mxRectangle in com.mxgraph.util
Methods in com.mxgraph.util that return mxRectangle Modifier and Type Method Description static mxRectanglemxUtils. getBoundingBox(mxRectangle rect, double rotation)Returns the bounding box for the rotated rectangle.mxRectanglemxCurve. getBounds()static mxRectanglemxUtils. 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 mxRectanglemxUtils. getLabelPaintBounds(java.lang.String label, java.util.Map<java.lang.String,java.lang.Object> style, boolean isHtml, mxPoint offset, mxRectangle vertexBounds, double scale, boolean isEdge)Returns the paint bounds for the given label.static mxRectanglemxUtils. getLabelSize(java.lang.String label, java.util.Map<java.lang.String,java.lang.Object> style, boolean isHtml, double scale)Returns the size for the given label.static mxRectanglemxUtils. getLabelSize(java.lang.String label, java.util.Map<java.lang.String,java.lang.Object> style, boolean isHtml, double scale, double htmlWrapWidth)Returns the size for the given label.mxRectanglemxCurve. getRelativeFromAbsPoint(mxPoint absPoint, java.lang.String index)Calculates the position of an absolute in terms relative to this curve.static mxRectanglemxUtils. 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 mxRectanglemxUtils. getSizeForHtml(java.lang.String markup, java.util.Map<java.lang.String,java.lang.Object> style, double scale, double wrapWidth)Returns an mxRectangle with the size (width and height in pixels) of the given HTML markup.static mxRectanglemxUtils. getSizeForString(java.lang.String text, java.awt.Font font, double scale)Returns anwith the size (width and height in pixels) of the given string. Methods in com.mxgraph.util with parameters of type mxRectangle Modifier and Type Method Description voidmxRectangle. add(mxRectangle rect)Adds the given rectangle to this rectangle.mxPointmxCurve. collisionMove(java.lang.String index, mxRectangle rect, double buffer)Returns a point to move the input rectangle to, in order to attempt to place the rectangle away from the curve.static java.awt.image.BufferedImagemxCellRenderer. createBufferedImage(mxGraph graph, java.lang.Object[] cells, double scale, java.awt.Color background, boolean antiAlias, mxRectangle clip)static java.awt.image.BufferedImagemxCellRenderer. createBufferedImage(mxGraph graph, java.lang.Object[] cells, double scale, java.awt.Color background, boolean antiAlias, mxRectangle clip, mxGraphics2DCanvas graphicsCanvas)static org.w3c.dom.DocumentmxCellRenderer. createHtmlDocument(mxGraph graph, java.lang.Object[] cells, double scale, java.awt.Color background, mxRectangle clip)static org.w3c.dom.DocumentmxCellRenderer. createSvgDocument(mxGraph graph, java.lang.Object[] cells, double scale, java.awt.Color background, mxRectangle clip)static org.w3c.dom.DocumentmxCellRenderer. createVmlDocument(mxGraph graph, java.lang.Object[] cells, double scale, java.awt.Color background, mxRectangle clip)static mxICanvasmxCellRenderer. 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 mxRectanglemxUtils. getBoundingBox(mxRectangle rect, double rotation)Returns the bounding box for the rotated rectangle.static mxRectanglemxUtils. 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 mxRectanglemxUtils. getLabelPaintBounds(java.lang.String label, java.util.Map<java.lang.String,java.lang.Object> style, boolean isHtml, mxPoint offset, mxRectangle vertexBounds, double scale, boolean isEdge)Returns the paint bounds for the given label.static mxRectanglemxUtils. 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.protected mxPointmxCurve. intersectRectPerimeterPoint(java.lang.String curveIndex, mxRectangle rect, int indexSeg)Returns the point at which this curve segment intersects the boundary of the given rectangle, if it does so.protected intmxCurve. intersectRectPerimeterSeg(java.lang.String index, mxRectangle rect)Utility method to determine within which segment the specified rectangle intersects the specified curveprotected intmxCurve. intersectRectPerimeterSeg(java.lang.String index, mxRectangle rect, int startSegment)Utility method to determine within which segment the specified rectangle intersects the specified curve.mxPointmxCurve. intersectsRectPerimeter(java.lang.String index, mxRectangle rect)Returns the point at which this curve intersects the boundary of the given rectangle, if it does so.doublemxCurve. intersectsRectPerimeterDist(java.lang.String index, mxRectangle rect)Returns the distance from the start of the curve at which this curve intersects the boundary of the given rectangle, if it does so.Constructors in com.mxgraph.util with parameters of type mxRectangle Constructor Description mxRectangle(mxRectangle rect)Constructs a copy of the given rectangle. -
Uses of mxRectangle in com.mxgraph.view
Subclasses of mxRectangle in com.mxgraph.view Modifier and Type Class Description classmxCellStateRepresents the current state of a cell in a given graph view.Fields in com.mxgraph.view declared as mxRectangle Modifier and Type Field Description protected mxRectanglemxCellState. boundingBoxHolds the largest rectangle which contains all rendering for this cell.protected mxRectanglemxGraphView. graphBoundsCaches the current bounds of the graph.protected mxRectanglemxCellState. labelBoundsHolds the rectangle which contains the label.protected mxRectanglemxGraph. maximumGraphBoundsthat specifies the area in which all cells in the diagram should be placed. protected mxRectanglemxGraph. minimumGraphSizemxRectangle that specifies the minimum size of the graph canvas inside the scrollpane.protected mxRectanglemxTemporaryCellStates. oldBoundsMethods in com.mxgraph.view that return mxRectangle Modifier and Type Method Description mxRectanglemxCellState. getBoundingBox()Returns the bounding box.mxRectanglemxGraph. getBoundingBox(java.lang.Object cell)Returns the bounds of the given cell.mxRectanglemxGraph. getBoundingBox(java.lang.Object cell, boolean includeEdges)Returns the bounding box of the given cell including all connected edges if includeEdge is true.mxRectanglemxGraph. 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.mxRectanglemxGraphView. getBoundingBox(mxCellState state)Shortcut to validateCell with visible set to true.mxRectanglemxGraphView. getBoundingBox(mxCellState state, boolean recurse)Returns the bounding box of the shape and the label for the given cell state and its children if recurse is true.mxRectanglemxGraphView. getBoundingBox(java.lang.Object[] cells)Returns the bounding box for an array of cells or null, if no cells are specified.mxRectanglemxGraph. getBoundingBoxFromGeometry(java.lang.Object[] cells)Returns the bounding box for the geometries of the vertices in the given array of cells.mxRectanglemxGraphView. getBounds(java.lang.Object[] cells)Returns the bounding box for an array of cells or null, if no cells are specified.mxRectanglemxGraphView. getBounds(java.lang.Object[] cells, boolean boundingBox)Returns the bounding box for an array of cells or null, if no cells are specified.mxRectanglemxGraph. getBoundsForCells(java.lang.Object[] cells, boolean includeEdges, boolean includeDescendants, boolean boundingBox)Returns the bounds for the given cells.mxRectanglemxGraph. getBoundsForGroup(java.lang.Object group, java.lang.Object[] children, double border)Returns the bounds to be used for the given group and children.mxRectanglemxGraph. getCellBounds(java.lang.Object cell)Returns the bounds of the given cell.mxRectanglemxGraph. getCellBounds(java.lang.Object cell, boolean includeEdges)Returns the bounds of the given cell including all connected edges if includeEdge is true.mxRectanglemxGraph. getCellBounds(java.lang.Object cell, boolean includeEdges, boolean includeDescendants)Returns the bounds of the given cell including all connected edges if includeEdge is true.mxRectanglemxGraph. 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.mxRectanglemxGraph. getCellContainmentArea(java.lang.Object cell)Returns the mxRectangle inside which a cell is to be kept.mxRectanglemxGraph. getGraphBounds()Returns the bounds of the visible graph.mxRectanglemxGraphView. getGraphBounds()Returns the cached diagram bounds.mxRectanglemxCellState. getLabelBounds()Returns the label bounds.mxRectanglemxGraph. getMaximumGraphBounds()mxRectanglemxGraph. getMinimumGraphSize()Returns the minimum size of the diagram.mxRectanglemxGraph. getPaintBounds(java.lang.Object[] cells)Returns the bounding box of the given cells and their descendants.mxRectanglemxCellState. getPerimeterBounds()Returns the rectangle that should be used as the perimeter of the cell.mxRectanglemxCellState. getPerimeterBounds(double border)Returns the rectangle that should be used as the perimeter of the cell.mxRectanglemxGraphView. getPerimeterBounds(mxCellState terminal, double border)Returns the perimeter bounds for the given terminal, edge pair.mxRectanglemxGraph. getPreferredSizeForCell(java.lang.Object cell)Returns the preferred width and height of the givenas an . mxRectanglemxGraph. 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.mxRectanglemxGraph. graphModelChanged(mxIGraphModel sender, java.util.List<mxUndoableEdit.mxUndoableChange> changes)Called when the graph model changes.mxRectanglemxGraph. processChange(mxUndoableEdit.mxUndoableChange change, boolean invalidate, boolean ignoreDirty)Processes the given change and invalidates the respective cached data in. mxRectanglemxGraph. processChanges(java.util.List<mxUndoableEdit.mxUndoableChange> changes, boolean invalidate, boolean ignoreDirty)Processes the changes and returns the minimal rectangle to be repainted in the buffer.mxRectanglemxGraphView. updateBoundingBox(mxCellState state)Updates the bounding box in the given cell state.Methods in com.mxgraph.view with parameters of type mxRectangle Modifier and Type Method Description mxPointmxPerimeter.mxPerimeterFunction. apply(mxRectangle bounds, mxCellState vertex, mxPoint next, boolean orthogonal)Implements a perimeter function.voidmxGraph. cellsResized(java.lang.Object[] cells, mxRectangle[] bounds)Sets the bounds of the given cells and fires aevent. voidmxGraph. repaint(mxRectangle region)Fires a repaint event.java.lang.ObjectmxGraph. 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.voidmxCellState. setBoundingBox(mxRectangle boundingBox)Sets the bounding box.voidmxGraphView. setGraphBounds(mxRectangle value)Sets the graph bounds.voidmxCellState. setLabelBounds(mxRectangle labelBounds)Sets the label bounds.voidmxGraph. setMaximumGraphBounds(mxRectangle value)voidmxGraph. setMinimumGraphSize(mxRectangle value)
-