public class mxInsertHandler extends mxMouseAdapter
Modifier and Type | Field and Description |
---|---|
protected mxRectangle |
current |
protected boolean |
enabled
Specifies if this handler is enabled.
|
protected mxEventSource |
eventSource |
protected Point |
first |
protected mxGraphComponent |
graphComponent
Reference to the enclosing graph component.
|
protected Color |
lineColor |
protected float |
lineWidth |
protected boolean |
rounded |
protected String |
style |
Constructor and Description |
---|
mxInsertHandler(mxGraphComponent graphComponent,
String style) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(String eventName,
mxEventSource.mxIEventListener listener) |
mxGraphComponent |
getGraphComponent() |
Object |
insertCell(mxRectangle bounds) |
boolean |
isEnabled() |
boolean |
isStartEvent(MouseEvent e) |
void |
mouseDragged(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
paint(Graphics g) |
void |
removeListener(mxEventSource.mxIEventListener listener) |
void |
removeListener(mxEventSource.mxIEventListener listener,
String eventName) |
void |
reset() |
void |
setEnabled(boolean value) |
void |
start(MouseEvent e) |
mouseClicked, mouseEntered, mouseExited, mouseMoved
protected mxGraphComponent graphComponent
protected boolean enabled
protected String style
protected Point first
protected float lineWidth
protected Color lineColor
protected boolean rounded
protected mxRectangle current
protected mxEventSource eventSource
public mxInsertHandler(mxGraphComponent graphComponent, String style)
public mxGraphComponent getGraphComponent()
public boolean isEnabled()
public void setEnabled(boolean value)
public boolean isStartEvent(MouseEvent e)
public void start(MouseEvent e)
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class mxMouseAdapter
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class mxMouseAdapter
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class mxMouseAdapter
public Object insertCell(mxRectangle bounds)
public void reset()
public void paint(Graphics g)
public void addListener(String eventName, mxEventSource.mxIEventListener listener)
public void removeListener(mxEventSource.mxIEventListener listener)
public void removeListener(mxEventSource.mxIEventListener listener, String eventName)
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.