|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
edu.uci.ics.jung.visualization.annotations.AnnotatingGraphMousePlugin<V,E>
public class AnnotatingGraphMousePlugin<V,E>
AnnotatingGraphMousePlugin can create Shape and Text annotations in a layer of the graph visualization.
| Field Summary | |
|---|---|
protected boolean |
added
set to true when the AnnotationPaintable has been added to the view component |
protected int |
additionalModifiers
additional modifiers for the action of adding to an existing selection |
protected Color |
annotationColor
color for annotations |
protected AnnotationManager |
annotationManager
a Paintable to store all Annotations |
protected MultiLayerTransformer |
basicTransformer
holds rendering transforms |
protected boolean |
fill
|
protected Annotation.Layer |
layer
layer for annotations |
protected VisualizationServer.Paintable |
lensPaintable
the Paintable for the Shape annotation |
protected RenderContext<V,E> |
rc
holds rendering settings |
protected RectangularShape |
rectangularShape
used to draw a Shape annotation |
| Fields inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin |
|---|
cursor, down, modifiers |
| Constructor Summary | |
|---|---|
AnnotatingGraphMousePlugin(RenderContext<V,E> rc)
create an instance with default settings |
|
AnnotatingGraphMousePlugin(RenderContext<V,E> rc,
int selectionModifiers,
int additionalModifiers)
create an instance with overides |
|
| Method Summary | |
|---|---|
Color |
getAnnotationColor()
|
Annotation.Layer |
getLayer()
|
RectangularShape |
getRectangularShape()
|
boolean |
isFill()
|
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
Draws the transient Paintable that will become a Shape annotation when the mouse button is released |
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
Sets the location for an Annotation. |
void |
mouseReleased(MouseEvent e)
Completes the process of adding a Shape annotation and removed the transient paintable |
void |
setAnnotationColor(Color lensColor)
|
void |
setFill(boolean fill)
|
void |
setLayer(Annotation.Layer layer)
|
void |
setRectangularShape(RectangularShape rect)
|
| Methods inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin |
|---|
checkModifiers, getCursor, getModifiers, setCursor, setModifiers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int additionalModifiers
protected RectangularShape rectangularShape
protected VisualizationServer.Paintable lensPaintable
protected AnnotationManager annotationManager
protected Color annotationColor
protected Annotation.Layer layer
protected boolean fill
protected MultiLayerTransformer basicTransformer
protected RenderContext<V,E> rc
protected boolean added
| Constructor Detail |
|---|
public AnnotatingGraphMousePlugin(RenderContext<V,E> rc)
public AnnotatingGraphMousePlugin(RenderContext<V,E> rc,
int selectionModifiers,
int additionalModifiers)
selectionModifiers - for primary selectionadditionalModifiers - for additional selection| Method Detail |
|---|
public Color getAnnotationColor()
public void setAnnotationColor(Color lensColor)
lensColor - The lensColor to set.public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenere - the eventpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic RectangularShape getRectangularShape()
public void setRectangularShape(RectangularShape rect)
rect - the rect to setpublic Annotation.Layer getLayer()
public void setLayer(Annotation.Layer layer)
layer - the layer to setpublic boolean isFill()
public void setFill(boolean fill)
fill - the fill to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||