org.wilmascope.viewplugin
Class LineNodeView

java.lang.Object
  extended by org.wilmascope.patterns.Prototype
      extended by org.wilmascope.view.GraphElementView
          extended by org.wilmascope.view.NodeView
              extended by org.wilmascope.viewplugin.LineNodeView
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, NodeAbility, NodeView, Viewable, View2D

public class LineNodeView
extends NodeView

Basically the following is an invisible dummy node... might replace it with an OpenGL dot

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.wilmascope.view.GraphElementView
t3d
 
Constructor Summary
LineNodeView()
           
 
Method Summary
 void draw2D(Renderer2D r, java.awt.Graphics2D g, float transparency)
           
 javax.swing.ImageIcon getIcon()
           
protected  void init()
          you must over-ride the following method to create the 3D Shapes which will represent your graph elements
protected  void setupDefaultMaterial()
          Sets the default material for graph elements You must over-ride this abstract method stub with: setupDefaultAppearance(myDefaultMaterial);
protected  void setupHighlightMaterial()
          You must over-ride this method with: setupHighlightAppearance(myHighLightedMaterial)
 
Methods inherited from class org.wilmascope.view.NodeView
addGeometryObserver, draw, getCanvasPosition, getNode, getProperties, getRadius, getVWorldPosition, hideAnchor, moveToCanvasPos, setColour, setNode, setProperties, setRadius, showAnchor, showLabel
 
Methods inherited from class org.wilmascope.view.GraphElementView
addLabel, addLiveBranch, addPickingClient, addShape, addTransformGroupChild, defaultColour, delete, getAppearance, getAxisAngle4f, getBranchGroup, getColor3f, getColour, getDefaultColour, getGraphCanvas, getLabel, getTransformGroup, getUserData, hide, highlightColour, initGraphElement, isDefaultColour, makePickable, picked, removeLabel, removePickingClient, setColour, setColour, setFullTransform, setFullTransform, setLabel, setLabel, setLabel, setPickable, setResizeTranslateTransform, setTransformGroupTransform, setTranslation, setTransparencyAttributes, setupDefaultAppearance, setupHighlightAppearance, setUserData, show, transform
 
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

LineNodeView

public LineNodeView()
Method Detail

setupHighlightMaterial

protected void setupHighlightMaterial()
Description copied from class: GraphElementView
You must over-ride this method with: setupHighlightAppearance(myHighLightedMaterial)

Specified by:
setupHighlightMaterial in class GraphElementView

setupDefaultMaterial

protected void setupDefaultMaterial()
Description copied from class: GraphElementView
Sets the default material for graph elements You must over-ride this abstract method stub with: setupDefaultAppearance(myDefaultMaterial);

Specified by:
setupDefaultMaterial in class GraphElementView

init

protected void init()
Description copied from class: GraphElementView
you must over-ride the following method to create the 3D Shapes which will represent your graph elements

Specified by:
init in class GraphElementView

getIcon

public javax.swing.ImageIcon getIcon()
Overrides:
getIcon in class NodeView

draw2D

public void draw2D(Renderer2D r,
                   java.awt.Graphics2D g,
                   float transparency)
Specified by:
draw2D in interface View2D
Overrides:
draw2D in class NodeView