|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wilmascope.patterns.Prototype
org.wilmascope.view.GraphElementView
org.wilmascope.view.NodeView
public abstract class NodeView
Title: WilmaToo Description: Sequel to the ever popular WilmaScope software Copyright: Copyright (c) 2001 Company: WilmaScope.org
Field Summary |
---|
Fields inherited from class org.wilmascope.view.GraphElementView |
---|
t3d |
Constructor Summary | |
---|---|
NodeView()
|
Method Summary | |
---|---|
void |
addGeometryObserver(NodeGeometryObserver o)
By implementing the NodeGeometryObserver interface an EdgeView can register with this NodeView to be notified of any changes to its geometry so that it can update itself accordingly |
void |
draw()
|
void |
draw2D(Renderer2D r,
java.awt.Graphics2D g,
float transparency)
|
java.awt.Point |
getCanvasPosition(java.awt.Component canvas)
|
javax.swing.ImageIcon |
getIcon()
|
Node |
getNode()
Get the Node that this ability is registered with |
java.util.Properties |
getProperties()
|
float |
getRadius()
|
javax.vecmath.Point3f |
getVWorldPosition()
|
void |
hideAnchor()
|
void |
moveToCanvasPos(GraphCanvas c,
int x,
int y)
Move the node in a plane parallel to the view plate, such that it appears at the point on the canvas specified in x and y. |
void |
setColour(javax.vecmath.Color3f c)
When a new colour is set any GeometryObservers that have been added to this object will be notified |
void |
setNode(Node node)
Called by Node when this ability is registered with that node. |
void |
setProperties(java.util.Properties p)
|
void |
setRadius(float radius)
sets the radius of the node's boundary sphere |
void |
showAnchor()
|
protected void |
showLabel(java.lang.String text)
|
Methods inherited from class org.wilmascope.patterns.Prototype |
---|
clone, getTypeName, setTypeName |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.wilmascope.graph.Viewable |
---|
delete, hide, setPickable, show |
Constructor Detail |
---|
public NodeView()
Method Detail |
---|
public void addGeometryObserver(NodeGeometryObserver o)
o
- public void draw()
draw
in interface Viewable
public Node getNode()
NodeAbility
getNode
in interface NodeAbility
public void setNode(Node node)
NodeAbility
setNode
in interface NodeAbility
public javax.swing.ImageIcon getIcon()
getIcon
in class GraphElementView
protected void showLabel(java.lang.String text)
showLabel
in class GraphElementView
public void showAnchor()
public void hideAnchor()
public javax.vecmath.Point3f getVWorldPosition()
public java.awt.Point getCanvasPosition(java.awt.Component canvas)
getCanvasPosition
in interface NodeView
public void moveToCanvasPos(GraphCanvas c, int x, int y)
c
- the canvasx
- the x awt coordinatey
- the y awt coordinatepublic void setColour(javax.vecmath.Color3f c)
setColour
in class GraphElementView
c
- new colour for this NodeViewaddGeometryObserver(NodeGeometryObserver)
public void setRadius(float radius)
setRadius
in interface NodeView
radius
- the radius of the node, (0.25 is a good size)public float getRadius()
getRadius
in interface NodeView
public void setProperties(java.util.Properties p)
setProperties
in class GraphElementView
public java.util.Properties getProperties()
getProperties
in class GraphElementView
public void draw2D(Renderer2D r, java.awt.Graphics2D g, float transparency)
draw2D
in interface View2D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |