org.wilmascope.viewplugin
Class BendyEdgeView

java.lang.Object
  extended by org.wilmascope.patterns.Prototype
      extended by org.wilmascope.view.GraphElementView
          extended by org.wilmascope.view.EdgeView
              extended by org.wilmascope.viewplugin.BendyEdgeView
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, EdgeAbility, EdgeView, Viewable, CompoundEdgeView, View2D

public class BendyEdgeView
extends EdgeView
implements CompoundEdgeView

An edge view that has bends at the specified positions. The bends must be assigned by the layout engine.

Version:
1.0
Author:
Tim Dwyer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.wilmascope.view.GraphElementView
t3d
 
Constructor Summary
BendyEdgeView()
           
 
Method Summary
 void addBend(javax.vecmath.Point3f bendPosition)
          A bend point, should be specified by the layout engine
 void draw()
          draw the edge correctly between the start and end nodes
 javax.swing.ImageIcon getIcon()
           
 java.util.Properties getProperties()
           
 void init()
          you must over-ride the following method to create the 3D Shapes which will represent your graph elements
 void setProperties(java.util.Properties p)
           
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.EdgeView
draw2D, getEdge, getPositionAngle, getPositionVector, getRadius, setEdge, setHueByWeight, setMultiEdgeOffset, setRadius, 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, 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

BendyEdgeView

public BendyEdgeView()
Method Detail

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

setupHighlightMaterial

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

Specified by:
setupHighlightMaterial in class GraphElementView

init

public 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

addBend

public void addBend(javax.vecmath.Point3f bendPosition)
A bend point, should be specified by the layout engine

Specified by:
addBend in interface CompoundEdgeView
See Also:
CompoundEdgeView.addBend(javax.vecmath.Point3f)

draw

public void draw()
Description copied from class: EdgeView
draw the edge correctly between the start and end nodes

Specified by:
draw in interface Viewable
Overrides:
draw in class EdgeView

getIcon

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

setProperties

public void setProperties(java.util.Properties p)
Overrides:
setProperties in class EdgeView

getProperties

public java.util.Properties getProperties()
Overrides:
getProperties in class EdgeView