|
JGraph X 1.2.0.8 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use mxCellState | |
---|---|
com.mxgraph.analysis | This package provides various algorithms for graph analysis, such as shortest path and minimum spanning tree. |
com.mxgraph.layout | This package contains various graph layouts. |
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 mxCellState in com.mxgraph.analysis |
---|
Methods in com.mxgraph.analysis that return mxCellState | |
---|---|
mxCellState[] |
mxGraphAnalysis.sort(mxCellState[] states,
mxICostFunction cf)
Returns a sorted set for cells with respect to
cf . |
Methods in com.mxgraph.analysis with parameters of type mxCellState | |
---|---|
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. |
double |
mxICostFunction.getCost(mxCellState state)
Evaluates the cost of the given cell state. |
double |
mxConstantCostFunction.getCost(mxCellState state)
|
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 . |
Uses of mxCellState in com.mxgraph.layout |
---|
Methods in com.mxgraph.layout with parameters of type mxCellState | |
---|---|
protected void |
mxEdgeLabelLayout.avoid(mxCellState edge,
mxCellState vertex)
|
Uses of mxCellState in com.mxgraph.swing |
---|
Methods in com.mxgraph.swing with parameters of type mxCellState | |
---|---|
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)
|
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)
|
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)
|
Uses of mxCellState in com.mxgraph.swing.handler |
---|
Fields in com.mxgraph.swing.handler declared as mxCellState | |
---|---|
protected mxCellState |
mxCellMarker.markedState
Holds the marked state. |
protected mxCellState |
mxConnectionHandler.source
|
protected mxCellState |
mxCellHandler.state
Holds the cell state associated with this handler. |
protected mxCellState |
mxCellMarker.validState
Holds the marked state if it is valid. |
Methods in com.mxgraph.swing.handler that return mxCellState | |
---|---|
mxCellState |
mxCellMarker.getMarkedState()
Returns the marked state. |
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. |
Methods in com.mxgraph.swing.handler with parameters of type mxCellState | |
---|---|
protected Point[] |
mxEdgeHandler.createPoints(mxCellState s)
|
protected Color |
mxCellMarker.getMarkerColor(MouseEvent e,
mxCellState state,
boolean isValid)
Returns the valid- or invalidColor depending on the value of isValid. |
protected mxCellState |
mxCellMarker.getStateToMark(mxCellState state)
Returns the state to be marked for the given state under the mouse. |
protected boolean |
mxCellMarker.intersects(mxCellState state,
MouseEvent e)
Returns true if the given mouse event intersects the given 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. |
Constructors in com.mxgraph.swing.handler with parameters of type mxCellState | |
---|---|
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)
|
Uses of mxCellState in com.mxgraph.swing.util |
---|
Methods in com.mxgraph.swing.util with parameters of type mxCellState | |
---|---|
mxRectangle |
mxCellOverlay.getBounds(mxCellState state)
|
mxRectangle |
mxICellOverlay.getBounds(mxCellState state)
|
Uses of mxCellState in com.mxgraph.swing.view |
---|
Methods in com.mxgraph.swing.view with parameters of type mxCellState | |
---|---|
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)
|
protected boolean |
mxCellEditor.useLabelBounds(mxCellState state)
Returns true if the label bounds of the state should be used for the editor. |
Uses of mxCellState in com.mxgraph.util |
---|
Methods in com.mxgraph.util with parameters of type mxCellState | |
---|---|
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 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. |
Uses of mxCellState in com.mxgraph.view |
---|
Fields in com.mxgraph.view with type parameters of type mxCellState | |
---|---|
protected Hashtable<Object,mxCellState> |
mxTemporaryCellStates.oldStates
|
protected Hashtable<Object,mxCellState> |
mxGraphView.states
Maps from cells to cell states. |
Methods in com.mxgraph.view that return mxCellState | |
---|---|
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.removeState(Object cell)
Removes and returns the mxCellState for the given cell. |
Methods in com.mxgraph.view that return types with arguments of type mxCellState | |
---|---|
Hashtable<Object,mxCellState> |
mxGraphView.getStates()
Returns the dictionary that maps from cells to states. |
Methods in com.mxgraph.view with parameters of type mxCellState | |
---|---|
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 edgeState,
mxCellState terminalState,
boolean isSource,
mxPoint next)
Implements a perimeter function. |
protected void |
mxGraphView.childMoved(mxCellState parentState,
mxCellState childState)
Invoked when a child state was moved as a result of late evaluation of its position. |
void |
mxGraph.drawStateWithLabel(mxICanvas canvas,
mxCellState state,
String label)
Draws the given cell and label onto the specified canvas. |
protected Object[] |
mxSpaceManager.getCellsToShift(mxCellState state)
|
mxEdgeStyle.mxEdgeStyleFunction |
mxGraphView.getEdgeStyle(mxCellState edgeState,
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 state,
Object opposite,
boolean isSource)
Returns the nearest point in the list of absolute points or the center of the opposite terminal. |
mxRectangle |
mxGraphView.getPerimeterBounds(mxCellState terminal,
mxCellState edge,
boolean isSource)
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 state,
Object start,
Object end,
boolean isSource)
Returns a point that defines the location of the connection point between the edge represented by the given state and the source or target end of the edge, depending on isSource. |
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. |
boolean |
mxGraph.isLoop(mxCellState state)
Returns true if the given cell state is a loop. |
boolean |
mxGraph.isOrthogonal(mxCellState edge,
mxCellState vertex)
Returns true if perimeter points should be computed such that the resulting edge has only horizontal or vertical segments. |
void |
mxGraphView.setTerminalPoints(mxCellState state)
Sets the initial absolute terminal points in the given 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.updateEdgeBounds(mxCellState state)
Updates the given state using the bounding box of the absolute points. |
void |
mxGraphView.updateLabelBounds(mxCellState state)
Updates the label bounds in the given state. |
void |
mxGraphView.updatePoints(mxCellState state,
List<mxPoint> points,
Object source,
Object target)
Updates the absolute points in the given state using the specified array of points as the relative points. |
void |
mxGraphView.updateTerminalPoint(mxCellState state,
Object start,
Object end,
boolean isSource)
Updates the absolute terminal point in the given state for the given start and end state, where start is the source if isSource is true. |
void |
mxGraphView.updateTerminalPoints(mxCellState state,
Object source,
Object target)
Updates the terminal points in the given state. |
void |
mxGraphView.updateVertexLabelOffset(mxCellState state)
Updates the absoluteOffset of the given vertex cell state. |
void |
mxGraphView.validateBounds(mxCellState parentState,
Object cell)
Validates the bounds of the given parent's child using the given parent state as the origin for the child. |
mxRectangle |
mxGraphView.validatePoints(mxCellState parentState,
Object cell)
Validates the points for the state of the given cell recursively if the cell is not collapsed and returns the bounding box of all visited states as a rectangle. |
Method parameters in com.mxgraph.view with type arguments of type mxCellState | |
---|---|
void |
mxGraphView.setStates(Hashtable<Object,mxCellState> states)
Returns the dictionary that maps from cells to states. |
|
JGraph X 1.2.0.8 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |