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 |
---|---|
mxPoint |
mxSvgCanvas.drawMarker(org.w3c.dom.Element parent,
java.lang.Object type,
mxPoint p0,
mxPoint pe,
float size,
float strokeWidth,
java.lang.String color)
Draws the specified marker as a child path in the given parent.
|
Modifier and Type | Method and Description |
---|---|
mxPoint |
mxSvgCanvas.drawMarker(org.w3c.dom.Element parent,
java.lang.Object type,
mxPoint p0,
mxPoint pe,
float size,
float strokeWidth,
java.lang.String color)
Draws the specified marker as a child path in the given parent.
|
void |
mxGraphics2DCanvas.paintPolyline(mxPoint[] points,
boolean rounded) |
Modifier and Type | Method and Description |
---|---|
void |
mxHtmlCanvas.drawLine(java.util.List<mxPoint> pts,
java.util.Map<java.lang.String,java.lang.Object> style)
Draws the given lines as segments between all points of the given list
of mxPoints.
|
org.w3c.dom.Element |
mxVmlCanvas.drawLine(java.util.List<mxPoint> pts,
java.util.Map<java.lang.String,java.lang.Object> style)
Draws the given lines as segments between all points of the given list
of mxPoints.
|
org.w3c.dom.Element |
mxSvgCanvas.drawLine(java.util.List<mxPoint> pts,
java.util.Map<java.lang.String,java.lang.Object> style)
Draws the given lines as segments between all points of the given list
of mxPoints.
|
Modifier and Type | Method and Description |
---|---|
mxPoint |
mxGraphLayout.getParentOffset(java.lang.Object parent) |
Modifier and Type | Method and Description |
---|---|
void |
mxGraphLayout.setEdgePoints(java.lang.Object edge,
java.util.List<mxPoint> points)
Sets the control points of the given edge to the given
list of mxPoints.
|
Modifier and Type | Class and Description |
---|---|
class |
mxGeometry
Represents the geometry of a cell.
|
Modifier and Type | Field and Description |
---|---|
protected mxPoint |
mxGeometry.offset
Holds the offset of the label for edges.
|
protected mxPoint |
mxGeometry.sourcePoint
Defines the source- and target-point of the edge.
|
protected mxPoint |
mxGeometry.targetPoint
Defines the source- and target-point of the edge.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<mxPoint> |
mxGeometry.points
List of mxPoints which specifies the control points along the edge.
|
Modifier and Type | Method and Description |
---|---|
mxPoint |
mxGeometry.getOffset()
Returns the offset.
|
mxPoint |
mxGraphModel.getOrigin(java.lang.Object cell)
Returns the absolute, accumulated origin for the children inside the
given parent.
|
mxPoint |
mxGeometry.getSourcePoint()
Returns the source point.
|
mxPoint |
mxGeometry.getTargetPoint()
Returns the target point.
|
mxPoint |
mxGeometry.getTerminalPoint(boolean isSource)
Returns the point representing the source or target point of this edge.
|
mxPoint |
mxGeometry.setTerminalPoint(mxPoint point,
boolean isSource)
Sets the sourcePoint or targetPoint to the given point and returns the
new point.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<mxPoint> |
mxGeometry.getPoints()
Returns the list of control points.
|
Modifier and Type | Method and Description |
---|---|
void |
mxGeometry.setOffset(mxPoint offset)
Sets the offset to the given point.
|
void |
mxGeometry.setSourcePoint(mxPoint sourcePoint)
Sets the source point.
|
void |
mxGeometry.setTargetPoint(mxPoint targetPoint)
Sets the target point.
|
mxPoint |
mxGeometry.setTerminalPoint(mxPoint point,
boolean isSource)
Sets the sourcePoint or targetPoint to the given point and returns the
new point.
|
Modifier and Type | Method and Description |
---|---|
void |
mxGeometry.setPoints(java.util.List<mxPoint> value)
Sets the list of control points to the given list.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<mxPoint> |
mxGraphViewReader.parsePoints(java.lang.String pts)
Parses the list of points into an object-oriented representation.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<mxPoint> |
mxCurveLabelShape.lastPoints
Cache of the last set of guide points that this label was calculated for
|
Modifier and Type | Method and Description |
---|---|
mxPoint[] |
mxLineShape.createPoints(mxGraphics2DCanvas canvas,
mxCellState state) |
mxPoint |
mxConnectorShape.paintMarker(mxGraphics2DCanvas canvas,
mxCellState state,
boolean source)
Draws the marker for the given edge.
|
mxPoint |
mxIMarker.paintMarker(mxGraphics2DCanvas canvas,
mxCellState state,
java.lang.String type,
mxPoint pe,
double nx,
double ny,
double size,
boolean source) |
Modifier and Type | Method and Description |
---|---|
mxPoint |
mxIMarker.paintMarker(mxGraphics2DCanvas canvas,
mxCellState state,
java.lang.String type,
mxPoint pe,
double nx,
double ny,
double size,
boolean source) |
Modifier and Type | Method and Description |
---|---|
protected mxLine |
mxCurveShape.getMarkerVector(java.util.List<mxPoint> points,
boolean source,
double markerSize)
Hook to override creation of the vector that the marker is drawn along
since it may not be the same as the vector between any two control
points
|
protected mxLine |
mxConnectorShape.getMarkerVector(java.util.List<mxPoint> points,
boolean source,
double markerSize)
Hook to override creation of the vector that the marker is drawn along
since it may not be the same as the vector between any two control
points
|
protected void |
mxCurveShape.paintPolyline(mxGraphics2DCanvas canvas,
java.util.List<mxPoint> points,
java.util.Map<java.lang.String,java.lang.Object> style) |
protected void |
mxConnectorShape.paintPolyline(mxGraphics2DCanvas canvas,
java.util.List<mxPoint> points,
java.util.Map<java.lang.String,java.lang.Object> style) |
void |
mxCurveShape.validateCurve(java.util.List<mxPoint> points,
double scale,
java.util.Map<java.lang.String,java.lang.Object> style)
Forces underlying curve to a valid state
|
Modifier and Type | Method and Description |
---|---|
protected mxPoint |
mxGraphComponent.getPageTranslate(double scale)
Should be called by a hook inside mxGraphView/mxGraph
|
mxPoint |
mxGraphComponent.getPointForEvent(java.awt.event.MouseEvent e)
Returns an mxPoint representing the given event in the unscaled,
non-translated coordinate space and applies the grid.
|
mxPoint |
mxGraphComponent.getPointForEvent(java.awt.event.MouseEvent e,
boolean addOffset)
Returns an mxPoint representing the given event in the unscaled,
non-translated coordinate space and applies the grid.
|
mxPoint |
mxGraphComponent.snapScaledPoint(mxPoint pt) |
mxPoint |
mxGraphComponent.snapScaledPoint(mxPoint pt,
double dx,
double dy) |
Modifier and Type | Method and Description |
---|---|
mxPoint |
mxGraphComponent.snapScaledPoint(mxPoint pt) |
mxPoint |
mxGraphComponent.snapScaledPoint(mxPoint pt,
double dx,
double dy) |
Modifier and Type | Field and Description |
---|---|
protected mxPoint |
mxConnectPreview.startPoint |
Modifier and Type | Method and Description |
---|---|
protected mxPoint |
mxEdgeHandler.convertPoint(mxPoint point,
boolean gridEnabled) |
mxPoint |
mxConnectPreview.getStartPoint() |
protected mxPoint |
mxConnectPreview.transformScreenPoint(double x,
double y) |
Modifier and Type | Method and Description |
---|---|
protected mxPoint |
mxEdgeHandler.convertPoint(mxPoint point,
boolean gridEnabled) |
protected void |
mxEdgeHandler.movePoint(java.lang.Object edge,
int pointIndex,
mxPoint point)
Moves the edges control point with the given index to the given point.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Object,mxPoint> |
mxMorphing.origins
Maps from cells to origins.
|
Modifier and Type | Method and Description |
---|---|
protected mxPoint |
mxMorphing.getDelta(mxCellState state)
Returns the vector between the current rendered state and the future
location of the state after the display will be updated.
|
protected mxPoint |
mxMorphing.getOriginForCell(java.lang.Object cell)
Returns the top, left corner of the given cell.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
mxMorphing.stopRecursion(mxCellState state,
mxPoint delta)
Returns true if the animation should not recursively find more
deltas for children if the given parent state has been animated.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<mxCellState,mxPoint> |
mxCellStatePreview.deltas |
Modifier and Type | Method and Description |
---|---|
mxPoint |
mxCellStatePreview.moveState(mxCellState state,
double dx,
double dy) |
mxPoint |
mxCellStatePreview.moveState(mxCellState state,
double dx,
double dy,
boolean add,
boolean includeEdges) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<mxCellState,mxPoint> |
mxCellStatePreview.getDeltas() |
Modifier and Type | Class and Description |
---|---|
class |
mxLine
Implements a line with double precision coordinates.
|
class |
mxRectangle
Implements a 2-dimensional rectangle with double precision coordinates.
|
Modifier and Type | Field and Description |
---|---|
protected mxPoint |
mxLine.endPoint
The end point of the line
|
Modifier and Type | Field and Description |
---|---|
java.util.List<mxPoint> |
mxCurve.guidePoints
The points this curve is drawn through.
|
Modifier and Type | Method and Description |
---|---|
mxPoint |
mxCurve.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.
|
protected mxPoint[] |
mxCurve.getBaseLabelCurve()
Returns the curve the label curve is too be based on
|
mxPoint[] |
mxCurve.getCurvePoints(java.lang.String index)
Obtains the points that make up the curve for the specified
curve index.
|
mxPoint[] |
mxCurve.getCurveSection(java.lang.String index,
double start,
double end)
Returns a section of the curve as an array of points
|
mxPoint |
mxLine.getEndPoint()
Returns the end point of the line.
|
mxPoint |
mxSpline.getPoint(double t) |
static mxPoint |
mxUtils.getRotatedPoint(mxPoint pt,
double cos,
double sin)
Rotates the given point by the given cos and sin.
|
static mxPoint |
mxUtils.getRotatedPoint(mxPoint pt,
double cos,
double sin,
mxPoint c)
Rotates the given point by the given cos and sin.
|
static mxPoint |
mxUtils.intersection(double x0,
double y0,
double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
Returns the intersection of two lines as an mxPoint.
|
mxPoint |
mxRectangle.intersectLine(double x0,
double y0,
double x1,
double y1)
Returns the point at which the specified point intersects the perimeter
of this rectangle or null if there is no intersection.
|
protected mxPoint |
mxCurve.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.
|
mxPoint |
mxCurve.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.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<mxPoint> |
mxCurve.getGuidePoints() |
static java.util.List<mxPoint> |
mxUtils.translatePoints(java.util.List<mxPoint> pts,
double dx,
double dy)
Creates a new list of new points obtained by translating the points in
the given list by the given vector.
|
Modifier and Type | Method and Description |
---|---|
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.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.
|
mxRectangle |
mxCurve.getRelativeFromAbsPoint(mxPoint absPoint,
java.lang.String index)
Calculates the position of an absolute in terms relative
to this curve.
|
static mxPoint |
mxUtils.getRotatedPoint(mxPoint pt,
double cos,
double sin)
Rotates the given point by the given cos and sin.
|
static mxPoint |
mxUtils.getRotatedPoint(mxPoint pt,
double cos,
double sin,
mxPoint c)
Rotates the given point by the given cos and sin.
|
double |
mxLine.ptLineDistSq(mxPoint pt)
Returns the square of the shortest distance from a point to this line.
|
double |
mxLine.ptSegDistSq(mxPoint pt)
Returns the square of the shortest distance from a point to this
line segment.
|
void |
mxLine.setEndPoint(mxPoint value)
Sets the end point of the rectangle.
|
void |
mxLine.setPoints(mxPoint startPt,
mxPoint endPt)
Sets the start and end points.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<mxPoint> |
mxUtils.translatePoints(java.util.List<mxPoint> pts,
double dx,
double dy)
Creates a new list of new points obtained by translating the points in
the given list by the given vector.
|
void |
mxCurve.updateCurve(java.util.List<mxPoint> newPoints)
Updates the existing curve using the points passed in.
|
Constructor and Description |
---|
mxLine(double startPtX,
double startPtY,
mxPoint endPt)
Creates a new line
|
mxLine(mxPoint startPt,
mxPoint endPt)
Creates a new line
|
mxPoint(mxPoint point)
Constructs a new point at the location of the given point.
|
Constructor and Description |
---|
mxCurve(java.util.List<mxPoint> points) |
mxSpline(java.util.List<mxPoint> points) |
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 mxPoint |
mxCellState.absoluteOffset
Holds the absolute offset.
|
protected mxPoint |
mxGraph.origin
Holds the current automatic origin.
|
protected mxPoint |
mxCellState.origin
Holds the origin for all child cells.
|
protected mxPoint |
mxConnectionConstraint.point
Point that specifies the fixed location of the connection point.
|
protected mxPoint |
mxGraphView.translate
Point that specifies the current translation.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<mxPoint> |
mxCellState.absolutePoints
List of mxPoints that represent the absolute points of an edge.
|
Modifier and Type | Method and Description |
---|---|
mxPoint |
mxPerimeter.mxPerimeterFunction.apply(mxRectangle bounds,
mxCellState vertex,
mxPoint next,
boolean orthogonal)
Implements a perimeter function.
|
mxPoint |
mxCellState.getAbsoluteOffset()
Returns the absolute offset.
|
mxPoint |
mxCellState.getAbsolutePoint(int index)
Returns the absolute point at the given index.
|
mxPoint |
mxGraph.getChildOffsetForCell(java.lang.Object cell)
Returns the offset to be used for the cells inside the given cell.
|
mxPoint |
mxGraph.getConnectionPoint(mxCellState vertex,
mxConnectionConstraint constraint)
Sets the connection constraint that describes the given connection point.
|
mxPoint |
mxGraphView.getNextPoint(mxCellState edge,
mxCellState opposite,
boolean source)
Returns the nearest point in the list of absolute points or the center of
the opposite terminal.
|
mxPoint |
mxGraph.getOrigin()
Returns origin.
|
mxPoint |
mxCellState.getOrigin()
Returns the origin for the children.
|
mxPoint |
mxGraphView.getPerimeterPoint(mxCellState terminal,
mxPoint next,
boolean orthogonal)
Returns a point that defines the location of the intersection point
between the perimeter and the line between the center of the shape and
the given point.
|
mxPoint |
mxGraphView.getPerimeterPoint(mxCellState terminal,
mxPoint next,
boolean orthogonal,
double border)
Returns a point that defines the location of the intersection point
between the perimeter and the line between the center of the shape and
the given point.
|
mxPoint |
mxConnectionConstraint.getPoint()
Returns the point.
|
mxPoint |
mxGraphView.getPoint(mxCellState state)
Returns the absolute center point along the given edge.
|
mxPoint |
mxGraphView.getPoint(mxCellState state,
mxGeometry geometry)
Returns the absolute point on the edge for the given relative geometry as
a point.
|
mxPoint |
mxGraphView.getRelativePoint(mxCellState edgeState,
double x,
double y)
Gets the relative point that describes the given, absolute label position
for the given edge state.
|
mxPoint |
mxGraphView.getTranslate()
Returns the current translation.
|
mxPoint |
mxGraph.getTranslateForRoot(java.lang.Object cell)
Returns the translation to be used if the given cell is the root cell as
an
|
mxPoint |
mxCellState.setAbsolutePoint(int index,
mxPoint point)
Returns the absolute point at the given index.
|
mxPoint |
mxGraphView.transformControlPoint(mxCellState state,
mxPoint pt)
Transforms the given control point to an absolute point.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<mxPoint> |
mxCellState.getAbsolutePoints()
Returns the absolute points.
|
Modifier and Type | Method and Description |
---|---|
mxPoint |
mxPerimeter.mxPerimeterFunction.apply(mxRectangle bounds,
mxCellState vertex,
mxPoint next,
boolean orthogonal)
Implements a perimeter function.
|
mxPoint |
mxGraphView.getPerimeterPoint(mxCellState terminal,
mxPoint next,
boolean orthogonal)
Returns a point that defines the location of the intersection point
between the perimeter and the line between the center of the shape and
the given point.
|
mxPoint |
mxGraphView.getPerimeterPoint(mxCellState terminal,
mxPoint next,
boolean orthogonal,
double border)
Returns a point that defines the location of the intersection point
between the perimeter and the line between the center of the shape and
the given point.
|
void |
mxCellState.setAbsoluteOffset(mxPoint absoluteOffset)
Returns the absolute offset.
|
mxPoint |
mxCellState.setAbsolutePoint(int index,
mxPoint point)
Returns the absolute point at the given index.
|
void |
mxCellState.setAbsoluteTerminalPoint(mxPoint point,
boolean isSource)
Sets the first or last point in the list of points depending on isSource.
|
void |
mxGraph.setOrigin(mxPoint value) |
void |
mxCellState.setOrigin(mxPoint origin)
Sets the origin for the children.
|
void |
mxConnectionConstraint.setPoint(mxPoint value)
Sets the point.
|
void |
mxGraphView.setTranslate(mxPoint value)
Sets the current translation and invalidates the view.
|
mxPoint |
mxGraphView.transformControlPoint(mxCellState state,
mxPoint pt)
Transforms the given control point to an absolute point.
|
Modifier and Type | Method and Description |
---|---|
void |
mxEdgeStyle.mxEdgeStyleFunction.apply(mxCellState state,
mxCellState source,
mxCellState target,
java.util.List<mxPoint> points,
java.util.List<mxPoint> result)
Implements an edge style function.
|
void |
mxEdgeStyle.mxEdgeStyleFunction.apply(mxCellState state,
mxCellState source,
mxCellState target,
java.util.List<mxPoint> points,
java.util.List<mxPoint> result)
Implements an edge style function.
|
mxEdgeStyle.mxEdgeStyleFunction |
mxGraphView.getEdgeStyle(mxCellState edge,
java.util.List<mxPoint> points,
java.lang.Object source,
java.lang.Object target)
Returns the edge style function to be used to compute the absolute points
for the given state, control points and terminals.
|
void |
mxCellState.setAbsolutePoints(java.util.List<mxPoint> absolutePoints)
Returns the absolute points.
|
void |
mxGraphView.updatePoints(mxCellState edge,
java.util.List<mxPoint> points,
mxCellState source,
mxCellState target)
Updates the absolute points in the given state using the specified array
of points as the relative points.
|
Constructor and Description |
---|
mxConnectionConstraint(mxPoint point)
Constructs a connection constraint for the given point.
|
mxConnectionConstraint(mxPoint point,
boolean perimeter)
Constructs a new connection constraint for the given point and boolean
arguments.
|
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.