|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBasicMarqueeHandler
org.jgraph.pad.GPMarqueeHandler
MarqueeHandler that can insert cells.
Field Summary | |
protected java.awt.geom.Rectangle2D |
bounds
|
protected java.awt.Container |
c
|
static int |
CELL_EDGE_DEFAULT
|
static int |
CELL_PORT_DEFAULT
|
static int |
CELL_VERTEX_DEFAULT
|
static int |
CELL_VERTEX_ELLIPSE
|
static int |
CELL_VERTEX_IMAGE
|
static int |
CELL_VERTEX_TEXT
|
protected java.awt.geom.Point2D |
current
|
protected java.awt.Color |
defaultBorderColor
The default color for borders |
protected int |
dx
|
protected int |
dy
|
protected PortView |
firstPort
|
protected GPGraphpad |
graphpad
A reference to the graphpad object |
protected PortView |
lastPort
|
protected boolean |
m_dragging
|
protected int |
m_XDifference
|
protected int |
m_YDifference
|
protected PortView |
port
|
protected java.awt.geom.Point2D |
start
|
Constructor Summary | |
GPMarqueeHandler(GPGraphpad graphpad)
Constructor for GPMarqueeHandler. |
Method Summary | |
void |
addEdge()
override the way an edge is added if necessary |
javax.swing.JToggleButton |
getButtonEdge()
Returns the buttonEdge. |
javax.swing.JToggleButton |
getButtonLine()
Returns the buttonLine. |
javax.swing.JToggleButton |
getButtonSelect()
Returns the buttonSelect. |
javax.swing.JToggleButton |
getButtonZoomArea()
Returns the buttonZoomArea. |
GPGraphpad |
getGraphpad()
|
PortView |
getPort()
|
PortView |
getPortViewAt(int x,
int y)
|
boolean |
isForceMarqueeEvent(java.awt.event.MouseEvent e)
|
boolean |
isM_dragging()
|
protected boolean |
isPopupTrigger(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent event)
|
void |
mouseMoved(java.awt.event.MouseEvent event)
|
void |
mousePressed(java.awt.event.MouseEvent event)
|
void |
mouseReleased(java.awt.event.MouseEvent event)
|
void |
overlay(java.awt.Graphics g,
boolean clear)
|
protected void |
paintPort(java.awt.Graphics g)
|
void |
setButtonEdge(javax.swing.JToggleButton buttonEdge)
|
void |
setButtonLine(javax.swing.JToggleButton buttonLine)
|
void |
setButtonSelect(javax.swing.JToggleButton buttonSelect)
|
void |
setButtonZoomArea(javax.swing.JToggleButton buttonZoomArea)
|
void |
setGraphpad(GPGraphpad graphpad)
|
void |
setM_dragging(boolean m_dragging)
|
void |
setPort(PortView port)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CELL_VERTEX_ELLIPSE
public static final int CELL_VERTEX_DEFAULT
public static final int CELL_VERTEX_IMAGE
public static final int CELL_VERTEX_TEXT
public static final int CELL_PORT_DEFAULT
public static final int CELL_EDGE_DEFAULT
protected int m_XDifference
protected int m_YDifference
protected int dx
protected int dy
protected boolean m_dragging
protected java.awt.Container c
protected GPGraphpad graphpad
protected transient java.awt.Color defaultBorderColor
protected java.awt.geom.Point2D start
protected java.awt.geom.Point2D current
protected java.awt.geom.Rectangle2D bounds
protected PortView port
protected PortView firstPort
protected PortView lastPort
Constructor Detail |
public GPMarqueeHandler(GPGraphpad graphpad)
Method Detail |
public boolean isForceMarqueeEvent(java.awt.event.MouseEvent e)
protected boolean isPopupTrigger(java.awt.event.MouseEvent e)
public void mousePressed(java.awt.event.MouseEvent event)
public void mouseDragged(java.awt.event.MouseEvent event)
public PortView getPortViewAt(int x, int y)
public void mouseReleased(java.awt.event.MouseEvent event)
public void addEdge()
public void mouseMoved(java.awt.event.MouseEvent event)
public void overlay(java.awt.Graphics g, boolean clear)
protected void paintPort(java.awt.Graphics g)
public javax.swing.JToggleButton getButtonEdge()
public javax.swing.JToggleButton getButtonLine()
public javax.swing.JToggleButton getButtonSelect()
public javax.swing.JToggleButton getButtonZoomArea()
public PortView getPort()
public void setPort(PortView port)
public boolean isM_dragging()
public void setM_dragging(boolean m_dragging)
public GPGraphpad getGraphpad()
public void setGraphpad(GPGraphpad graphpad)
public void setButtonSelect(javax.swing.JToggleButton buttonSelect)
public void setButtonLine(javax.swing.JToggleButton buttonLine)
public void setButtonEdge(javax.swing.JToggleButton buttonEdge)
public void setButtonZoomArea(javax.swing.JToggleButton buttonZoomArea)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |