|
Graph Common | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgraph.graph.BasicMarqueeHandler
pl.psnc.graph.model.marquee.CustomMarqueeHandler
public class CustomMarqueeHandler
CustomMarqueeHandler
class - custom implementation of marquee handler
for JGraph. This marquee handler is observable, so it updates listeners about
left mouse clicks. If user click on vertex than vertex info is attached to
the notification. Feel free to subclass this class to change default
behaviour.
Field Summary | |
---|---|
protected java.awt.geom.Point2D |
currentPort
Holds the Start and the Current Point |
protected org.jgraph.graph.PortView |
currentPortView
Holds the First and the Current Port |
protected org.jgraph.graph.PortView |
firstPortView
Holds the First and the Current Port |
protected org.jgraph.JGraph |
graph
Stores instance of field: graph |
protected java.awt.geom.Point2D |
startPoint
Holds the Start and the Current Point |
Fields inherited from class org.jgraph.graph.BasicMarqueeHandler |
---|
currentPoint, marqueeBounds, previousCursor |
Constructor Summary | |
---|---|
CustomMarqueeHandler(org.jgraph.JGraph graph)
Creates a new instance of CustomMarqueeHandler |
Method Summary | |
---|---|
pl.psnc.vlab.util.gui.util.ModelObservable<CustomMarqueeHandler> |
getModelObservable()
Get value of field: modelObservable |
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 |
void |
setModelObservable(pl.psnc.vlab.util.gui.util.ModelObservable<CustomMarqueeHandler> modelObservable)
Set value of field: modelObservable |
Methods inherited from class org.jgraph.graph.BasicMarqueeHandler |
---|
getCurrentPoint, getGraphForEvent, getMarqueeBounds, getPreviousCursor, getStartPoint, handleMarqueeEvent, isMarqueeTriggerEvent, overlay, paint, processMouseDraggedEvent, setCurrentPoint, setMarqueeBounds, setPreviousCursor, setStartPoint |
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 startPoint
protected java.awt.geom.Point2D currentPort
protected org.jgraph.graph.PortView currentPortView
protected org.jgraph.graph.PortView firstPortView
protected final org.jgraph.JGraph graph
Constructor Detail |
---|
public CustomMarqueeHandler(org.jgraph.JGraph graph)
CustomMarqueeHandler
graph
- graph instanceMethod Detail |
---|
public boolean isForceMarqueeEvent(java.awt.event.MouseEvent e)
isForceMarqueeEvent
in class org.jgraph.graph.BasicMarqueeHandler
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in class org.jgraph.graph.BasicMarqueeHandler
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in class org.jgraph.graph.BasicMarqueeHandler
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in class org.jgraph.graph.BasicMarqueeHandler
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in class org.jgraph.graph.BasicMarqueeHandler
protected void paintConnector(java.awt.Color fg, java.awt.Color bg, java.awt.Graphics g)
fg
- foreground colourbg
- background colourg
- instance of Graphics
protected void paintPort(java.awt.Graphics g)
g
- instance of Graphics
public pl.psnc.vlab.util.gui.util.ModelObservable<CustomMarqueeHandler> getModelObservable()
public void setModelObservable(pl.psnc.vlab.util.gui.util.ModelObservable<CustomMarqueeHandler> modelObservable)
modelObservable
- the modelObservable to set
|
Graph Common | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |