Package | Description |
---|---|
com.mxgraph.analysis |
This package provides various algorithms for graph analysis, such as
shortest path and minimum spanning tree.
|
com.mxgraph.canvas |
This package contains various implementations for painting a graph using
different technologies, such as Graphics2D, HTML, SVG or VML.
|
com.mxgraph.costfunction | |
com.mxgraph.generatorfunction | |
com.mxgraph.layout |
This package contains various graph layouts.
|
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 |
---|---|
mxCellState[] |
mxGraphAnalysis.sort(mxCellState[] states,
mxICostFunction cf)
Returns a sorted set for
cells with respect to
cf . |
Modifier and Type | Method and Description |
---|---|
double |
mxICostFunction.getCost(mxCellState state)
Evaluates the cost of the given cell state.
|
double |
mxConstantCostFunction.getCost(mxCellState state) |
double |
mxDistanceCostFunction.getCost(mxCellState state)
Returns the Euclidean length of the edge defined by the absolute
points in the given state or 0 if no points are defined.
|
mxCellState[] |
mxGraphAnalysis.sort(mxCellState[] states,
mxICostFunction cf)
Returns a sorted set for
cells with respect to
cf . |
double |
mxGraphAnalysis.sum(mxCellState[] states,
mxICostFunction cf)
Returns the sum of all cost for
cells with respect to
cf . |
Modifier and Type | Method and Description |
---|---|
Object |
mxHtmlCanvas.drawCell(mxCellState state) |
Object |
mxGraphics2DCanvas.drawCell(mxCellState state) |
Object |
mxVmlCanvas.drawCell(mxCellState state) |
Object |
mxImageCanvas.drawCell(mxCellState state) |
Object |
mxSvgCanvas.drawCell(mxCellState state) |
Object |
mxICanvas.drawCell(mxCellState state)
Draws the given cell.
|
Object |
mxHtmlCanvas.drawLabel(String label,
mxCellState state,
boolean html) |
Object |
mxGraphics2DCanvas.drawLabel(String text,
mxCellState state,
boolean html) |
Object |
mxVmlCanvas.drawLabel(String label,
mxCellState state,
boolean html) |
Object |
mxImageCanvas.drawLabel(String label,
mxCellState state,
boolean html) |
Object |
mxSvgCanvas.drawLabel(String label,
mxCellState state,
boolean html) |
Object |
mxICanvas.drawLabel(String text,
mxCellState state,
boolean html)
Draws the given label.
|
Modifier and Type | Method and Description |
---|---|
double |
mxConstCostFunction.getCost(mxCellState state) |
double |
mxDoubleValCostFunction.getCost(mxCellState state) |
Modifier and Type | Method and Description |
---|---|
double |
mxGeneratorRandomIntFunction.getCost(mxCellState state) |
double |
mxGeneratorRandomFunction.getCost(mxCellState state) |
double |
mxGeneratorConstFunction.getCost(mxCellState state) |
Modifier and Type | Method and Description |
---|---|
protected void |
mxEdgeLabelLayout.avoid(mxCellState edge,
mxCellState vertex) |
Modifier and Type | Method and Description |
---|---|
String |
mxGraphViewReader.parseState(mxCellState state,
boolean edge)
Parses the bounds, absolute points and label information from the style
of the state into its respective fields and returns the label of the
cell.
|
Modifier and Type | Field and Description |
---|---|
protected mxCellState |
mxCurveLabelShape.state
Cache the state associated with this shape
|
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 mxGraphicsCanvas2D |
mxSwimlaneShape.configureCanvas(mxGraphics2DCanvas canvas,
mxCellState state,
mxGraphicsCanvas2D c)
Helper method to configure the given wrapper canvas.
|
protected boolean |
mxBasicShape.configureGraphics(mxGraphics2DCanvas canvas,
mxCellState state,
boolean background)
Configures the graphics object ready to paint.
|
mxPoint[] |
mxLineShape.createPoints(mxGraphics2DCanvas canvas,
mxCellState state) |
Shape |
mxTriangleShape.createShape(mxGraphics2DCanvas canvas,
mxCellState state) |
Shape |
mxEllipseShape.createShape(mxGraphics2DCanvas canvas,
mxCellState state) |
Shape |
mxArrowShape.createShape(mxGraphics2DCanvas canvas,
mxCellState state) |
Shape |
mxActorShape.createShape(mxGraphics2DCanvas canvas,
mxCellState state) |
Shape |
mxCloudShape.createShape(mxGraphics2DCanvas canvas,
mxCellState state) |
Shape |
mxBasicShape.createShape(mxGraphics2DCanvas canvas,
mxCellState state) |
Shape |
mxRhombusShape.createShape(mxGraphics2DCanvas canvas,
mxCellState state) |
Shape |
mxHexagonShape.createShape(mxGraphics2DCanvas canvas,
mxCellState state) |
protected void |
mxStencil.drawElement(mxGraphicsCanvas2D canvas,
mxCellState state,
Element node,
mxRectangle aspect)
Drawsthe given element.
|
static void |
mxLabelShape.drawGlassEffect(mxGraphics2DCanvas canvas,
mxCellState state)
Draws the glass effect
|
protected void |
mxStencil.drawShadow(mxGraphicsCanvas2D canvas,
mxCellState state,
double rotation,
boolean flipH,
boolean flipV,
mxRectangle bounds,
double alpha,
boolean filled,
mxRectangle aspect)
Draws the shadow.
|
boolean |
mxStencil.drawShape(mxGraphicsCanvas2D canvas,
mxCellState state,
mxRectangle bounds,
mxRectangle aspect,
boolean background)
Draws this stencil inside the given bounds.
|
String |
mxStencil.evaluateAttribute(Element elt,
String attribute,
mxCellState state)
Gets the attribute for the given name from the given node.
|
protected double |
mxSwimlaneShape.getArcSize(mxCellState state,
double start)
Helper method to configure the given wrapper canvas.
|
protected int |
mxRectangleShape.getArcSize(mxCellState state,
double w,
double h)
Helper method to configure the given wrapper canvas.
|
Color |
mxLabelShape.getFillColor(mxGraphics2DCanvas canvas,
mxCellState state) |
Color |
mxBasicShape.getFillColor(mxGraphics2DCanvas canvas,
mxCellState state) |
Color |
mxImageShape.getFillColor(mxGraphics2DCanvas canvas,
mxCellState state) |
protected mxRectangle |
mxBasicShape.getGradientBounds(mxGraphics2DCanvas canvas,
mxCellState state) |
protected mxRectangle |
mxSwimlaneShape.getGradientBounds(mxGraphics2DCanvas canvas,
mxCellState state) |
Rectangle |
mxLabelShape.getImageBounds(mxGraphics2DCanvas canvas,
mxCellState state) |
Rectangle |
mxImageShape.getImageBounds(mxGraphics2DCanvas canvas,
mxCellState state) |
String |
mxImageShape.getImageForStyle(mxGraphics2DCanvas canvas,
mxCellState state) |
Color |
mxLabelShape.getStrokeColor(mxGraphics2DCanvas canvas,
mxCellState state) |
Color |
mxBasicShape.getStrokeColor(mxGraphics2DCanvas canvas,
mxCellState state) |
Color |
mxImageShape.getStrokeColor(mxGraphics2DCanvas canvas,
mxCellState state) |
protected double |
mxSwimlaneShape.getTitleSize(mxGraphics2DCanvas canvas,
mxCellState state)
Returns the bounding box for the gradient box for this shape.
|
boolean |
mxLabelShape.hasGradient(mxGraphics2DCanvas canvas,
mxCellState state) |
boolean |
mxBasicShape.hasGradient(mxGraphics2DCanvas canvas,
mxCellState state) |
boolean |
mxImageShape.hasGradient(mxGraphics2DCanvas canvas,
mxCellState state) |
boolean |
mxBasicShape.hasShadow(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,
String type,
mxPoint pe,
double nx,
double ny,
double size,
boolean source) |
void |
mxStencilShape.paintNode(mxGraphics2DCanvas canvas,
mxCellState state,
mxStencilShape.svgShape shape,
double widthRatio,
double heightRatio) |
protected void |
mxSwimlaneShape.paintRoundedSwimlane(mxGraphics2DCanvas canvas,
mxCellState state,
double start,
double r,
String fill,
boolean swimlaneLine)
Function: paintRoundedSwimlane
Paints the swimlane vertex shape.
|
protected void |
mxSwimlaneShape.paintSeparator(mxGraphics2DCanvas canvas,
mxCellState state,
double start,
String color)
Function: paintSwimlane
Paints the swimlane vertex shape.
|
void |
mxDoubleRectangleShape.paintShape(mxGraphics2DCanvas canvas,
mxCellState state) |
void |
mxStencilShape.paintShape(mxGraphics2DCanvas canvas,
mxCellState state) |
void |
mxDoubleEllipseShape.paintShape(mxGraphics2DCanvas canvas,
mxCellState state) |
void |
mxCylinderShape.paintShape(mxGraphics2DCanvas canvas,
mxCellState state)
Draws a cylinder for the given parameters.
|
void |
mxRectangleShape.paintShape(mxGraphics2DCanvas canvas,
mxCellState state) |
void |
mxLabelShape.paintShape(mxGraphics2DCanvas canvas,
mxCellState state) |
void |
mxIShape.paintShape(mxGraphics2DCanvas canvas,
mxCellState state) |
void |
mxCurveShape.paintShape(mxGraphics2DCanvas canvas,
mxCellState state) |
void |
mxLineShape.paintShape(mxGraphics2DCanvas canvas,
mxCellState state) |
void |
mxStencil.paintShape(mxGraphics2DCanvas gc,
mxCellState state)
Paints the stencil for the given state.
|
void |
mxBasicShape.paintShape(mxGraphics2DCanvas canvas,
mxCellState state) |
void |
mxSwimlaneShape.paintShape(mxGraphics2DCanvas canvas,
mxCellState state) |
void |
mxConnectorShape.paintShape(mxGraphics2DCanvas canvas,
mxCellState state) |
void |
mxImageShape.paintShape(mxGraphics2DCanvas canvas,
mxCellState state) |
void |
mxDefaultTextShape.paintShape(mxGraphics2DCanvas canvas,
String text,
mxCellState state,
Map<String,Object> style) |
void |
mxCurveLabelShape.paintShape(mxGraphics2DCanvas canvas,
String text,
mxCellState state,
Map<String,Object> style) |
void |
mxHtmlTextShape.paintShape(mxGraphics2DCanvas canvas,
String text,
mxCellState state,
Map<String,Object> style) |
void |
mxITextShape.paintShape(mxGraphics2DCanvas canvas,
String text,
mxCellState state,
Map<String,Object> style) |
protected void |
mxSwimlaneShape.paintSwimlane(mxGraphics2DCanvas canvas,
mxCellState state,
double start,
String fill,
boolean swimlaneLine) |
Constructor and Description |
---|
mxCurveLabelShape(mxCellState state,
mxCurve value) |
Modifier and Type | Method and Description |
---|---|
protected void |
mxGraphComponent.mxGraphControl.cellDrawn(mxICanvas canvas,
mxCellState state) |
Component[] |
mxGraphComponent.createComponents(mxCellState state)
Hook for subclassers to create the array of heavyweights for the given
state.
|
mxCellHandler |
mxGraphComponent.createHandler(mxCellState state) |
protected Rectangle |
mxGraphComponent.mxGraphControl.getExtendedCellBounds(mxCellState state) |
ImageIcon |
mxGraphComponent.getFoldingIcon(mxCellState state)
Returns the icon used to display the collapsed state of the specified
cell state.
|
Rectangle |
mxGraphComponent.getFoldingIconBounds(mxCellState state,
ImageIcon icon) |
protected boolean |
mxGraphComponent.mxGraphControl.hitClip(mxGraphics2DCanvas canvas,
mxCellState state) |
void |
mxGraphComponent.insertComponent(mxCellState state,
Component c) |
void |
mxGraphComponent.redraw(mxCellState state)
Updates the buffer (if one exists) and repaints the given cell state.
|
protected void |
mxGraphComponent.updateCellOverlayComponent(mxCellState state,
mxICellOverlay overlay)
Notified when an overlay has been removed from the graph.
|
void |
mxGraphComponent.updateComponent(mxCellState state,
Component c) |
Modifier and Type | Field and Description |
---|---|
protected mxCellState |
mxRotationHandler.currentState |
protected mxCellState |
mxCellMarker.markedState
Holds the marked state.
|
protected mxCellState |
mxConnectPreview.previewState |
protected mxCellState[] |
mxMovePreview.previewStates |
protected mxCellState |
mxConnectionHandler.source |
protected mxCellState |
mxConnectPreview.sourceState |
protected mxCellState |
mxMovePreview.startState |
protected mxCellState |
mxCellHandler.state
Holds the cell state associated with this handler.
|
protected mxCellState |
mxCellMarker.validState
Holds the marked state if it is valid.
|
Modifier and Type | Method and Description |
---|---|
mxCellState |
mxCellMarker.getMarkedState()
Returns the marked state.
|
mxCellState |
mxConnectPreview.getPreviewState() |
protected mxCellState[] |
mxMovePreview.getPreviewStates()
Returns the states that are affected by the move operation.
|
mxCellState |
mxConnectPreview.getSourceState() |
mxCellState |
mxCellHandler.getState()
Returns the cell state that is associated with this handler.
|
protected mxCellState |
mxCellMarker.getState(MouseEvent e)
Uses getCell, getMarkedState and intersects to return the state for
the given event.
|
protected mxCellState |
mxCellMarker.getStateToMark(mxCellState state)
Returns the state to be marked for the given state under the mouse.
|
mxCellState |
mxCellMarker.getValidState()
Returns the valid state.
|
mxCellState |
mxCellMarker.process(MouseEvent e)
Processes the given event and marks the state returned by getStateAt
with the color returned by getMarkerColor.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
mxConnectPreview.createCell(mxCellState startState,
String style)
Creates a new instance of mxShape for previewing the edge.
|
protected Point[] |
mxEdgeHandler.createPoints(mxCellState s) |
Object[] |
mxMovePreview.getCells(mxCellState initialState) |
protected Color |
mxCellMarker.getMarkerColor(MouseEvent e,
mxCellState state,
boolean isValid)
Returns the valid- or invalidColor depending on the value of isValid.
|
protected mxRectangle |
mxMovePreview.getPlaceholderBounds(mxCellState startState) |
protected mxCellState |
mxCellMarker.getStateToMark(mxCellState state)
Returns the state to be marked for the given state under the mouse.
|
void |
mxCellMarker.highlight(mxCellState state,
Color color) |
void |
mxCellMarker.highlight(mxCellState state,
Color color,
boolean valid) |
protected boolean |
mxCellMarker.intersects(mxCellState state,
MouseEvent e)
Returns true if the given mouse event intersects the given state.
|
boolean |
mxRotationHandler.isStateHandled(mxCellState state) |
protected boolean |
mxCellMarker.isValidState(mxCellState state)
Returns true if the given state is a valid state.
|
protected void |
mxEdgeHandler.moveLabelTo(mxCellState edgeState,
double x,
double y)
Moves the label to the given position.
|
void |
mxCellHandler.refresh(mxCellState state)
Refreshes the cell handler.
|
void |
mxConnectPreview.revalidate(mxCellState state) |
void |
mxCellMarker.setMarkedState(mxCellState value)
Sets the marked state.
|
void |
mxConnectionHandler.start(MouseEvent e,
mxCellState state) |
void |
mxMovePreview.start(MouseEvent e,
mxCellState state)
Sets the translation of the preview.
|
void |
mxConnectPreview.start(MouseEvent e,
mxCellState startState,
String style)
Updates the style of the edge preview from the incoming edge
|
void |
mxConnectPreview.update(MouseEvent e,
mxCellState targetState,
double x,
double y) |
Constructor and Description |
---|
mxCellHandler(mxGraphComponent graphComponent,
mxCellState state)
Constructs a new cell handler for the given cell state.
|
mxEdgeHandler(mxGraphComponent graphComponent,
mxCellState state) |
mxElbowEdgeHandler(mxGraphComponent graphComponent,
mxCellState state) |
mxVertexHandler(mxGraphComponent graphComponent,
mxCellState state) |
Modifier and Type | Method and Description |
---|---|
mxRectangle |
mxCellOverlay.getBounds(mxCellState state) |
mxRectangle |
mxICellOverlay.getBounds(mxCellState state) |
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 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 List<mxCellState> |
mxCellStatePreview.cellStates |
protected Map<mxCellState,mxPoint> |
mxCellStatePreview.deltas |
Modifier and Type | Method and Description |
---|---|
Map<mxCellState,mxPoint> |
mxCellStatePreview.getDeltas() |
List<mxCellState> |
mxCellStatePreview.snapshot(mxCellState state) |
Modifier and Type | Method and Description |
---|---|
void |
mxCellStatePreview.addEdges(mxCellState state) |
boolean |
mxInteractiveCanvas.contains(mxGraphComponent graphComponent,
Rectangle rect,
mxCellState state) |
Rectangle |
mxCellEditor.getEditorBounds(mxCellState state,
double scale)
Returns the bounds to be used for the editor.
|
protected String |
mxCellEditor.getInitialValue(mxCellState state,
EventObject trigger)
Gets the initial editing value for the given cell.
|
boolean |
mxInteractiveCanvas.hitSwimlaneContent(mxGraphComponent graphComponent,
mxCellState swimlane,
int x,
int y)
Returns true if the given point is inside the content area of the given
swimlane.
|
boolean |
mxInteractiveCanvas.intersects(mxGraphComponent graphComponent,
Rectangle rect,
mxCellState state) |
protected boolean |
mxCellEditor.isHideLabel(mxCellState state) |
mxPoint |
mxCellStatePreview.moveState(mxCellState state,
double dx,
double dy) |
mxPoint |
mxCellStatePreview.moveState(mxCellState state,
double dx,
double dy,
boolean add,
boolean includeEdges) |
protected void |
mxCellStatePreview.paintPreviewState(mxGraphics2DCanvas canvas,
mxCellState state)
Draws the preview using the graphics canvas.
|
void |
mxCellStatePreview.restoreState(mxCellState state,
mxCellState from) |
protected mxRectangle |
mxCellStatePreview.revalidateState(mxCellState parentState,
mxCellState state,
double dx,
double dy) |
List<mxCellState> |
mxCellStatePreview.snapshot(mxCellState state) |
protected void |
mxCellStatePreview.translateState(mxCellState parentState,
mxCellState state,
double dx,
double dy) |
protected boolean |
mxCellEditor.useLabelBounds(mxCellState state)
Returns true if the label bounds of the state should be used for the
editor.
|
Modifier and Type | Method and Description |
---|---|
void |
mxCellStatePreview.restore(List<mxCellState> snapshot) |
Modifier and Type | Method and Description |
---|---|
static int |
mxUtils.findNearestSegment(mxCellState state,
double x,
double y)
Finds the index of the nearest segment on the given cell state for the
specified coordinate pair.
|
static int |
mxUtils.getPortConstraints(mxCellState terminal,
mxCellState edge,
boolean source)
Returns an integer mask of the port constraints of the given map
|
static int |
mxUtils.getPortConstraints(mxCellState terminal,
mxCellState edge,
boolean source,
int defaultValue)
Returns an integer mask of the port constraints of the given map
|
static boolean |
mxUtils.intersectsHotspot(mxCellState state,
int x,
int y,
double hotspot) |
static boolean |
mxUtils.intersectsHotspot(mxCellState state,
int x,
int y,
double hotspot,
int min,
int max)
Returns true if the given coordinate pair intersects the hotspot of the
given state.
|
Modifier and Type | Field and Description |
---|---|
protected mxCellState |
mxCellState.visibleSourceState
Caches the visible source and target terminal states.
|
protected mxCellState |
mxCellState.visibleTargetState
Caches the visible source and target terminal states.
|
Modifier and Type | Field and Description |
---|---|
protected Hashtable<Object,mxCellState> |
mxTemporaryCellStates.oldStates |
protected Hashtable<Object,mxCellState> |
mxGraphView.states
Maps from cells to cell states.
|
Modifier and Type | Method and Description |
---|---|
mxCellState |
mxGraphView.createState(Object cell)
Creates and returns a cell state for the given cell.
|
mxCellState[] |
mxGraphView.getCellStates(Object[] cells)
Returns the states for the given array of cells.
|
mxCellState |
mxGraphView.getState(Object cell)
Returns the state for the given cell or null if no state is defined for
the cell.
|
mxCellState |
mxGraphView.getState(Object cell,
boolean create)
Returns the cell state for the given cell.
|
mxCellState |
mxGraphView.getTerminalPort(mxCellState state,
mxCellState terminal,
boolean source)
Returns a cell state that represents the source or target terminal or
port for the given edge.
|
mxCellState |
mxCellState.getVisibleTerminalState(boolean source)
Returns the visible source or target terminal state.
|
mxCellState |
mxGraphView.removeState(Object cell)
Removes and returns the mxCellState for the given cell.
|
mxCellState |
mxGraphView.validateCellState(Object cell)
Shortcut to validateCellState with recurse set to true.
|
mxCellState |
mxGraphView.validateCellState(Object cell,
boolean recurse)
Validates the cell state for the given cell.
|
Modifier and Type | Method and Description |
---|---|
Hashtable<Object,mxCellState> |
mxGraphView.getStates()
Returns the dictionary that maps from cells to states.
|
Modifier and Type | Method and Description |
---|---|
void |
mxEdgeStyle.mxEdgeStyleFunction.apply(mxCellState state,
mxCellState source,
mxCellState target,
List<mxPoint> points,
List<mxPoint> result)
Implements an edge style function.
|
mxPoint |
mxPerimeter.mxPerimeterFunction.apply(mxRectangle bounds,
mxCellState vertex,
mxPoint next,
boolean orthogonal)
Implements a perimeter function.
|
protected void |
mxGraph.cellDrawn(mxICanvas canvas,
mxCellState state,
Object element,
Object labelElement)
Called when a cell has been painted as the specified object, typically a
DOM node that represents the given cell graphically in a document.
|
void |
mxGraph.drawState(mxICanvas canvas,
mxCellState state,
boolean drawLabel)
Draws the cell state with the given label onto the canvas.
|
mxConnectionConstraint[] |
mxGraph.getAllConnectionConstraints(mxCellState terminal,
boolean source)
Returns an array of all constraints for the given terminal.
|
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.
|
mxConnectionConstraint |
mxGraph.getConnectionConstraint(mxCellState edge,
mxCellState terminal,
boolean source)
Returns an connection constraint that describes the given connection
point.
|
mxPoint |
mxGraph.getConnectionPoint(mxCellState vertex,
mxConnectionConstraint constraint)
Sets the connection constraint that describes the given connection point.
|
mxEdgeStyle.mxEdgeStyleFunction |
mxGraphView.getEdgeStyle(mxCellState edge,
List<mxPoint> points,
Object source,
Object target)
Returns the edge style function to be used to compute the absolute points
for the given state, control points and terminals.
|
String |
mxGraph.getImage(mxCellState state)
Returns the image URL for the given cell state.
|
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.
|
mxRectangle |
mxGraphView.getPerimeterBounds(mxCellState terminal,
double border)
Returns the perimeter bounds for the given terminal, edge pair.
|
mxPerimeter.mxPerimeterFunction |
mxGraphView.getPerimeterFunction(mxCellState state)
Returns the perimeter function for the given state.
|
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 |
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.
|
double |
mxGraphView.getRoutingCenterX(mxCellState state)
Returns the x-coordinate of the center point for automatic routing.
|
double |
mxGraphView.getRoutingCenterY(mxCellState state)
Returns the y-coordinate of the center point for automatic routing.
|
mxCellState |
mxGraphView.getTerminalPort(mxCellState state,
mxCellState terminal,
boolean source)
Returns a cell state that represents the source or target terminal or
port for the given edge.
|
double |
mxGraphView.getWordWrapWidth(mxCellState state)
Returns the width for wrapping the label of the given state at scale 1.
|
boolean |
mxGraph.isLoop(mxCellState state)
Returns true if the given cell state is a loop.
|
boolean |
mxGraph.isOrthogonal(mxCellState edge)
Returns true if perimeter points should be computed such that the
resulting edge has only horizontal or vertical segments.
|
void |
mxCellState.setVisibleTerminalState(mxCellState terminalState,
boolean source)
Sets the visible source or target terminal state.
|
mxPoint |
mxGraphView.transformControlPoint(mxCellState state,
mxPoint pt)
Transforms the given control point to an absolute point.
|
mxRectangle |
mxGraphView.updateBoundingBox(mxCellState state)
Updates the bounding box in the given cell state.
|
void |
mxGraphView.updateCellState(mxCellState state)
Updates the given cell state.
|
void |
mxGraphView.updateEdgeBounds(mxCellState state)
Updates the given state using the bounding box of the absolute points.
|
void |
mxGraphView.updateEdgeState(mxCellState state,
mxGeometry geo)
Validates the given cell state.
|
void |
mxGraphView.updateFixedTerminalPoint(mxCellState edge,
mxCellState terminal,
boolean source,
mxConnectionConstraint constraint)
Sets the fixed source or target terminal point on the given edge.
|
void |
mxGraphView.updateFixedTerminalPoints(mxCellState edge,
mxCellState source,
mxCellState target)
Sets the initial absolute terminal points in the given state before the
edge style is computed.
|
void |
mxGraphView.updateFloatingTerminalPoint(mxCellState edge,
mxCellState start,
mxCellState end,
boolean source)
Updates the absolute terminal point in the given state for the given
start and end state, where start is the source if source is true.
|
void |
mxGraphView.updateFloatingTerminalPoints(mxCellState state,
mxCellState source,
mxCellState target)
Updates the terminal points in the given state after the edge style was
computed for the edge.
|
void |
mxGraphView.updateLabel(mxCellState state)
Updates the label of the given state.
|
void |
mxGraphView.updateLabelBounds(mxCellState state)
Updates the label bounds in the given state.
|
void |
mxGraphView.updatePoints(mxCellState edge,
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.
|
void |
mxGraphView.updateVertexLabelOffset(mxCellState state)
Updates the absoluteOffset of the given vertex cell state.
|
void |
mxGraphView.updateVertexState(mxCellState state,
mxGeometry geo)
Validates the given cell state.
|
Modifier and Type | Method and Description |
---|---|
void |
mxGraphView.setStates(Hashtable<Object,mxCellState> states)
Returns the dictionary that maps from cells to states.
|
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.