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.
|
Modifier and Type | Method and Description |
---|---|
Paint |
mxGraphics2DCanvas.createFillPaint(mxRectangle bounds,
Map<String,Object> style) |
Graphics2D |
mxGraphics2DCanvas.createTemporaryGraphics(Map<String,Object> style,
float opacity,
mxRectangle bounds) |
Modifier and Type | Method and Description |
---|---|
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(Object vertex)
Returns an
|
protected mxRectangle |
mxCompactTreeLayout.horizontalLayout(mxCompactTreeLayout.TreeNode node,
double x0,
double y0,
mxRectangle bounds) |
mxRectangle |
mxGraphLayout.setVertexLocation(Object vertex,
double x,
double y)
Sets the new position of the given cell taking into account the size of
the bounding box if
|
protected mxRectangle |
mxCompactTreeLayout.verticalLayout(mxCompactTreeLayout.TreeNode node,
Object parent,
double x0,
double y0,
mxRectangle bounds) |
Modifier and Type | Method and Description |
---|---|
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,
Object parent,
double x0,
double y0,
mxRectangle bounds) |
Modifier and Type | Class and Description |
---|---|
class |
mxGeometry
Represents the geometry of a cell.
|
Modifier and Type | Field and Description |
---|---|
protected mxRectangle |
mxGeometry.alternateBounds
Stores alternate values for x, y, width and height in a rectangle.
|
Modifier and Type | Method and Description |
---|---|
mxRectangle |
mxGeometry.getAlternateBounds()
Returns the alternate bounds.
|
Modifier and Type | Method and Description |
---|---|
void |
mxGeometry.setAlternateBounds(mxRectangle rect)
Sets the alternate bounds to the given rectangle.
|
Modifier and Type | Field and Description |
---|---|
protected mxRectangle |
mxGraphViewImageReader.clip
Defines the clip to be drawn.
|
Modifier and Type | Method and Description |
---|---|
mxRectangle |
mxGraphViewImageReader.getClip() |
Modifier and Type | Method and Description |
---|---|
void |
mxGraphViewImageReader.setClip(mxRectangle value) |
Modifier and Type | Field and Description |
---|---|
mxRectangle |
mxCurveLabelShape.LabelGlyphCache.drawingBounds
The un-rotated rectangle that just bounds this character
|
static mxRectangle |
mxCurveLabelShape.INVALID_GLYPH_BOUNDS
Indicates that a glyph does not have valid drawing bounds, usually
because it is not visible
|
protected mxRectangle |
mxCurveLabelShape.labelBounds
Cache of the bounds of the label
|
mxRectangle |
mxCurveLabelShape.LabelGlyphCache.labelGlyphBounds
Cache of the bounds of the individual element of the label of this
edge.
|
Modifier and Type | Method and Description |
---|---|
protected mxRectangle |
mxStencil.computeAspect(mxCellState state,
mxRectangle bounds,
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.
|
mxRectangle |
mxCurveLabelShape.getCenterVisiblePosition()
Returns the drawing bounds of the central indexed visible glyph
|
protected mxRectangle |
mxSwimlaneShape.getGradientBounds(mxGraphics2DCanvas canvas,
mxCellState state) |
protected mxRectangle |
mxBasicShape.getGradientBounds(mxGraphics2DCanvas canvas,
mxCellState state) |
mxRectangle |
mxCurveLabelShape.getLabelBounds() |
mxRectangle |
mxCurveLabelShape.updateLabelBounds(String label,
Map<String,Object> style)
Updates the cached position and size of each glyph in the edge label.
|
Modifier and Type | Method and Description |
---|---|
protected mxRectangle |
mxStencil.computeAspect(mxCellState state,
mxRectangle bounds,
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 void |
mxStencil.drawElement(mxGraphicsCanvas2D canvas,
mxCellState state,
Element node,
mxRectangle aspect)
Drawsthe given element.
|
protected void |
mxStencil.drawShadow(mxGraphicsCanvas2D canvas,
mxCellState state,
double rotation,
boolean flipH,
boolean flipV,
mxRectangle bounds,
double alpha,
boolean filled)
Draws the shadow.
|
boolean |
mxStencil.drawShape(mxGraphicsCanvas2D canvas,
mxCellState state,
mxRectangle bounds,
boolean background)
Draws this stencil inside the given bounds.
|
Modifier and Type | Field and Description |
---|---|
protected mxRectangle |
mxGraphOutline.repaintClip
Clip of the triple buffer to be repainted.
|
Modifier and Type | Method and Description |
---|---|
mxRectangle |
mxGraphComponent.getLayoutAreaSize()
Returns the size of the area that layouts can operate in.
|
Modifier and Type | Field and Description |
---|---|
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 |
mxInsertHandler.current |
protected mxRectangle |
mxMovePreview.lastDirty |
protected mxRectangle |
mxGraphHandler.transferBounds
Unscaled, untranslated bounding box of the selection cells.
|
Modifier and Type | Method and Description |
---|---|
protected mxRectangle |
mxMovePreview.getPlaceholderBounds(mxCellState startState) |
protected mxRectangle |
mxVertexHandler.union(mxRectangle bounds,
double dx,
double dy,
int index) |
Modifier and Type | Method and Description |
---|---|
mxGraphTransferable |
mxGraphTransferHandler.createGraphTransferable(mxGraphComponent graphComponent,
Object[] cells,
mxRectangle bounds,
ImageIcon icon) |
protected Rectangle |
mxConnectPreview.getDirtyRect(mxRectangle dirty) |
Object |
mxInsertHandler.insertCell(mxRectangle bounds) |
protected void |
mxMovePreview.repaint(mxRectangle dirty) |
protected mxRectangle |
mxVertexHandler.union(mxRectangle bounds,
double dx,
double dy,
int index) |
Modifier and Type | Field and Description |
---|---|
protected mxRectangle |
mxGraphTransferable.bounds |
protected mxRectangle |
mxMorphing.dirty |
Modifier and Type | Method and Description |
---|---|
mxRectangle |
mxGraphTransferable.getBounds()
Returns the unscaled, untranslated bounding box of the cells.
|
mxRectangle |
mxCellOverlay.getBounds(mxCellState state) |
mxRectangle |
mxICellOverlay.getBounds(mxCellState state) |
Constructor and Description |
---|
mxGraphTransferable(Object[] cells,
mxRectangle bounds) |
mxGraphTransferable(Object[] cells,
mxRectangle bounds,
ImageIcon image) |
Modifier and Type | Method and Description |
---|---|
protected mxRectangle |
mxCellStatePreview.revalidateState(mxCellState parentState,
mxCellState state,
double dx,
double dy) |
mxRectangle |
mxCellStatePreview.show()
Returns a dirty rectangle to be repainted in mxGraphControl.
|
Modifier and Type | Method and Description |
---|---|
static mxRectangle |
mxUtils.getBoundingBox(mxRectangle rect,
double rotation)
Returns the bounding box for the rotated rectangle.
|
mxRectangle |
mxCurve.getBounds() |
static mxRectangle |
mxUtils.getLabelPaintBounds(String label,
Map<String,Object> style,
boolean isHtml,
mxPoint offset,
mxRectangle vertexBounds,
double scale)
Returns the paint bounds for the given label.
|
static mxRectangle |
mxUtils.getLabelPaintBounds(String label,
Map<String,Object> style,
boolean isHtml,
mxPoint offset,
mxRectangle vertexBounds,
double scale,
boolean isEdge)
Returns the paint bounds for the given label.
|
static mxRectangle |
mxUtils.getLabelSize(String label,
Map<String,Object> style,
boolean isHtml,
double scale)
Returns the size for the given label.
|
static mxRectangle |
mxUtils.getLabelSize(String label,
Map<String,Object> style,
boolean isHtml,
double scale,
double htmlWrapWidth)
Returns the size for the given label.
|
mxRectangle |
mxCurve.getRelativeFromAbsPoint(mxPoint absPoint,
String index)
Calculates the position of an absolute in terms relative
to this curve.
|
static mxRectangle |
mxUtils.getScaledLabelBounds(double x,
double y,
mxRectangle size,
double outerWidth,
double outerHeight,
Map<String,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(String markup,
Map<String,Object> style,
double scale,
double wrapWidth)
Returns an mxRectangle with the size (width and height in pixels) of the
given HTML markup.
|
static mxRectangle |
mxUtils.getSizeForString(String text,
Font font,
double scale)
Returns an
|
Modifier and Type | Method and Description |
---|---|
void |
mxRectangle.add(mxRectangle rect)
Adds the given rectangle to this rectangle.
|
mxPoint |
mxCurve.collisionMove(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 BufferedImage |
mxCellRenderer.createBufferedImage(mxGraph graph,
Object[] cells,
double scale,
Color background,
boolean antiAlias,
mxRectangle clip) |
static BufferedImage |
mxCellRenderer.createBufferedImage(mxGraph graph,
Object[] cells,
double scale,
Color background,
boolean antiAlias,
mxRectangle clip,
mxGraphics2DCanvas graphicsCanvas) |
static Document |
mxCellRenderer.createHtmlDocument(mxGraph graph,
Object[] cells,
double scale,
Color background,
mxRectangle clip) |
static Document |
mxCellRenderer.createSvgDocument(mxGraph graph,
Object[] cells,
double scale,
Color background,
mxRectangle clip) |
static Document |
mxCellRenderer.createVmlDocument(mxGraph graph,
Object[] cells,
double scale,
Color background,
mxRectangle clip) |
static mxICanvas |
mxCellRenderer.drawCells(mxGraph graph,
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(String label,
Map<String,Object> style,
boolean isHtml,
mxPoint offset,
mxRectangle vertexBounds,
double scale)
Returns the paint bounds for the given label.
|
static mxRectangle |
mxUtils.getLabelPaintBounds(String label,
Map<String,Object> style,
boolean isHtml,
mxPoint offset,
mxRectangle vertexBounds,
double scale,
boolean isEdge)
Returns the paint bounds for the given label.
|
static mxRectangle |
mxUtils.getScaledLabelBounds(double x,
double y,
mxRectangle size,
double outerWidth,
double outerHeight,
Map<String,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 mxPoint |
mxCurve.intersectRectPerimeterPoint(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 int |
mxCurve.intersectRectPerimeterSeg(String index,
mxRectangle rect)
Utility method to determine within which segment the specified rectangle
intersects the specified curve
|
protected int |
mxCurve.intersectRectPerimeterSeg(String index,
mxRectangle rect,
int startSegment)
Utility method to determine within which segment the specified rectangle
intersects the specified curve.
|
mxPoint |
mxCurve.intersectsRectPerimeter(String index,
mxRectangle rect)
Returns the point at which this curve intersects the boundary of
the given rectangle, if it does so.
|
double |
mxCurve.intersectsRectPerimeterDist(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.
|
Constructor and Description |
---|
mxRectangle(mxRectangle rect)
Constructs a copy of the given rectangle.
|
Modifier and Type | Class and Description |
---|---|
class |
mxCellState
Represents the current state of a cell in a given graph view.
|
Modifier and Type | Field and Description |
---|---|
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
|
protected mxRectangle |
mxGraph.minimumGraphSize
mxRectangle that specifies the minimum size of the graph canvas inside
the scrollpane.
|
protected mxRectangle |
mxTemporaryCellStates.oldBounds |
Modifier and Type | Method and Description |
---|---|
mxRectangle |
mxCellState.getBoundingBox()
Returns the bounding box.
|
mxRectangle |
mxGraphView.getBoundingBox(mxCellState state)
Shortcut to validateCell with visible set to true.
|
mxRectangle |
mxGraphView.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.
|
mxRectangle |
mxGraph.getBoundingBox(Object cell)
Returns the bounds of the given cell.
|
mxRectangle |
mxGraphView.getBoundingBox(Object[] cells)
Returns the bounding box for an array of cells or null, if no cells are
specified.
|
mxRectangle |
mxGraph.getBoundingBox(Object cell,
boolean includeEdges)
Returns the bounding box of the given cell including all connected edges
if includeEdge is true.
|
mxRectangle |
mxGraph.getBoundingBox(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(Object[] cells)
Returns the bounding box for the geometries of the vertices in the
given array of cells.
|
mxRectangle |
mxGraphView.getBounds(Object[] cells)
Returns the bounding box for an array of cells or null, if no cells are
specified.
|
mxRectangle |
mxGraphView.getBounds(Object[] cells,
boolean boundingBox)
Returns the bounding box for an array of cells or null, if no cells are
specified.
|
mxRectangle |
mxGraph.getBoundsForCells(Object[] cells,
boolean includeEdges,
boolean includeDescendants,
boolean boundingBox)
Returns the bounds for the given cells.
|
mxRectangle |
mxGraph.getBoundsForGroup(Object group,
Object[] children,
double border)
Returns the bounds to be used for the given group and children.
|
mxRectangle |
mxGraph.getCellBounds(Object cell)
Returns the bounds of the given cell.
|
mxRectangle |
mxGraph.getCellBounds(Object cell,
boolean includeEdges)
Returns the bounds of the given cell including all connected edges
if includeEdge is true.
|
mxRectangle |
mxGraph.getCellBounds(Object cell,
boolean includeEdges,
boolean includeDescendants)
Returns the bounds of the given cell including all connected edges
if includeEdge is true.
|
mxRectangle |
mxGraph.getCellBounds(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(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(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,
double border)
Returns the perimeter bounds for the given terminal, edge pair.
|
mxRectangle |
mxGraph.getPreferredSizeForCell(Object cell)
Returns the preferred width and height of the given
|
mxRectangle |
mxGraph.getStartSize(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,
List<mxUndoableEdit.mxUndoableChange> changes)
Called when the graph model changes.
|
mxRectangle |
mxGraph.processChange(mxUndoableEdit.mxUndoableChange change,
boolean invalidate,
boolean ignoreDirty)
Processes the given change and invalidates the respective cached data
in
|
mxRectangle |
mxGraph.processChanges(List<mxUndoableEdit.mxUndoableChange> changes,
boolean invalidate,
boolean ignoreDirty)
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.
|
Modifier and Type | Method and Description |
---|---|
mxPoint |
mxPerimeter.mxPerimeterFunction.apply(mxRectangle bounds,
mxCellState vertex,
mxPoint next,
boolean orthogonal)
Implements a perimeter function.
|
void |
mxGraph.cellsResized(Object[] cells,
mxRectangle[] bounds)
Sets the bounds of the given cells and fires a
|
void |
mxGraph.repaint(mxRectangle region)
Fires a repaint event.
|
Object |
mxGraph.resizeCell(Object cell,
mxRectangle bounds)
Sets the bounds of the given cell using resizeCells.
|
Object[] |
mxGraph.resizeCells(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 value) |
void |
mxGraph.setMinimumGraphSize(mxRectangle value) |
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.