mxGraph
Public Member Functions | Protected Attributes | Properties | List of all members
com.mxgraph.mxGraphView Class Reference

Implements a view for the graph. This class is in charge of computing the absolute coordinates for the relative child geometries, the points for perimeters and edge styles and keeping them cached in mxCellStates for faster retrieval. The states are updated whenever the model or the view state (translate, scale) changes. The scale and translate are honoured in the bounds. More...

Public Member Functions

 mxGraphView (mxGraph graph)
 Constructs a new view for the given graph. More...
 
mxRectangle GetBounds (Object[] cells)
 Returns the bounding box for an array of cells or null, if no cells are specified. More...
 
mxRectangle GetBoundingBox (Object[] cells)
 Returns the bounding box for an array of cells or null, if no cells are specified. More...
 
mxRectangle GetBounds (Object[] cells, bool boundingBox)
 Returns the bounding box for an array of cells or null, if no cells are specified. More...
 
void Revalidate ()
 First invalidates, then validates all cell states. More...
 
void Invalidate ()
 Invalidates all cell states. More...
 
void Validate ()
 First validates all bounds and then validates all points recursively on all visible cells. More...
 
mxRectangle GetBoundingBox (mxCellState state)
 Shortcut to validateCell with visible set to true. More...
 
mxRectangle 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. More...
 
Object ValidateCell (Object cell)
 Shortcut to validateCell with visible set to true. More...
 
Object ValidateCell (Object cell, Boolean visible)
 Recursively creates the cell state for the given cell if visible is true and the given cell is visible. If the cell is not visible but the state exists then it is removed using removeState. More...
 
mxCellState ValidateCellState (Object cell)
 Shortcut to validateCellState with recurse set to true. More...
 
mxCellState ValidateCellState (Object cell, Boolean recurse)
 Validates the cell state for the given cell. More...
 
void UpdateCellState (mxCellState state, mxCellState source, mxCellState target)
 Updates the given cell state. More...
 
void UpdateVertexState (mxCellState state, mxGeometry geo)
 Validates the given cell state. More...
 
void UpdateEdgeState (mxCellState state, mxGeometry geo, mxCellState source, mxCellState target)
 Validates the given cell state. More...
 
void UpdateVertexLabelOffset (mxCellState state)
 Updates the absoluteOffset of the given vertex cell state. This takes into account the label position styles. More...
 
void UpdateLabelBounds (mxCellState state)
 Updates the label bounds in the given state. More...
 
mxRectangle UpdateBoundingBox (mxCellState state)
 Updates the bounding box in the given cell state. More...
 
void UpdateFixedTerminalPoints (mxCellState edge, mxCellState source, mxCellState target)
 Sets the initial absolute terminal points in the given state before the edge style is computed. More...
 
void UpdateFixedTerminalPoint (mxCellState edge, mxCellState terminal, bool source, mxConnectionConstraint constraint)
 Sets the fixed source or target terminal point on the given edge. More...
 
void 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. More...
 
mxPoint TransformControlPoint (mxCellState state, mxPoint pt)
 Transforms the given control point to an absolute point. More...
 
mxEdgeStyleFunction GetEdgeStyle (mxCellState edge, List< mxPoint > points, Object source, Object target)
 Returns the edge style function to be used to render the given edge state. More...
 
void UpdateFloatingTerminalPoints (mxCellState state, mxCellState source, mxCellState target)
 Updates the terminal points in the given state after the edge style was computed for the edge. More...
 
void UpdateFloatingTerminalPoint (mxCellState edge, mxCellState start, mxCellState end, bool 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. More...
 
mxCellState GetTerminalPort (mxCellState state, mxCellState terminal, bool source)
 Returns the given terminal or the port defined in the given edge state if a cell state exists for that port. More...
 
mxPoint GetPerimeterPoint (mxCellState terminal, mxPoint next, bool 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. More...
 
mxPoint GetPerimeterPoint (mxCellState terminal, mxPoint next, bool 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. More...
 
double GetRoutingCenterX (mxCellState state)
 Returns the x-coordinate of the center point for automatic routing. More...
 
double GetRoutingCenterY (mxCellState state)
 Returns the y-coordinate of the center point for automatic routing. More...
 
mxRectangle GetPerimeterBounds (mxCellState terminal, double border)
 Returns the perimeter bounds for the given terminal, edge pair. More...
 
mxPerimeterFunction GetPerimeterFunction (mxCellState state)
 Returns the perimeter function for the given state. More...
 
mxPoint GetNextPoint (mxCellState edge, mxCellState opposite, bool source)
 Returns the nearest point in the list of absolute points or the center of the opposite terminal. More...
 
Object GetVisibleTerminal (Object edge, bool source)
 Returns the nearest ancestor terminal that is visible. The edge appears to be connected to this terminal on the display. More...
 
void UpdateEdgeBounds (mxCellState state)
 Updates the given state using the bounding box of the absolute points. Also updates terminal distance, length and segments. More...
 
mxPoint GetPoint (mxCellState state)
 Returns the absolute center point along the given edge. More...
 
mxPoint GetPoint (mxCellState state, mxGeometry geometry)
 Returns the absolute point on the edge for the given relative geometry as a point. The edge is represented by the given cell state. More...
 
mxCellState GetState (Object cell)
 Returns the state for the given cell or null if no state is defined for the cell. More...
 
Dictionary< Object, mxCellStateGetStates (Object[] cells)
 Returns the object that maps from cells to states. More...
 
mxCellState[] GetCellStates (Object[] cells)
 Returns the states for the given array of cells. The array contains all states that are not null, that is, the returned array may have less elements than the given array. More...
 
mxCellState GetState (Object cell, bool create)
 Returns the cell state for the given cell. If create is true, then the state is created if it does not yet exist. More...
 
mxCellState RemoveState (Object cell)
 Shortcut to removeState with recurse set to false. More...
 
mxCellState RemoveState (Object cell, Boolean recurse)
 Removes and returns the mxCellState for the given cell. More...
 
mxCellState CreateState (Object cell)
 Creates and returns a cell state for the given cell. More...
 

Protected Attributes

mxGraph graph
 Reference to the enclosing graph. More...
 
mxRectangle graphBounds = new mxRectangle()
 Caches the current bounds of the graph. More...
 
double scale = 1
 Specifies the scale. Default is 1 (100%). More...
 
mxPoint translate = new mxPoint(0, 0)
 Point that specifies the current translation. Default is a new empty point. More...
 
Dictionary< Object, mxCellStatestates = new Dictionary<Object, mxCellState>()
 Maps from cells to cell states. More...
 
bool eventsEnabled = true
 Specifies if the view should be revalidated if the scale or translation changes. More...
 

Properties

mxGraph Graph [get]
 Returns the enclosing graph. More...
 
mxRectangle GraphBounds [get, set]
 Returns the cached diagram bounds. More...
 
double Scale [get, set]
 Sets or returns the current scale. More...
 
mxPoint Translate [get, set]
 Sets or returns the current translation. More...
 
Dictionary< Object, mxCellStateStates [get, set]
 Sets or returns the current translation. More...
 
bool IsEventsEnabled [get, set]
 Sets or returns the current scale. More...
 

Detailed Description

Implements a view for the graph. This class is in charge of computing the absolute coordinates for the relative child geometries, the points for perimeters and edge styles and keeping them cached in mxCellStates for faster retrieval. The states are updated whenever the model or the view state (translate, scale) changes. The scale and translate are honoured in the bounds.

Constructor & Destructor Documentation

com.mxgraph.mxGraphView.mxGraphView ( mxGraph  graph)
inline

Constructs a new view for the given graph.

Parameters
graphReference to the enclosing graph.

Member Function Documentation

mxCellState com.mxgraph.mxGraphView.CreateState ( Object  cell)
inline

Creates and returns a cell state for the given cell.

Parameters
cellCell for which a new state should be created.
Returns
Returns a new state for the given cell.
mxRectangle com.mxgraph.mxGraphView.GetBoundingBox ( Object[]  cells)
inline

Returns the bounding box for an array of cells or null, if no cells are specified.

Parameters
cells
Returns
mxRectangle com.mxgraph.mxGraphView.GetBoundingBox ( mxCellState  state)
inline

Shortcut to validateCell with visible set to true.

mxRectangle com.mxgraph.mxGraphView.GetBoundingBox ( mxCellState  state,
Boolean  recurse 
)
inline

Returns the bounding box of the shape and the label for the given cell state and its children if recurse is true.

Parameters
stateCell state whose bounding box should be returned.
recurseBoolean indicating if the children should be included.

References com.mxgraph.mxRectangle.Add(), com.mxgraph.mxCellState.BoundingBox, com.mxgraph.mxCellState.Cell, com.mxgraph.mxRectangle.Clone(), com.mxgraph.mxIGraphModel.GetChildAt(), and com.mxgraph.mxIGraphModel.GetChildCount().

mxRectangle com.mxgraph.mxGraphView.GetBounds ( Object[]  cells)
inline

Returns the bounding box for an array of cells or null, if no cells are specified.

Parameters
cells
Returns
mxRectangle com.mxgraph.mxGraphView.GetBounds ( Object[]  cells,
bool  boundingBox 
)
inline

Returns the bounding box for an array of cells or null, if no cells are specified.

References com.mxgraph.mxRectangle.Add(), com.mxgraph.mxCellState.BoundingBox, com.mxgraph.mxIGraphModel.IsEdge(), and com.mxgraph.mxIGraphModel.IsVertex().

mxCellState [] com.mxgraph.mxGraphView.GetCellStates ( Object[]  cells)
inline

Returns the states for the given array of cells. The array contains all states that are not null, that is, the returned array may have less elements than the given array.

mxEdgeStyleFunction com.mxgraph.mxGraphView.GetEdgeStyle ( mxCellState  edge,
List< mxPoint points,
Object  source,
Object  target 
)
inline
mxPoint com.mxgraph.mxGraphView.GetNextPoint ( mxCellState  edge,
mxCellState  opposite,
bool  source 
)
inline

Returns the nearest point in the list of absolute points or the center of the opposite terminal.

Parameters
edgeState that represents the edge.
oppositeState that represents the opposite terminal.
sourceBoolean indicating if the next point for the source or target should be returned.

References com.mxgraph.mxCellState.AbsolutePoints, com.mxgraph.mxRectangle.GetCenterX(), and com.mxgraph.mxRectangle.GetCenterY().

mxRectangle com.mxgraph.mxGraphView.GetPerimeterBounds ( mxCellState  terminal,
double  border 
)
inline
mxPerimeterFunction com.mxgraph.mxGraphView.GetPerimeterFunction ( mxCellState  state)
inline
mxPoint com.mxgraph.mxGraphView.GetPerimeterPoint ( mxCellState  terminal,
mxPoint  next,
bool  orthogonal 
)
inline

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 com.mxgraph.mxGraphView.GetPerimeterPoint ( mxCellState  terminal,
mxPoint  next,
bool  orthogonal,
double  border 
)
inline

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.

Parameters
terminalState for the source or target terminal.
nextPoint that lies outside of the given terminal.
orthogonalSpecifies if the orthogonal projection onto the perimeter should be returned. If this is false then the intersection of the perimeter and the line between the next and the center point is returned.
borderOptional border between the perimeter and the shape.

References com.mxgraph.mxRectangle.Height, com.mxgraph.mxPerimeterFunction(), and com.mxgraph.mxRectangle.Width.

mxPoint com.mxgraph.mxGraphView.GetPoint ( mxCellState  state)
inline

Returns the absolute center point along the given edge.

mxPoint com.mxgraph.mxGraphView.GetPoint ( mxCellState  state,
mxGeometry  geometry 
)
inline

Returns the absolute point on the edge for the given relative geometry as a point. The edge is represented by the given cell state.

Parameters
stateRepresents the state of the parent edge.
geometryRepresents the relative location.

References com.mxgraph.mxCellState.AbsolutePoints, com.mxgraph.mxRectangle.GetCenterX(), com.mxgraph.mxRectangle.GetCenterY(), com.mxgraph.mxCellState.Length, com.mxgraph.mxGeometry.Offset, com.mxgraph.mxGeometry.Relative, com.mxgraph.mxCellState.Segments, com.mxgraph.mxPoint.X, and com.mxgraph.mxPoint.Y.

double com.mxgraph.mxGraphView.GetRoutingCenterX ( mxCellState  state)
inline

Returns the x-coordinate of the center point for automatic routing.

Returns
Returns the x-coordinate of the routing center point.

References com.mxgraph.mxRectangle.GetCenterX(), com.mxgraph.mxUtils.GetFloat(), com.mxgraph.mxCellState.Style, com.mxgraph.mxConstants.STYLE_ROUTING_CENTER_X, and com.mxgraph.mxRectangle.Width.

double com.mxgraph.mxGraphView.GetRoutingCenterY ( mxCellState  state)
inline

Returns the y-coordinate of the center point for automatic routing.

Returns
Returns the y-coordinate of the routing center point.

References com.mxgraph.mxRectangle.GetCenterY(), com.mxgraph.mxUtils.GetFloat(), com.mxgraph.mxRectangle.Height, com.mxgraph.mxCellState.Style, and com.mxgraph.mxConstants.STYLE_ROUTING_CENTER_Y.

mxCellState com.mxgraph.mxGraphView.GetState ( Object  cell)
inline

Returns the state for the given cell or null if no state is defined for the cell.

Parameters
cellCell whose state should be returned.
Returns
Returns the state for the given cell.
mxCellState com.mxgraph.mxGraphView.GetState ( Object  cell,
bool  create 
)
inline

Returns the cell state for the given cell. If create is true, then the state is created if it does not yet exist.

Parameters
cellCell for which a new state should be returned.
createBoolean indicating if a new state should be created if it does not yet exist.
Returns
Returns the state for the given cell.
Dictionary<Object, mxCellState> com.mxgraph.mxGraphView.GetStates ( Object[]  cells)
inline

Returns the object that maps from cells to states.

mxCellState com.mxgraph.mxGraphView.GetTerminalPort ( mxCellState  state,
mxCellState  terminal,
bool  source 
)
inline

Returns the given terminal or the port defined in the given edge state if a cell state exists for that port.

References com.mxgraph.mxUtils.GetString(), com.mxgraph.mxCellState.Style, com.mxgraph.mxConstants.STYLE_SOURCE_PORT, and com.mxgraph.mxConstants.STYLE_TARGET_PORT.

Object com.mxgraph.mxGraphView.GetVisibleTerminal ( Object  edge,
bool  source 
)
inline

Returns the nearest ancestor terminal that is visible. The edge appears to be connected to this terminal on the display.

Parameters
edgeCell whose visible terminal should be returned.
sourceBoolean that specifies if the source or target terminal should be returned.
Returns
Returns the visible source or target terminal.

References com.mxgraph.mxIGraphModel.GetParent(), com.mxgraph.mxIGraphModel.GetTerminal(), and com.mxgraph.mxIGraphModel.Root.

void com.mxgraph.mxGraphView.Invalidate ( )
inline

Invalidates all cell states.

mxCellState com.mxgraph.mxGraphView.RemoveState ( Object  cell)
inline

Shortcut to removeState with recurse set to false.

mxCellState com.mxgraph.mxGraphView.RemoveState ( Object  cell,
Boolean  recurse 
)
inline

Removes and returns the mxCellState for the given cell.

Parameters
cellmxCell for which the mxCellState should be removed.
Returns
Returns the mxCellState that has been removed.

References com.mxgraph.mxIGraphModel.GetChildAt(), and com.mxgraph.mxIGraphModel.GetChildCount().

void com.mxgraph.mxGraphView.Revalidate ( )
inline

First invalidates, then validates all cell states.

mxPoint com.mxgraph.mxGraphView.TransformControlPoint ( mxCellState  state,
mxPoint  pt 
)
inline

Transforms the given control point to an absolute point.

References com.mxgraph.mxCellState.Origin, com.mxgraph.mxPoint.X, and com.mxgraph.mxPoint.Y.

mxRectangle com.mxgraph.mxGraphView.UpdateBoundingBox ( mxCellState  state)
inline

Updates the bounding box in the given cell state.

Parameters
stateCell state whose bounding box should be updated.
Returns

References com.mxgraph.mxRectangle.Add(), com.mxgraph.mxConstants.ALIGN_BOTTOM, com.mxgraph.mxConstants.ALIGN_CENTER, com.mxgraph.mxConstants.ALIGN_LEFT, com.mxgraph.mxConstants.ALIGN_MIDDLE, com.mxgraph.mxConstants.ALIGN_RIGHT, com.mxgraph.mxConstants.ALIGN_TOP, com.mxgraph.mxConstants.ARROW_WIDTH, com.mxgraph.mxCellState.BoundingBox, com.mxgraph.mxCellState.Cell, com.mxgraph.mxConstants.DEFAULT_IMAGESIZE, com.mxgraph.mxConstants.DEFAULT_MARKERSIZE, com.mxgraph.mxUtils.GetBoundingBox(), com.mxgraph.mxUtils.GetDouble(), com.mxgraph.mxUtils.GetInt(), com.mxgraph.mxRectangle.GetRectangle(), com.mxgraph.mxUtils.GetString(), com.mxgraph.mxRectangle.Grow(), com.mxgraph.mxRectangle.Height, com.mxgraph.mxUtils.IsTrue(), com.mxgraph.mxCellState.LabelBounds, com.mxgraph.mxConstants.SHADOW_OFFSETX, com.mxgraph.mxConstants.SHADOW_OFFSETY, com.mxgraph.mxConstants.SHAPE_ARROW, com.mxgraph.mxConstants.SHAPE_LABEL, com.mxgraph.mxCellState.Style, com.mxgraph.mxConstants.STYLE_ENDARROW, com.mxgraph.mxConstants.STYLE_IMAGE, com.mxgraph.mxConstants.STYLE_IMAGE_ALIGN, com.mxgraph.mxConstants.STYLE_IMAGE_HEIGHT, com.mxgraph.mxConstants.STYLE_IMAGE_VERTICAL_ALIGN, com.mxgraph.mxConstants.STYLE_IMAGE_WIDTH, com.mxgraph.mxConstants.STYLE_OVERFLOW, com.mxgraph.mxConstants.STYLE_ROTATION, com.mxgraph.mxConstants.STYLE_SHADOW, com.mxgraph.mxConstants.STYLE_SHAPE, com.mxgraph.mxConstants.STYLE_STARTARROW, com.mxgraph.mxConstants.STYLE_STROKEWIDTH, com.mxgraph.mxRectangle.Width, com.mxgraph.mxPoint.X, and com.mxgraph.mxPoint.Y.

void com.mxgraph.mxGraphView.UpdateCellState ( mxCellState  state,
mxCellState  source,
mxCellState  target 
)
inline
void com.mxgraph.mxGraphView.UpdateEdgeBounds ( mxCellState  state)
inline

Updates the given state using the bounding box of the absolute points. Also updates terminal distance, length and segments.

Parameters
stateCell state whose bounds should be updated.

References com.mxgraph.mxCellState.AbsolutePoints, com.mxgraph.mxCellState.Cell, com.mxgraph.mxRectangle.Height, com.mxgraph.mxCellState.Length, com.mxgraph.mxCellState.Segments, com.mxgraph.mxCellState.TerminalDistance, com.mxgraph.mxRectangle.Width, com.mxgraph.mxPoint.X, and com.mxgraph.mxPoint.Y.

void com.mxgraph.mxGraphView.UpdateEdgeState ( mxCellState  state,
mxGeometry  geo,
mxCellState  source,
mxCellState  target 
)
inline
void com.mxgraph.mxGraphView.UpdateFixedTerminalPoint ( mxCellState  edge,
mxCellState  terminal,
bool  source,
mxConnectionConstraint  constraint 
)
inline

Sets the fixed source or target terminal point on the given edge.

Parameters
edgeState whose terminal point should be updated.
terminalState which represents the actual terminal.
sourceBoolean that specifies if the terminal is the source.
constraintConstraint that specifies the connection.

References com.mxgraph.mxCellState.Cell, com.mxgraph.mxGeometry.GetTerminalPoint(), com.mxgraph.mxCellState.Origin, com.mxgraph.mxCellState.SetAbsoluteTerminalPoint(), com.mxgraph.mxPoint.X, and com.mxgraph.mxPoint.Y.

void com.mxgraph.mxGraphView.UpdateFixedTerminalPoints ( mxCellState  edge,
mxCellState  source,
mxCellState  target 
)
inline

Sets the initial absolute terminal points in the given state before the edge style is computed.

Parameters
edgeCell state whose initial terminal points should be updated.
sourceCell state which represents the source terminal.
targetCell state which represents the target terminal.
void com.mxgraph.mxGraphView.UpdateFloatingTerminalPoint ( mxCellState  edge,
mxCellState  start,
mxCellState  end,
bool  source 
)
inline

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.

Parameters
edgeState whose terminal point should be updated.
startfor the terminal on "this" side of the edge.
endfor the terminal on the other side of the edge.
sourceBoolean indicating if start is the source terminal state.

References com.mxgraph.mxUtils.GetDouble(), com.mxgraph.mxCellState.SetAbsoluteTerminalPoint(), com.mxgraph.mxCellState.Style, com.mxgraph.mxConstants.STYLE_PERIMETER_SPACING, com.mxgraph.mxConstants.STYLE_SOURCE_PERIMETER_SPACING, and com.mxgraph.mxConstants.STYLE_TARGET_PERIMETER_SPACING.

void com.mxgraph.mxGraphView.UpdateFloatingTerminalPoints ( mxCellState  state,
mxCellState  source,
mxCellState  target 
)
inline

Updates the terminal points in the given state after the edge style was computed for the edge.

Parameters
stateState whose terminal points should be updated.
sourceState that represents the source terminal.
targetState that represents the target terminal.

References com.mxgraph.mxCellState.AbsolutePointCount(), and com.mxgraph.mxCellState.AbsolutePoints.

void com.mxgraph.mxGraphView.UpdateLabelBounds ( mxCellState  state)
inline
void com.mxgraph.mxGraphView.UpdatePoints ( mxCellState  edge,
List< mxPoint points,
mxCellState  source,
mxCellState  target 
)
inline

Updates the absolute points in the given state using the specified array of points as the relative points.

Parameters
edgeCell state whose absolute points should be updated.
pointsArray of points that constitute the relative points.
sourceCell that represents the source terminal.
targetCell that represents the target terminal.

References com.mxgraph.mxCellState.AbsolutePoints, and com.mxgraph.mxEdgeStyleFunction().

void com.mxgraph.mxGraphView.UpdateVertexLabelOffset ( mxCellState  state)
inline
void com.mxgraph.mxGraphView.UpdateVertexState ( mxCellState  state,
mxGeometry  geo 
)
inline

Validates the given cell state.

void com.mxgraph.mxGraphView.Validate ( )
inline

First validates all bounds and then validates all points recursively on all visible cells.

Object com.mxgraph.mxGraphView.ValidateCell ( Object  cell)
inline

Shortcut to validateCell with visible set to true.

Referenced by com.mxgraph.mxCellRenderer.DrawCells().

Object com.mxgraph.mxGraphView.ValidateCell ( Object  cell,
Boolean  visible 
)
inline

Recursively creates the cell state for the given cell if visible is true and the given cell is visible. If the cell is not visible but the state exists then it is removed using removeState.

Parameters
cellCell whose cell state should be created.
visibleBoolean indicating if the cell should be visible.

References com.mxgraph.mxIGraphModel.GetChildAt(), and com.mxgraph.mxIGraphModel.GetChildCount().

mxCellState com.mxgraph.mxGraphView.ValidateCellState ( Object  cell)
inline

Shortcut to validateCellState with recurse set to true.

Referenced by com.mxgraph.mxCellRenderer.DrawCells().

mxCellState com.mxgraph.mxGraphView.ValidateCellState ( Object  cell,
Boolean  recurse 
)
inline

Validates the cell state for the given cell.

Parameters
cellCell whose cell state should be validated.
recurseBoolean indicating if the children of the cell should be validated.
Returns

References com.mxgraph.mxIGraphModel.GetChildAt(), com.mxgraph.mxIGraphModel.GetChildCount(), com.mxgraph.mxIGraphModel.GetParent(), com.mxgraph.mxCellState.Invalid, com.mxgraph.mxIGraphModel.IsEdge(), and com.mxgraph.mxIGraphModel.IsVertex().

Member Data Documentation

bool com.mxgraph.mxGraphView.eventsEnabled = true
protected

Specifies if the view should be revalidated if the scale or translation changes.

mxGraph com.mxgraph.mxGraphView.graph
protected

Reference to the enclosing graph.

mxRectangle com.mxgraph.mxGraphView.graphBounds = new mxRectangle()
protected

Caches the current bounds of the graph.

double com.mxgraph.mxGraphView.scale = 1
protected

Specifies the scale. Default is 1 (100%).

Dictionary<Object, mxCellState> com.mxgraph.mxGraphView.states = new Dictionary<Object, mxCellState>()
protected

Maps from cells to cell states.

mxPoint com.mxgraph.mxGraphView.translate = new mxPoint(0, 0)
protected

Point that specifies the current translation. Default is a new empty point.

Property Documentation

mxGraph com.mxgraph.mxGraphView.Graph
get

Returns the enclosing graph.

mxRectangle com.mxgraph.mxGraphView.GraphBounds
getset

Returns the cached diagram bounds.

bool com.mxgraph.mxGraphView.IsEventsEnabled
getset

Sets or returns the current scale.

Referenced by com.mxgraph.mxCellRenderer.DrawCells().

double com.mxgraph.mxGraphView.Scale
getset
Dictionary<Object, mxCellState> com.mxgraph.mxGraphView.States
getset

Sets or returns the current translation.

Referenced by com.mxgraph.mxCellRenderer.DrawCells().

mxPoint com.mxgraph.mxGraphView.Translate
getset

Sets or returns the current translation.


The documentation for this class was generated from the following file: