|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--snap.ui.diagram.Visualization
Visualization is the UI abstraction of a Visualization object. The Visualization object encapsulates all the information needed to build the UI representation of a visualization within a layout.
Constructor Summary | |
Visualization(snap.graph.UINode node,
snap.ui.diagram.DiagramPanel container)
Class constructor |
Method Summary | |
void |
addLink(snap.ui.diagram.Link link)
Adds a Link to the list of associated links for this Visualization object |
boolean |
containsPoint(java.awt.Point testPoint)
Determines whether a given point passed in as a parameter is within the graphical drawing space of the Visualization. |
void |
erase(java.awt.Graphics g)
Erases the iconic representation of the Visualization object. |
java.awt.Point |
getCenterPoint()
Calculates the center point of the iconic representation of the Visualization and returns that as a Point object for rendering the associated coordinations in the UI. |
java.util.Vector |
getLinks()
Retrieves the list of Links associated with this Visualization. |
java.awt.Point |
getLocation()
Retrieves the location where the Visualization object is painting |
snap.graph.UINode |
getUINode()
Retrieves the UINode of the Visualization object. |
boolean |
isLinked()
Determines if the Visualization is connected by examining the list of associated coordinations. |
void |
paintComponent(java.awt.Graphics g)
Draws the iconic represntation of the SnapVisualizaiton object at its location. |
void |
removeLink(snap.ui.diagram.Link link)
Removes a coordination from the list of associated coordinations for this Visualization object |
void |
setLocation(java.awt.Point newPoint)
Sets the location where the Visualization should paint to the point specified by parameter. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Visualization(snap.graph.UINode node, snap.ui.diagram.DiagramPanel container)
node
- the node of the new VisualizationMethod Detail |
public void setLocation(java.awt.Point newPoint)
newPoint
- the new location where the object should paintpublic snap.graph.UINode getUINode()
public java.awt.Point getLocation()
public java.awt.Point getCenterPoint()
public java.util.Vector getLinks()
public boolean isLinked()
public boolean containsPoint(java.awt.Point testPoint)
testPoint
- the point to test for containment
public void paintComponent(java.awt.Graphics g)
g
- the graphics context to use for paintingpublic void erase(java.awt.Graphics g)
g
- the graphics context to use for paintingpublic void addLink(snap.ui.diagram.Link link)
link
- the Link object to be added or associated
with the visualization objectpublic void removeLink(snap.ui.diagram.Link link)
link
- the Link object to be removed from the
Visualization object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |