|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object BasicMarqueeHandler edu.jhu.ece.iacl.jist.pipeline.graph.PipeMarqueeHandler
public class PipeMarqueeHandler
The Class PipeMarqueeHandler.
Field Summary | |
---|---|
protected java.awt.geom.Point2D |
current
The current. |
protected PortView |
currentPort
The current port. |
protected boolean |
edgeSelected
The edge selected. |
protected PortView |
firstPort
The first port. |
protected PortView |
port
The port. |
protected java.awt.geom.Point2D |
start
The current. |
Constructor Summary | |
---|---|
PipeMarqueeHandler(PipeJGraph graph)
Instantiates a new pipe marquee handler. |
Method Summary | |
---|---|
javax.swing.JPopupMenu |
createPopupMenu(java.awt.Point pt,
PipeAlgorithm algo,
PipeAlgorithmFactory.AlgorithmCell cell)
Creates the popup menu. |
void |
dispose()
Dispose. |
protected void |
drawPortLabel(java.awt.Graphics2D g,
PortView port)
Draw port label. |
PortView |
getSourcePortAt(java.awt.geom.Point2D point)
Gets the source port at. |
protected PortView |
getTargetPortAt(java.awt.geom.Point2D point)
Gets the target port at. |
boolean |
isForceMarqueeEvent(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
protected void |
paintConnector(java.awt.Color fg,
java.awt.Color bg,
java.awt.Graphics g)
Paint connector. |
protected void |
paintPort(java.awt.Graphics g)
Paint port. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.awt.geom.Point2D start
protected java.awt.geom.Point2D current
protected PortView port
protected PortView firstPort
protected boolean edgeSelected
protected PortView currentPort
Constructor Detail |
---|
public PipeMarqueeHandler(PipeJGraph graph)
graph
- the graphMethod Detail |
---|
public javax.swing.JPopupMenu createPopupMenu(java.awt.Point pt, PipeAlgorithm algo, PipeAlgorithmFactory.AlgorithmCell cell)
pt
- the ptalgo
- the algocell
- the cell
public void dispose()
protected void drawPortLabel(java.awt.Graphics2D g, PortView port)
g
- the gport
- the portpublic PortView getSourcePortAt(java.awt.geom.Point2D point)
point
- the point
protected PortView getTargetPortAt(java.awt.geom.Point2D point)
point
- the point
public boolean isForceMarqueeEvent(java.awt.event.MouseEvent e)
public void mouseDragged(java.awt.event.MouseEvent e)
public void mouseMoved(java.awt.event.MouseEvent e)
public void mousePressed(java.awt.event.MouseEvent e)
public void mouseReleased(java.awt.event.MouseEvent e)
protected void paintConnector(java.awt.Color fg, java.awt.Color bg, java.awt.Graphics g)
fg
- the fgbg
- the bgg
- the gprotected void paintPort(java.awt.Graphics g)
g
- the g
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |