|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--gumbo.util.AbstractDisposable
|
+--gumbo.util.relation.AbstractTreeNodeDelegator
|
+--gumbo.graphic.space.AbstractSpaceNode
|
+--gumbo.graphic.impl.swing.SwingSpaceNode
|
+--gumbo.graphic.impl.swing.SwingShape
|
+--gumbo.visualize.data.impl.swing.SwingDataShape
|
+--gumbo.visualize.data.impl.swing.SwingGraphVertex
A default graph vertex implemented using a JPanel, and a JLabel for the auto-label. Intended for use with SwingGraphView and a layout engine, such as GraphLayoutEngine, which control layout.
| Field Summary | |
static java.awt.Color |
BODY_COLOR
Default shape body color (0-1). |
static float |
BODY_OPACITY
Default shape body opacity (0-1). |
static java.awt.Dimension |
BODY_SIZE
Default shape body size (pixels). |
static java.awt.Font |
TEXT_FONT
Default label text font. |
| Constructor Summary | |
SwingGraphVertex(PartView view)
|
|
| Method Summary | |
protected void |
drawBorder(java.awt.Color color)
Called by the system to build and realize the graphic's border. |
Point3 |
getGraphicLinkCenter(Point3 retVal)
Gets the "center" point to be used by a linking graphic's shape. |
Point3 |
getGraphicLinkEdge(Point3 point,
Point3 retVal)
In Swing, drawn shapes have a (+.5, -.5) bias. |
protected void |
implDispose()
Disposes the super, then self. |
boolean |
isAutoSized()
Called by system to determine if the graphic shape should be automatically sized to fit its contents, including the label (see getLabel()). |
void |
prepareGraphicPresence()
Informs this graphic entity that, in anticipation of realization, it should update as needed those aspects of its graphic state (geometry, appearance) and that of any dependents (siblings, descendants) that can affect its presentation. |
void |
realizeGraphicPresence()
Informs this graphic entity that external (sibling, ancestor) and internal (self, descendant) state changes that can affect its presentation are complete and assumed valid, and that it should update its presentation as needed to be consistent with its graphic state. |
protected void |
updateFeedback()
Default implementation: Calls drawBorder(), with the color determined by DataFeedback.INSTANCE.feedbackColor(). |
| Methods inherited from class gumbo.visualize.data.impl.swing.SwingDataShape |
clientDataChanged, getAutoLabel, getDataView, initSwingDataShape |
| Methods inherited from class gumbo.graphic.impl.swing.SwingShape |
getInteractorState, initSwingShape, newTreeNodeDelegate |
| Methods inherited from class gumbo.graphic.impl.swing.SwingSpaceNode |
canIntersectGraphic, getGraphic, getGraphicAxisBound3, getGraphicLocalSpace, getGraphicTransform, getGraphicTranslation, initSwingSpaceNode, intersectGraphic, isSpaceTransforming, setGraphicTranslation |
| Methods inherited from class gumbo.graphic.space.AbstractSpaceNode |
getGraphicSpaceTree |
| Methods inherited from class gumbo.util.relation.AbstractTreeNodeDelegator |
getTreeNodeDelegate |
| Methods inherited from class gumbo.util.AbstractDisposable |
dispose, isDisposed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gumbo.graphic.Graphic |
getGraphic |
| Methods inherited from interface gumbo.util.Disposable |
dispose, isDisposed |
| Methods inherited from interface gumbo.graphic.probe.AxisBound3Boundable |
getGraphicAxisBound3 |
| Methods inherited from interface gumbo.graphic.space.GraphicGeometry |
getGraphicLocalSpace |
| Methods inherited from interface gumbo.graphic.space.TranslationNode |
getGraphicTranslation, setGraphicTranslation |
| Methods inherited from interface gumbo.graphic.space.TransformNode |
getGraphicTransform, isSpaceTransforming |
| Methods inherited from interface gumbo.graphic.space.SpaceNode |
getGraphicSpaceTree |
| Field Detail |
public static final float BODY_OPACITY
public static final java.awt.Color BODY_COLOR
public static final java.awt.Dimension BODY_SIZE
public static final java.awt.Font TEXT_FONT
| Constructor Detail |
public SwingGraphVertex(PartView view)
| Method Detail |
public boolean isAutoSized()
protected void drawBorder(java.awt.Color color)
color - The dominant border color. Never null.protected void updateFeedback()
updateFeedback in class SwingShapepublic void prepareGraphicPresence()
GraphicPresence
prepareGraphicPresence in interface GraphicPresenceprepareGraphicPresence in class SwingSpaceNodepublic void realizeGraphicPresence()
GraphicPresence
realizeGraphicPresence in interface GraphicPresencerealizeGraphicPresence in class SwingSpaceNodepublic Point3 getGraphicLinkCenter(Point3 retVal)
LinkableGraphic
getGraphicLinkCenter in interface LinkableGraphicretVal - Return value object. Never null.
public Point3 getGraphicLinkEdge(Point3 point,
Point3 retVal)
getGraphicLinkEdge in interface LinkableGraphicpoint - Some point in space (inside, on, or outside this graphic's
shape). Never null.retVal - Return value object. Never null.
protected void implDispose()
implDispose in class SwingDataShape
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||