<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 "><B>com.mxgraph.swing.handler.mxCellHandler</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B><DD><AHREF="../../../../com/mxgraph/swing/handler/mxEdgeHandler.html"title="class in com.mxgraph.swing.handler">mxEdgeHandler</A>, <AHREF="../../../../com/mxgraph/swing/handler/mxVertexHandler.html"title="class in com.mxgraph.swing.handler">mxVertexHandler</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>mxCellHandler</B><DT>extends <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></DL>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true"title="class or interface in java.awt">Rectangle</A></CODE></FONT></TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Point.html?is-external=true"title="class or interface in java.awt">Point</A></CODE></FONT></TD>
<CODE>protected <AHREF="../../../../com/mxgraph/swing/mxGraphComponent.html"title="class in com.mxgraph.swing">mxGraphComponent</A></CODE></FONT></TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true"title="class or interface in java.awt">Rectangle</A>[]</CODE></FONT></TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/swing/JComponent.html?is-external=true"title="class or interface in javax.swing">JComponent</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../../com/mxgraph/swing/handler/mxCellHandler.html#mxCellHandler(com.mxgraph.swing.mxGraphComponent, com.mxgraph.view.mxCellState)">mxCellHandler</A></B>(<AHREF="../../../../com/mxgraph/swing/mxGraphComponent.html"title="class in com.mxgraph.swing">mxGraphComponent</A> graphComponent,
<AHREF="../../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</CODE>
<BR>
Constructs a new cell handler for the given cell state.</TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true"title="class or interface in java.awt">Rectangle</A>[]</CODE></FONT></TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/swing/JComponent.html?is-external=true"title="class or interface in javax.swing">JComponent</A></CODE></FONT></TD>
<CODE> <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true"title="class or interface in java.awt">Rectangle</A></CODE></FONT></TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Cursor.html?is-external=true"title="class or interface in java.awt">Cursor</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../../com/mxgraph/swing/handler/mxCellHandler.html#getCursor(java.awt.event.MouseEvent, int)">getCursor</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/event/MouseEvent.html?is-external=true"title="class or interface in java.awt.event">MouseEvent</A> e,
int index)</CODE>
<BR>
Returns the cursor for the given event and handle.</TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Color.html?is-external=true"title="class or interface in java.awt">Color</A></CODE></FONT></TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Color.html?is-external=true"title="class or interface in java.awt">Color</A></CODE></FONT></TD>
<CODE> <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Color.html?is-external=true"title="class or interface in java.awt">Color</A></CODE></FONT></TD>
<CODE> <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Stroke.html?is-external=true"title="class or interface in java.awt">Stroke</A></CODE></FONT></TD>
<CODE> <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../../com/mxgraph/swing/handler/mxCellHandler.html#getToolTipText(java.awt.event.MouseEvent)">getToolTipText</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/event/MouseEvent.html?is-external=true"title="class or interface in java.awt.event">MouseEvent</A> e)</CODE>
<BR>
Hook for subclassers to return tooltip texts for certain points on the
<TD><CODE><B><AHREF="../../../../com/mxgraph/swing/handler/mxCellHandler.html#isIgnoredEvent(java.awt.event.MouseEvent)">isIgnoredEvent</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/event/MouseEvent.html?is-external=true"title="class or interface in java.awt.event">MouseEvent</A> e)</CODE>
<BR>
Returns true if the given event should be ignored.</TD>
<TD><CODE><B><AHREF="../../../../com/mxgraph/swing/handler/mxCellHandler.html#mouseDragged(java.awt.event.MouseEvent)">mouseDragged</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/event/MouseEvent.html?is-external=true"title="class or interface in java.awt.event">MouseEvent</A> e)</CODE>
<BR>
Processes the given event.</TD>
<TD><CODE><B><AHREF="../../../../com/mxgraph/swing/handler/mxCellHandler.html#mouseMoved(java.awt.event.MouseEvent)">mouseMoved</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/event/MouseEvent.html?is-external=true"title="class or interface in java.awt.event">MouseEvent</A> e)</CODE>
<BR>
Processes the given event.</TD>
<TD><CODE><B><AHREF="../../../../com/mxgraph/swing/handler/mxCellHandler.html#mousePressed(java.awt.event.MouseEvent)">mousePressed</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/event/MouseEvent.html?is-external=true"title="class or interface in java.awt.event">MouseEvent</A> e)</CODE>
<BR>
Processes the given event.</TD>
<TD><CODE><B><AHREF="../../../../com/mxgraph/swing/handler/mxCellHandler.html#mouseReleased(java.awt.event.MouseEvent)">mouseReleased</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/event/MouseEvent.html?is-external=true"title="class or interface in java.awt.event">MouseEvent</A> e)</CODE>
<BR>
Processes the given event.</TD>
<TD><CODE><B><AHREF="../../../../com/mxgraph/swing/handler/mxCellHandler.html#paint(java.awt.Graphics)">paint</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics.html?is-external=true"title="class or interface in java.awt">Graphics</A> g)</CODE>
<BR>
Paints the visible handles of this handler.</TD>
<TD><CODE><B><AHREF="../../../../com/mxgraph/swing/handler/mxCellHandler.html#refresh(com.mxgraph.view.mxCellState)">refresh</A></B>(<AHREF="../../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</CODE>
<BR>
Refreshes the cell handler.</TD>
<TD><CODE><B><AHREF="../../../../com/mxgraph/swing/handler/mxCellHandler.html#start(java.awt.event.MouseEvent, int)">start</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/event/MouseEvent.html?is-external=true"title="class or interface in java.awt.event">MouseEvent</A> e,
int index)</CODE>
<BR>
Starts handling a gesture at the given handle index.</TD>
<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/swing/mxGraphComponent.html"title="class in com.mxgraph.swing">mxGraphComponent</A><B>graphComponent</B></PRE>
<DL>
<DD>Reference to the enclosing graph component.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="state"><!----></A><H3>
state</H3>
<PRE>
protected <AHREF="../../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A><B>state</B></PRE>
<DL>
<DD>Holds the cell state associated with this handler.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="handles"><!----></A><H3>
handles</H3>
<PRE>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true"title="class or interface in java.awt">Rectangle</A>[] <B>handles</B></PRE>
<DL>
<DD>Holds the rectangles that define the handles.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="handlesVisible"><!----></A><H3>
handlesVisible</H3>
<PRE>
protected boolean <B>handlesVisible</B></PRE>
<DL>
<DD>Specifies if the handles should be painted. Default is true.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="bounds"><!----></A><H3>
bounds</H3>
<PRE>
protected transient <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true"title="class or interface in java.awt">Rectangle</A><B>bounds</B></PRE>
<DL>
<DD>Holds the bounding box of the handler.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="preview"><!----></A><H3>
preview</H3>
<PRE>
protected transient <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/swing/JComponent.html?is-external=true"title="class or interface in javax.swing">JComponent</A><B>preview</B></PRE>
<DL>
<DD>Holds the component that is used for preview.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="first"><!----></A><H3>
first</H3>
<PRE>
protected transient <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Point.html?is-external=true"title="class or interface in java.awt">Point</A><B>first</B></PRE>
<DL>
<DD>Holds the start location of the mouse gesture.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="index"><!----></A><H3>
index</H3>
<PRE>
protected transient int <B>index</B></PRE>
<DL>
<DD>Holds the index of the handle that was clicked.
public <B>mxCellHandler</B>(<AHREF="../../../../com/mxgraph/swing/mxGraphComponent.html"title="class in com.mxgraph.swing">mxGraphComponent</A> graphComponent,
<AHREF="../../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</PRE>
<DL>
<DD>Constructs a new cell handler for the given cell state.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>graphComponent</CODE> - Enclosing graph component.<DD><CODE>state</CODE> - Cell state for which the handler is created.</DL>
public void <B>refresh</B>(<AHREF="../../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</PRE>
<DL>
<DD>Refreshes the cell handler.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getGraphComponent()"><!----></A><H3>
getGraphComponent</H3>
<PRE>
public <AHREF="../../../../com/mxgraph/swing/mxGraphComponent.html"title="class in com.mxgraph.swing">mxGraphComponent</A><B>getGraphComponent</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getState()"><!----></A><H3>
getState</H3>
<PRE>
public <AHREF="../../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A><B>getState</B>()</PRE>
<DL>
<DD>Returns the cell state that is associated with this handler.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getIndex()"><!----></A><H3>
getIndex</H3>
<PRE>
public int <B>getIndex</B>()</PRE>
<DL>
<DD>Returns the index of the current handle.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getBounds()"><!----></A><H3>
getBounds</H3>
<PRE>
public <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true"title="class or interface in java.awt">Rectangle</A><B>getBounds</B>()</PRE>
<DL>
<DD>Returns the bounding box of this handler.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isLabelMovable()"><!----></A><H3>
isLabelMovable</H3>
<PRE>
public boolean <B>isLabelMovable</B>()</PRE>
<DL>
<DD>Returns true if the label is movable.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isHandlesVisible()"><!----></A><H3>
isHandlesVisible</H3>
<PRE>
public boolean <B>isHandlesVisible</B>()</PRE>
<DL>
<DD>Returns true if the handles should be painted.
public void <B>setHandlesVisible</B>(boolean handlesVisible)</PRE>
<DL>
<DD>Specifies if the handles should be painted.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isLabel(int)"><!----></A><H3>
isLabel</H3>
<PRE>
public boolean <B>isLabel</B>(int index)</PRE>
<DL>
<DD>Returns true if the given index is the index of the last handle.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="createHandles()"><!----></A><H3>
createHandles</H3>
<PRE>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true"title="class or interface in java.awt">Rectangle</A>[] <B>createHandles</B>()</PRE>
<DL>
<DD>Creates the rectangles that define the handles.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getHandleCount()"><!----></A><H3>
getHandleCount</H3>
<PRE>
protected int <B>getHandleCount</B>()</PRE>
<DL>
<DD>Returns the number of handles in this handler.
public <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A><B>getToolTipText</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/event/MouseEvent.html?is-external=true"title="class or interface in java.awt.event">MouseEvent</A> e)</PRE>
<DL>
<DD>Hook for subclassers to return tooltip texts for certain points on the
handle.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getIndexAt(int, int)"><!----></A><H3>
getIndexAt</H3>
<PRE>
public int <B>getIndexAt</B>(int x,
int y)</PRE>
<DL>
<DD>Returns the index of the handle at the given location.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - X-coordinate of the location.<DD><CODE>y</CODE> - Y-coordinate of the location.
<DT><B>Returns:</B><DD>Returns the handle index for the given location.</DL>
public void <B>mousePressed</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/event/MouseEvent.html?is-external=true"title="class or interface in java.awt.event">MouseEvent</A> e)</PRE>
public void <B>mouseMoved</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/event/MouseEvent.html?is-external=true"title="class or interface in java.awt.event">MouseEvent</A> e)</PRE>
public void <B>mouseDragged</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/event/MouseEvent.html?is-external=true"title="class or interface in java.awt.event">MouseEvent</A> e)</PRE>
public void <B>mouseReleased</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/event/MouseEvent.html?is-external=true"title="class or interface in java.awt.event">MouseEvent</A> e)</PRE>
public void <B>start</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/event/MouseEvent.html?is-external=true"title="class or interface in java.awt.event">MouseEvent</A> e,
int index)</PRE>
<DL>
<DD>Starts handling a gesture at the given handle index.
protected boolean <B>isIgnoredEvent</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/event/MouseEvent.html?is-external=true"title="class or interface in java.awt.event">MouseEvent</A> e)</PRE>
<DL>
<DD>Returns true if the given event should be ignored.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="createPreview()"><!----></A><H3>
createPreview</H3>
<PRE>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/swing/JComponent.html?is-external=true"title="class or interface in javax.swing">JComponent</A><B>createPreview</B>()</PRE>
<DL>
<DD>Creates the preview for this handler.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="reset()"><!----></A><H3>
reset</H3>
<PRE>
public void <B>reset</B>()</PRE>
<DL>
<DD>Resets the state of the handler and removes the preview.
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Cursor.html?is-external=true"title="class or interface in java.awt">Cursor</A><B>getCursor</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/event/MouseEvent.html?is-external=true"title="class or interface in java.awt.event">MouseEvent</A> e,
int index)</PRE>
<DL>
<DD>Returns the cursor for the given event and handle.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="paint(java.awt.Graphics)"><!----></A><H3>
paint</H3>
<PRE>
public void <B>paint</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics.html?is-external=true"title="class or interface in java.awt">Graphics</A> g)</PRE>
<DL>
<DD>Paints the visible handles of this handler.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getSelectionColor()"><!----></A><H3>
getSelectionColor</H3>
<PRE>
public <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Color.html?is-external=true"title="class or interface in java.awt">Color</A><B>getSelectionColor</B>()</PRE>
<DL>
<DD>Returns the color used to draw the selection border. This implementation
returns null.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getSelectionStroke()"><!----></A><H3>
getSelectionStroke</H3>
<PRE>
public <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Stroke.html?is-external=true"title="class or interface in java.awt">Stroke</A><B>getSelectionStroke</B>()</PRE>
<DL>
<DD>Returns the stroke used to draw the selection border. This implementation
<DD>Returns true if the handle at the specified index is visible.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getHandleFillColor(int)"><!----></A><H3>
getHandleFillColor</H3>
<PRE>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Color.html?is-external=true"title="class or interface in java.awt">Color</A><B>getHandleFillColor</B>(int index)</PRE>
<DL>
<DD>Returns the color to be used to fill the handle at the specified index.
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Color.html?is-external=true"title="class or interface in java.awt">Color</A><B>getHandleBorderColor</B>(int index)</PRE>
<DL>
<DD>Returns the border color of the handle at the specified index.