|
mxGraph 1.10.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mxgraph.swing.handler.mxSelectionCellsHandler
public class mxSelectionCellsHandler
Field Summary | |
---|---|
protected Rectangle |
bounds
Reference to the enclosing graph component. |
static int |
DEFAULT_MAX_HANDLERS
Defines the default value for maxHandlers. |
protected boolean |
enabled
Specifies if this handler is enabled. |
protected mxGraphComponent |
graphComponent
Reference to the enclosing graph component. |
protected LinkedHashMap<Object,mxCellHandler> |
handlers
Maps from cells to handlers in the order of the selection cells. |
protected PropertyChangeListener |
labelMoveHandler
|
protected int |
maxHandlers
Defines the maximum number of handlers to paint individually. |
protected mxEventSource.mxIEventListener |
refreshHandler
|
protected boolean |
visible
Specifies if this handler is visible. |
Constructor Summary | |
---|---|
mxSelectionCellsHandler(mxGraphComponent graphComponent)
|
Method Summary | |
---|---|
protected void |
addGraphListeners(mxGraph graph)
Installs the listeners to update the handles after any changes. |
mxGraphComponent |
getGraphComponent()
|
mxCellHandler |
getHandler(Object cell)
|
int |
getMaxHandlers()
|
String |
getToolTipText(MouseEvent e)
Redirects the tooltip handling of the JComponent to the graph component, which in turn may use getHandleToolTipText in this class to find a tooltip associated with a handle. |
boolean |
isEnabled()
|
boolean |
isVisible()
|
void |
mouseClicked(MouseEvent arg0)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent arg0)
|
void |
mouseExited(MouseEvent arg0)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
Dispatches the mousepressed event to the subhandles. |
void |
mouseReleased(MouseEvent e)
|
void |
paintHandles(Graphics g)
|
void |
refresh()
|
protected void |
removeGraphListeners(mxGraph graph)
Removes all installed listeners. |
void |
reset()
|
void |
setEnabled(boolean value)
|
void |
setMaxHandlers(int value)
|
void |
setVisible(boolean value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int DEFAULT_MAX_HANDLERS
protected mxGraphComponent graphComponent
protected boolean enabled
protected boolean visible
protected Rectangle bounds
protected int maxHandlers
protected transient LinkedHashMap<Object,mxCellHandler> handlers
protected transient mxEventSource.mxIEventListener refreshHandler
protected transient PropertyChangeListener labelMoveHandler
Constructor Detail |
---|
public mxSelectionCellsHandler(mxGraphComponent graphComponent)
graphComponent
- Method Detail |
---|
protected void addGraphListeners(mxGraph graph)
protected void removeGraphListeners(mxGraph graph)
public mxGraphComponent getGraphComponent()
public boolean isEnabled()
public void setEnabled(boolean value)
public boolean isVisible()
public void setVisible(boolean value)
public int getMaxHandlers()
public void setMaxHandlers(int value)
public mxCellHandler getHandler(Object cell)
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public String getToolTipText(MouseEvent e)
public void reset()
public void refresh()
public void paintHandles(Graphics g)
public void mouseClicked(MouseEvent arg0)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent arg0)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent arg0)
mouseExited
in interface MouseListener
|
mxGraph 1.10.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |