mxGraph
|
Represents the current state of a cell in a given graph view. More...
Public Member Functions | |
mxCellState () | |
Constructs an empty cell state. | |
mxCellState (mxGraphView view, Object cell, Dictionary< string, Object > style) | |
Constructs a new object that represents the current state of the given cell in the specified view. | |
int | AbsolutePointCount () |
Returns the number of absolute points. | |
mxRectangle | GetPerimeterBounds () |
Returns the rectangle that should be used as the perimeter of the cell. This implementation adds the perimeter spacing to the rectangle defined by this cell state. | |
mxRectangle | GetPerimeterBounds (double border) |
Returns the rectangle that should be used as the perimeter of the cell. | |
void | SetAbsoluteTerminalPoint (mxPoint point, bool source) |
Sets the first or last point in the list of points depending on source. | |
new mxCellState | Clone () |
Returns a clone of this state where all members are deeply cloned except the view and cell references, which are copied with no cloning to the new instance. | |
Protected Attributes | |
mxGraphView | view |
Reference to the enclosing graph view. | |
Object | cell |
Reference to the cell that is represented by this state. | |
Dictionary< string, Object > | style |
Contains an array of key, value pairs that represent the style of the cell. | |
mxPoint | origin = new mxPoint() |
Holds the origin for all child cells. | |
List< mxPoint > | absolutePoints |
List of mxPoints that represent the absolute points of an edge. | |
mxPoint | absoluteOffset = new mxPoint() |
Holds the absolute offset. For edges, this is the absolute coordinates of the label position. For vertices, this is the offset of the label relative to the top, left corner of the vertex. | |
double | terminalDistance |
Caches the distance between the end points of an edge. | |
double | length |
Caches the length of an edge. | |
double[] | segments |
Array of numbers that represent the cached length of each segment of the edge. | |
mxRectangle | labelBounds |
Holds the rectangle which contains the label. | |
mxRectangle | boundingBox |
Holds the largest rectangle which contains all rendering for this cell. | |
Properties | |
mxGraphView | View [get, set] |
Sets or returns the enclosing graph view. | |
Object | Cell [get, set] |
Sets or returns the cell that is represented by this state. | |
Dictionary< string, Object > | Style [get, set] |
Sets or returns the cell style as a map of key, value pairs. | |
mxPoint | Origin [get, set] |
Sets or returns the origin for the children. | |
List< mxPoint > | AbsolutePoints [get, set] |
Sets or returns the absolute points. | |
mxPoint | AbsoluteOffset [get, set] |
Sets or returns the absolute offset. | |
double | TerminalDistance [get, set] |
Sets or returns the terminal distance. | |
double | Length [get, set] |
Sets or returns the length. | |
double[] | Segments [get, set] |
Sets or returns the length of the segments. | |
mxRectangle | LabelBounds [get, set] |
Sets or returns the label bounds. | |
mxRectangle | BoundingBox [get, set] |
Sets or returns the bounding box. |
Represents the current state of a cell in a given graph view.
com.mxgraph.mxCellState.mxCellState | ( | ) | [inline] |
Constructs an empty cell state.
com.mxgraph.mxCellState.mxCellState | ( | mxGraphView | view, |
Object | cell, | ||
Dictionary< string, Object > | style | ||
) | [inline] |
Constructs a new object that represents the current state of the given cell in the specified view.
view | Graph view that contains the state. |
cell | Cell that this state represents. |
style | Array of key, value pairs that constitute the style. |
int com.mxgraph.mxCellState.AbsolutePointCount | ( | ) | [inline] |
Returns the number of absolute points.
new mxCellState com.mxgraph.mxCellState.Clone | ( | ) | [inline] |
Returns a clone of this state where all members are deeply cloned except the view and cell references, which are copied with no cloning to the new instance.
Reimplemented from com.mxgraph.mxRectangle.
mxRectangle com.mxgraph.mxCellState.GetPerimeterBounds | ( | ) | [inline] |
Returns the rectangle that should be used as the perimeter of the cell. This implementation adds the perimeter spacing to the rectangle defined by this cell state.
mxRectangle com.mxgraph.mxCellState.GetPerimeterBounds | ( | double | border | ) | [inline] |
Returns the rectangle that should be used as the perimeter of the cell.
border |
void com.mxgraph.mxCellState.SetAbsoluteTerminalPoint | ( | mxPoint | point, |
bool | source | ||
) | [inline] |
Sets the first or last point in the list of points depending on source.
point | Point that represents the terminal point. |
source | Boolean that specifies if the first or last point should be assigned. |
mxPoint com.mxgraph.mxCellState.absoluteOffset = new mxPoint() [protected] |
Holds the absolute offset. For edges, this is the absolute coordinates of the label position. For vertices, this is the offset of the label relative to the top, left corner of the vertex.
List<mxPoint> com.mxgraph.mxCellState.absolutePoints [protected] |
List of mxPoints that represent the absolute points of an edge.
mxRectangle com.mxgraph.mxCellState.boundingBox [protected] |
Holds the largest rectangle which contains all rendering for this cell.
Object com.mxgraph.mxCellState.cell [protected] |
Reference to the cell that is represented by this state.
mxRectangle com.mxgraph.mxCellState.labelBounds [protected] |
Holds the rectangle which contains the label.
double com.mxgraph.mxCellState.length [protected] |
Caches the length of an edge.
mxPoint com.mxgraph.mxCellState.origin = new mxPoint() [protected] |
Holds the origin for all child cells.
double [] com.mxgraph.mxCellState.segments [protected] |
Array of numbers that represent the cached length of each segment of the edge.
Dictionary<string, Object> com.mxgraph.mxCellState.style [protected] |
Contains an array of key, value pairs that represent the style of the cell.
double com.mxgraph.mxCellState.terminalDistance [protected] |
Caches the distance between the end points of an edge.
mxGraphView com.mxgraph.mxCellState.view [protected] |
Reference to the enclosing graph view.
mxPoint com.mxgraph.mxCellState.AbsoluteOffset [get, set] |
Sets or returns the absolute offset.
List<mxPoint> com.mxgraph.mxCellState.AbsolutePoints [get, set] |
Sets or returns the absolute points.
mxRectangle com.mxgraph.mxCellState.BoundingBox [get, set] |
Sets or returns the bounding box.
Object com.mxgraph.mxCellState.Cell [get, set] |
Sets or returns the cell that is represented by this state.
mxRectangle com.mxgraph.mxCellState.LabelBounds [get, set] |
Sets or returns the label bounds.
double com.mxgraph.mxCellState.Length [get, set] |
Sets or returns the length.
mxPoint com.mxgraph.mxCellState.Origin [get, set] |
Sets or returns the origin for the children.
double [] com.mxgraph.mxCellState.Segments [get, set] |
Sets or returns the length of the segments.
Dictionary<string, Object> com.mxgraph.mxCellState.Style [get, set] |
Sets or returns the cell style as a map of key, value pairs.
double com.mxgraph.mxCellState.TerminalDistance [get, set] |
Sets or returns the terminal distance.
mxGraphView com.mxgraph.mxCellState.View [get, set] |
Sets or returns the enclosing graph view.