<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><AHREF="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">com.mxgraph.util.mxEventSource</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><B>com.mxgraph.view.mxGraphView</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>mxGraphView</B><DT>extends <AHREF="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</A></DL>
</PRE>
<P>
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 cell states 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.
This class fires the following events:
mxEvent.UNDO fires after the root was changed in setCurrentRoot. The
<code>edit</code> property contains the mxUndoableEdit which contains the
mxCurrentRootChange.
mxEvent.SCALE_AND_TRANSLATE fires after the scale and transle have been
changed in scaleAndTranslate. The <code>scale</code>, <code>previousScale</code>,
<code>translate</code> and <code>previousTranslate</code> properties contain
the new and previous scale and translate, respectively.
mxEvent.SCALE fires after the scale was changed in setScale. The
<code>scale</code> and <code>previousScale</code> properties contain the
new and previous scale.
mxEvent.TRANSLATE fires after the translate was changed in setTranslate. The
<code>translate</code> and <code>previousTranslate</code> properties contain
the new and previous value for translate.
mxEvent.UP and mxEvent.DOWN fire if the current root is changed by executing
a mxCurrentRootChange. The event name depends on the location of the root
in the cell hierarchy with respect to the current root. The
<code>root</code> and <code>previous</code> properties contain the new and
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.mxCurrentRootChange.html"title="class in com.mxgraph.view">mxGraphView.mxCurrentRootChange</A></B></CODE>
<BR>
Action to change the current root in a view.</TD>
<THALIGN="left"><B>Nested classes/interfaces inherited from class com.mxgraph.util.<AHREF="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html"title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</A></CODE></TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></CODE></FONT></TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Hashtable.html?is-external=true"title="class or interface in java.util">Hashtable</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>,<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A>></CODE></FONT></TD>
<THALIGN="left"><B>Fields inherited from class com.mxgraph.util.<AHREF="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</A></B></TH>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#mxGraphView(com.mxgraph.view.mxGraph)">mxGraphView</A></B>(<AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A> graph)</CODE>
<BR>
Constructs a new view for the given graph.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#clear(java.lang.Object, boolean, boolean)">clear</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell,
boolean force,
boolean recurse)</CODE>
<BR>
Removes the state of the given cell and all descendants if the given
<CODE> <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#createState(java.lang.Object)">createState</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell)</CODE>
<BR>
Creates and returns a cell state for the given cell.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getBoundingBox(com.mxgraph.view.mxCellState)">getBoundingBox</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</CODE>
<BR>
Shortcut to validateCell with visible set to true.</TD>
<CODE> <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getBoundingBox(com.mxgraph.view.mxCellState, boolean)">getBoundingBox</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
boolean recurse)</CODE>
<BR>
Returns the bounding box of the shape and the label for the given
cell state and its children if recurse is true.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getBoundingBox(java.lang.Object[])">getBoundingBox</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>[] cells)</CODE>
<BR>
Returns the bounding box for an array of cells or null, if no cells are
<CODE> <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getBounds(java.lang.Object[])">getBounds</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>[] cells)</CODE>
<BR>
Returns the bounding box for an array of cells or null, if no cells are
<CODE> <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getBounds(java.lang.Object[], boolean)">getBounds</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>[] cells,
boolean boundingBox)</CODE>
<BR>
Returns the bounding box for an array of cells or null, if no cells are
<CODE> <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A>[]</CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getCellStates(java.lang.Object[])">getCellStates</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>[] cells)</CODE>
<BR>
Returns the states for the given array of cells.</TD>
<CODE> <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></CODE></FONT></TD>
<CODE> <AHREF="../../../com/mxgraph/view/mxEdgeStyle.mxEdgeStyleFunction.html"title="interface in com.mxgraph.view">mxEdgeStyle.mxEdgeStyleFunction</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getEdgeStyle(com.mxgraph.view.mxCellState, java.util.List, java.lang.Object, java.lang.Object)">getEdgeStyle</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> edge,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</A><<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A>> points,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> source,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> target)</CODE>
<BR>
Returns the edge style function to be used to compute the absolute
points for the given state, control points and terminals.</TD>
<CODE> <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getNextPoint(com.mxgraph.view.mxCellState, com.mxgraph.view.mxCellState, boolean)">getNextPoint</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> edge,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> opposite,
boolean source)</CODE>
<BR>
Returns the nearest point in the list of absolute points or the center
<CODE> <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getPerimeterBounds(com.mxgraph.view.mxCellState, double)">getPerimeterBounds</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> terminal,
double border)</CODE>
<BR>
Returns the perimeter bounds for the given terminal, edge pair.</TD>
<CODE> <AHREF="../../../com/mxgraph/view/mxPerimeter.mxPerimeterFunction.html"title="interface in com.mxgraph.view">mxPerimeter.mxPerimeterFunction</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getPerimeterFunction(com.mxgraph.view.mxCellState)">getPerimeterFunction</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</CODE>
<BR>
Returns the perimeter function for the given state.</TD>
<CODE> <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getPerimeterPoint(com.mxgraph.view.mxCellState, com.mxgraph.util.mxPoint, boolean)">getPerimeterPoint</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> terminal,
<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A> next,
boolean orthogonal)</CODE>
<BR>
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.</TD>
<CODE> <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getPoint(com.mxgraph.view.mxCellState)">getPoint</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</CODE>
<BR>
Returns the absolute center point along the given edge.</TD>
<CODE> <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getPoint(com.mxgraph.view.mxCellState, com.mxgraph.model.mxGeometry)">getPoint</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
<AHREF="../../../com/mxgraph/model/mxGeometry.html"title="class in com.mxgraph.model">mxGeometry</A> geometry)</CODE>
<BR>
Returns the absolute point on the edge for the given relative
<CODE> <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getRelativePoint(com.mxgraph.view.mxCellState, double, double)">getRelativePoint</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> edgeState,
double x,
double y)</CODE>
<BR>
Gets the relative point that describes the given, absolute label
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getRoutingCenterX(com.mxgraph.view.mxCellState)">getRoutingCenterX</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</CODE>
<BR>
Returns the x-coordinate of the center point for automatic routing.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getRoutingCenterY(com.mxgraph.view.mxCellState)">getRoutingCenterY</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</CODE>
<BR>
Returns the y-coordinate of the center point for automatic routing.</TD>
<CODE> <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getState(java.lang.Object)">getState</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell)</CODE>
<BR>
Returns the state for the given cell or null if no state is defined for
<CODE> <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getState(java.lang.Object, boolean)">getState</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell,
boolean create)</CODE>
<BR>
Returns the cell state for the given cell.</TD>
<CODE> <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Hashtable.html?is-external=true"title="class or interface in java.util">Hashtable</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>,<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A>></CODE></FONT></TD>
<CODE> <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getTerminalPort(com.mxgraph.view.mxCellState, com.mxgraph.view.mxCellState, boolean)">getTerminalPort</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> terminal,
boolean source)</CODE>
<BR>
Returns a cell state that represents the source or target terminal or
<CODE> <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getVisibleTerminal(java.lang.Object, boolean)">getVisibleTerminal</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> edge,
boolean source)</CODE>
<BR>
Returns the nearest ancestor terminal that is visible.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#getWordWrapWidth(com.mxgraph.view.mxCellState)">getWordWrapWidth</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</CODE>
<BR>
Returns the width for wrapping the label of the given state at
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#invalidate(java.lang.Object)">invalidate</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell)</CODE>
<BR>
Invalidates the state of the given cell, all its descendants and
<CODE> <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#removeState(java.lang.Object)">removeState</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell)</CODE>
<BR>
Removes and returns the mxCellState for the given cell.</TD>
<CODE> <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#setCurrentRoot(java.lang.Object)">setCurrentRoot</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> root)</CODE>
<BR>
Sets and returns the current root and fires an undo event.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#setGraphBounds(com.mxgraph.util.mxRectangle)">setGraphBounds</A></B>(<AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A> value)</CODE>
<BR>
Sets the graph bounds.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#setStates(java.util.Hashtable)">setStates</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Hashtable.html?is-external=true"title="class or interface in java.util">Hashtable</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>,<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A>> states)</CODE>
<BR>
Returns the dictionary that maps from cells to states.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#setTranslate(com.mxgraph.util.mxPoint)">setTranslate</A></B>(<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A> value)</CODE>
<BR>
Sets the current translation and invalidates the view.</TD>
<CODE> <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#transformControlPoint(com.mxgraph.view.mxCellState, com.mxgraph.util.mxPoint)">transformControlPoint</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A> pt)</CODE>
<BR>
Transforms the given control point to an absolute point.</TD>
<CODE> <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#updateBoundingBox(com.mxgraph.view.mxCellState)">updateBoundingBox</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</CODE>
<BR>
Updates the bounding box in the given cell state.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#updateCellState(com.mxgraph.view.mxCellState)">updateCellState</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</CODE>
<BR>
Updates the given cell state.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#updateEdgeBounds(com.mxgraph.view.mxCellState)">updateEdgeBounds</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</CODE>
<BR>
Updates the given state using the bounding box of the absolute points.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#updateEdgeState(com.mxgraph.view.mxCellState, com.mxgraph.model.mxGeometry)">updateEdgeState</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
<AHREF="../../../com/mxgraph/model/mxGeometry.html"title="class in com.mxgraph.model">mxGeometry</A> geo)</CODE>
<BR>
Validates the given cell state.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#updateFixedTerminalPoints(com.mxgraph.view.mxCellState, com.mxgraph.view.mxCellState, com.mxgraph.view.mxCellState)">updateFixedTerminalPoints</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> edge,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> source,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> target)</CODE>
<BR>
Sets the initial absolute terminal points in the given state before the edge
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#updateFloatingTerminalPoints(com.mxgraph.view.mxCellState, com.mxgraph.view.mxCellState, com.mxgraph.view.mxCellState)">updateFloatingTerminalPoints</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> source,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> target)</CODE>
<BR>
Updates the terminal points in the given state after the edge style was
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#updateLabel(com.mxgraph.view.mxCellState)">updateLabel</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</CODE>
<BR>
Updates the label of the given state.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#updateLabelBounds(com.mxgraph.view.mxCellState)">updateLabelBounds</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</CODE>
<BR>
Updates the label bounds in the given state.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#updatePoints(com.mxgraph.view.mxCellState, java.util.List, com.mxgraph.view.mxCellState, com.mxgraph.view.mxCellState)">updatePoints</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> edge,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</A><<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A>> points,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> source,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> target)</CODE>
<BR>
Updates the absolute points in the given state using the specified array
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#updateVertexLabelOffset(com.mxgraph.view.mxCellState)">updateVertexLabelOffset</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</CODE>
<BR>
Updates the absoluteOffset of the given vertex cell state.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#updateVertexState(com.mxgraph.view.mxCellState, com.mxgraph.model.mxGeometry)">updateVertexState</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
<AHREF="../../../com/mxgraph/model/mxGeometry.html"title="class in com.mxgraph.model">mxGeometry</A> geo)</CODE>
<BR>
Validates the given cell state.</TD>
<CODE> <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#validateCell(java.lang.Object)">validateCell</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell)</CODE>
<CODE> <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#validateCell(java.lang.Object, boolean)">validateCell</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell,
boolean visible)</CODE>
<BR>
Recursively creates the cell state for the given cell if visible is true and
<CODE> <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#validateCellState(java.lang.Object)">validateCellState</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell)</CODE>
<CODE> <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxGraphView.html#validateCellState(java.lang.Object, boolean)">validateCellState</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell,
boolean recurse)</CODE>
<BR>
Validates the cell state for the given cell.</TD>
<THALIGN="left"><B>Methods inherited from class com.mxgraph.util.<AHREF="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</A></B></TH>
<THALIGN="left"><B>Methods inherited from class java.lang.<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</A></CODE></TD>
protected <AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A><B>graph</B></PRE>
<DL>
<DD>Reference to the enclosing graph.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="currentRoot"><!----></A><H3>
currentRoot</H3>
<PRE>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A><B>currentRoot</B></PRE>
<DL>
<DD>mxCell that acts as the root of the displayed cell hierarchy.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="graphBounds"><!----></A><H3>
graphBounds</H3>
<PRE>
protected <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A><B>graphBounds</B></PRE>
<DL>
<DD>Caches the current bounds of the graph.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="scale"><!----></A><H3>
scale</H3>
<PRE>
protected double <B>scale</B></PRE>
<DL>
<DD>Specifies the scale. Default is 1 (100%).
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="translate"><!----></A><H3>
translate</H3>
<PRE>
protected <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>translate</B></PRE>
<DL>
<DD>Point that specifies the current translation. Default is a new
empty point.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="states"><!----></A><H3>
states</H3>
<PRE>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Hashtable.html?is-external=true"title="class or interface in java.util">Hashtable</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>,<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A>><B>states</B></PRE>
public <AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A><B>getGraph</B>()</PRE>
<DL>
<DD>Returns the enclosing graph.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>Returns the enclosing graph.</DL>
</DD>
</DL>
<HR>
<ANAME="getStates()"><!----></A><H3>
getStates</H3>
<PRE>
public <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Hashtable.html?is-external=true"title="class or interface in java.util">Hashtable</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>,<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A>><B>getStates</B>()</PRE>
<DL>
<DD>Returns the dictionary that maps from cells to states.
public void <B>setStates</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Hashtable.html?is-external=true"title="class or interface in java.util">Hashtable</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>,<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A>> states)</PRE>
<DL>
<DD>Returns the dictionary that maps from cells to states.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getGraphBounds()"><!----></A><H3>
getGraphBounds</H3>
<PRE>
public <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A><B>getGraphBounds</B>()</PRE>
<DL>
<DD>Returns the cached diagram bounds.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>Returns the diagram bounds.</DL>
public void <B>setGraphBounds</B>(<AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A> value)</PRE>
<DL>
<DD>Sets the graph bounds.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getCurrentRoot()"><!----></A><H3>
getCurrentRoot</H3>
<PRE>
public <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A><B>getCurrentRoot</B>()</PRE>
public <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A><B>setCurrentRoot</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> root)</PRE>
<DL>
<DD>Sets and returns the current root and fires an undo event.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>root</CODE> - mxCell that specifies the root of the displayed cell hierarchy.
<DT><B>Returns:</B><DD>Returns the object that represents the current root.</DL>
public void <B>scaleAndTranslate</B>(double scale,
double dx,
double dy)</PRE>
<DL>
<DD>Sets the scale and translation. Fires a "scaleAndTranslate"
event after calling revalidate. Revalidate is only called if
isEventsEnabled.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>scale</CODE> - Decimal value that specifies the new scale (1 is 100%).<DD><CODE>dx</CODE> - X-coordinate of the translation.<DD><CODE>dy</CODE> - Y-coordinate of the translation.</DL>
</DD>
</DL>
<HR>
<ANAME="getScale()"><!----></A><H3>
getScale</H3>
<PRE>
public double <B>getScale</B>()</PRE>
<DL>
<DD>Returns the current scale.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>Returns the scale.</DL>
</DD>
</DL>
<HR>
<ANAME="setScale(double)"><!----></A><H3>
setScale</H3>
<PRE>
public void <B>setScale</B>(double value)</PRE>
<DL>
<DD>Sets the current scale and revalidates the view. Fires a "scale"
event after calling revalidate. Revalidate is only called if
isEventsEnabled.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - New scale to be used.</DL>
</DD>
</DL>
<HR>
<ANAME="getTranslate()"><!----></A><H3>
getTranslate</H3>
<PRE>
public <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>getTranslate</B>()</PRE>
<DL>
<DD>Returns the current translation.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>Returns the translation.</DL>
public <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A><B>getBounds</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>[] cells)</PRE>
<DL>
<DD>Returns the bounding box for an array of cells or null, if no cells are
specified.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cells</CODE> -
<DT><B>Returns:</B><DD>Returns the bounding box for the given cells.</DL>
public <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A><B>getBoundingBox</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>[] cells)</PRE>
<DL>
<DD>Returns the bounding box for an array of cells or null, if no cells are
specified.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cells</CODE> -
<DT><B>Returns:</B><DD>Returns the bounding box for the given cells.</DL>
public <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A><B>getBounds</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>[] cells,
boolean boundingBox)</PRE>
<DL>
<DD>Returns the bounding box for an array of cells or null, if no cells are
specified.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cells</CODE> -
<DT><B>Returns:</B><DD>Returns the bounding box for the given cells.</DL>
</DD>
</DL>
<HR>
<ANAME="reload()"><!----></A><H3>
reload</H3>
<PRE>
public void <B>reload</B>()</PRE>
<DL>
<DD>Removes all existing cell states and invokes validate.
public void <B>clear</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell,
boolean force,
boolean recurse)</PRE>
<DL>
<DD>Removes the state of the given cell and all descendants if the given
public void <B>invalidate</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell)</PRE>
<DL>
<DD>Invalidates the state of the given cell, all its descendants and
connected edges.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="validate()"><!----></A><H3>
validate</H3>
<PRE>
public void <B>validate</B>()</PRE>
<DL>
<DD>First validates all bounds and then validates all points recursively on
public <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A><B>getBoundingBox</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</PRE>
public <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A><B>getBoundingBox</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
<DT><B>Parameters:</B><DD><CODE>state</CODE> - Cell state whose bounding box should be returned.<DD><CODE>recurse</CODE> - Boolean indicating if the children should be included.</DL>
public <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A><B>validateCell</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell)</PRE>
<DL>
<DD>Shortcut to validateCell with visible set to true.
public <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A><B>validateCell</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell,
boolean visible)</PRE>
<DL>
<DD>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.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cell</CODE> - Cell whose cell state should be created.<DD><CODE>visible</CODE> - Boolean indicating if the cell should be visible.</DL>
public <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A><B>validateCellState</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell)</PRE>
<DL>
<DD>Shortcut to validateCellState with recurse set to true.
public <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A><B>validateCellState</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell,
boolean recurse)</PRE>
<DL>
<DD>Validates the cell state for the given cell.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cell</CODE> - Cell whose cell state should be validated.<DD><CODE>recurse</CODE> - Boolean indicating if the children of the cell should be
public void <B>updateCellState</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</PRE>
public void <B>updateVertexLabelOffset</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</PRE>
<DL>
<DD>Updates the absoluteOffset of the given vertex cell state. This takes
into account the label position styles.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>state</CODE> - Cell state whose absolute offset should be updated.</DL>
public double <B>getWordWrapWidth</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</PRE>
<DL>
<DD>Returns the width for wrapping the label of the given state at
public void <B>updateLabelBounds</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</PRE>
public <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A><B>updateBoundingBox</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</PRE>
<DL>
<DD>Updates the bounding box in the given cell state.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>state</CODE> - Cell state whose bounding box should be
public void <B>updateFixedTerminalPoints</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> edge,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> source,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> target)</PRE>
<DL>
<DD>Sets the initial absolute terminal points in the given state before the edge
style is computed.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>edge</CODE> - Cell state whose initial terminal points should be updated.<DD><CODE>source</CODE> - Cell state which represents the source terminal.<DD><CODE>target</CODE> - Cell state which represents the target terminal.</DL>
public void <B>updateFixedTerminalPoint</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> edge,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> terminal,
boolean source,
<AHREF="../../../com/mxgraph/view/mxConnectionConstraint.html"title="class in com.mxgraph.view">mxConnectionConstraint</A> constraint)</PRE>
<DL>
<DD>Sets the fixed source or target terminal point on the given edge.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>edge</CODE> - Cell state whose initial terminal points should be
public void <B>updatePoints</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> edge,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</A><<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A>> points,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> source,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> target)</PRE>
<DL>
<DD>Updates the absolute points in the given state using the specified array
of points as the relative points.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>edge</CODE> - Cell state whose absolute points should be updated.<DD><CODE>points</CODE> - Array of points that constitute the relative points.<DD><CODE>source</CODE> - Cell state that represents the source terminal.<DD><CODE>target</CODE> - Cell state that represents the target terminal.</DL>
public <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>transformControlPoint</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A> pt)</PRE>
<DL>
<DD>Transforms the given control point to an absolute point.
public <AHREF="../../../com/mxgraph/view/mxEdgeStyle.mxEdgeStyleFunction.html"title="interface in com.mxgraph.view">mxEdgeStyle.mxEdgeStyleFunction</A><B>getEdgeStyle</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> edge,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</A><<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A>> points,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> source,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> target)</PRE>
<DL>
<DD>Returns the edge style function to be used to compute the absolute
points for the given state, control points and terminals.
public void <B>updateFloatingTerminalPoints</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> source,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> target)</PRE>
<DL>
<DD>Updates the terminal points in the given state after the edge style was
computed for the edge.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>state</CODE> - Cell state whose terminal points should be updated.<DD><CODE>source</CODE> - Cell state that represents the source terminal.<DD><CODE>target</CODE> - Cell state that represents the target terminal.</DL>
public void <B>updateFloatingTerminalPoint</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> edge,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> start,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> end,
boolean source)</PRE>
<DL>
<DD>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.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>edge</CODE> - Cell state whose terminal point should be updated.<DD><CODE>start</CODE> - Cell state for the terminal on "this" side of the edge.<DD><CODE>end</CODE> - Cell state for the terminal on the other side of the edge.<DD><CODE>source</CODE> - Boolean indicating if start is the source terminal state.</DL>
public <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A><B>getTerminalPort</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> terminal,
boolean source)</PRE>
<DL>
<DD>Returns a cell state that represents the source or target terminal or
public <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>getPerimeterPoint</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> terminal,
<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A> next,
boolean orthogonal)</PRE>
<DL>
<DD>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.
public <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>getPerimeterPoint</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> terminal,
<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A> next,
boolean orthogonal,
double border)</PRE>
<DL>
<DD>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.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>terminal</CODE> - Cell state for the source or target terminal.<DD><CODE>next</CODE> - Point that lies outside of the given terminal.<DD><CODE>orthogonal</CODE> - Boolean that specifies 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.<DD><CODE>border</CODE> - Optional border between the perimeter and the shape.</DL>
public double <B>getRoutingCenterX</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</PRE>
<DL>
<DD>Returns the x-coordinate of the center point for automatic routing.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>Returns the x-coordinate of the routing center point.</DL>
public double <B>getRoutingCenterY</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</PRE>
<DL>
<DD>Returns the y-coordinate of the center point for automatic routing.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>Returns the y-coordinate of the routing center point.</DL>
public <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A><B>getPerimeterBounds</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> terminal,
double border)</PRE>
<DL>
<DD>Returns the perimeter bounds for the given terminal, edge pair.
public <AHREF="../../../com/mxgraph/view/mxPerimeter.mxPerimeterFunction.html"title="interface in com.mxgraph.view">mxPerimeter.mxPerimeterFunction</A><B>getPerimeterFunction</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</PRE>
<DL>
<DD>Returns the perimeter function for the given state.
public <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>getNextPoint</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> edge,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> opposite,
boolean source)</PRE>
<DL>
<DD>Returns the nearest point in the list of absolute points or the center
of the opposite terminal.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>edge</CODE> - Cell state that represents the edge.<DD><CODE>opposite</CODE> - Cell state that represents the opposite terminal.<DD><CODE>source</CODE> - Boolean indicating if the next point for the source or target
should be returned.
<DT><B>Returns:</B><DD>Returns the nearest point of the opposite side.</DL>
public <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A><B>getVisibleTerminal</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> edge,
boolean source)</PRE>
<DL>
<DD>Returns the nearest ancestor terminal that is visible. The edge appears
to be connected to this terminal on the display.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>edge</CODE> - Cell whose visible terminal should be returned.<DD><CODE>source</CODE> - Boolean that specifies if the source or target terminal
should be returned.
<DT><B>Returns:</B><DD>Returns the visible source or target terminal.</DL>
public void <B>updateEdgeBounds</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</PRE>
<DL>
<DD>Updates the given state using the bounding box of the absolute points.
Also updates terminal distance, length and segments.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>state</CODE> - Cell state whose bounds should be updated.</DL>
public <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>getPoint</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</PRE>
<DL>
<DD>Returns the absolute center point along the given edge.
public <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>getPoint</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
<AHREF="../../../com/mxgraph/model/mxGeometry.html"title="class in com.mxgraph.model">mxGeometry</A> geometry)</PRE>
<DL>
<DD>Returns the absolute point on the edge for the given relative
geometry as a point. The edge is represented by the given cell state.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>state</CODE> - Represents the state of the parent edge.<DD><CODE>geometry</CODE> - Optional geometry that represents the relative location.
<DT><B>Returns:</B><DD>Returns the mxpoint that represents the absolute location
public <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>getRelativePoint</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> edgeState,
double x,
double y)</PRE>
<DL>
<DD>Gets the relative point that describes the given, absolute label
public <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A>[] <B>getCellStates</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>[] cells)</PRE>
<DL>
<DD>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
public <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A><B>getState</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell)</PRE>
<DL>
<DD>Returns the state for the given cell or null if no state is defined for
the cell.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cell</CODE> - Cell whose state should be returned.
<DT><B>Returns:</B><DD>Returns the state for the given cell.</DL>
public <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A><B>getState</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell,
boolean create)</PRE>
<DL>
<DD>Returns the cell state for the given cell. If create is true, then
the state is created if it does not yet exist.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cell</CODE> - Cell for which a new state should be returned.<DD><CODE>create</CODE> - Boolean indicating if a new state should be created if it
does not yet exist.
<DT><B>Returns:</B><DD>Returns the state for the given cell.</DL>
public <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A><B>removeState</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell)</PRE>
<DL>
<DD>Removes and returns the mxCellState for the given cell.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cell</CODE> - mxCell for which the mxCellState should be removed.
<DT><B>Returns:</B><DD>Returns the mxCellState that has been removed.</DL>
public <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A><B>createState</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> cell)</PRE>
<DL>
<DD>Creates and returns a cell state for the given cell.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cell</CODE> - Cell for which a new state should be created.
<DT><B>Returns:</B><DD>Returns a new state for the given cell.</DL>