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