com.mxgraph.swing.handler
Class mxInsertHandler
java.lang.Object
com.mxgraph.swing.util.mxMouseAdapter
com.mxgraph.swing.handler.mxInsertHandler
- All Implemented Interfaces:
- MouseListener, MouseMotionListener, EventListener
public class mxInsertHandler
- extends mxMouseAdapter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
graphComponent
protected mxGraphComponent graphComponent
- Reference to the enclosing graph component.
enabled
protected boolean enabled
- Specifies if this handler is enabled. Default is true.
style
protected String style
first
protected Point first
lineWidth
protected float lineWidth
lineColor
protected Color lineColor
rounded
protected boolean rounded
current
protected mxRectangle current
eventSource
protected mxEventSource eventSource
mxInsertHandler
public mxInsertHandler(mxGraphComponent graphComponent,
String style)
getGraphComponent
public mxGraphComponent getGraphComponent()
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean value)
isStartEvent
public boolean isStartEvent(MouseEvent e)
start
public void start(MouseEvent e)
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed
in interface MouseListener
- Overrides:
mousePressed
in class mxMouseAdapter
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDragged
in interface MouseMotionListener
- Overrides:
mouseDragged
in class mxMouseAdapter
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased
in interface MouseListener
- Overrides:
mouseReleased
in class mxMouseAdapter
insertCell
public Object insertCell(mxRectangle bounds)
reset
public void reset()
paint
public void paint(Graphics g)
addListener
public void addListener(String eventName,
mxEventSource.mxIEventListener listener)
removeListener
public void removeListener(mxEventSource.mxIEventListener listener)
removeListener
public void removeListener(mxEventSource.mxIEventListener listener,
String eventName)
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.