|
||||||||||
| 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.EdgeView
org.wilmascope.viewplugin.AttenuatedEdgeView
public class AttenuatedEdgeView
An attenuated edge is tube that's fat at the ends and thin in the middle. If my sloppy calculations are correct then the radius should match the radius of spherical nodes at either end. Colour should also be graded from the start node colour to end node colour.
| Field Summary |
|---|
| Fields inherited from class org.wilmascope.view.GraphElementView |
|---|
t3d |
| Constructor Summary | |
|---|---|
AttenuatedEdgeView()
|
|
| Method Summary | |
|---|---|
void |
draw()
draw the edge correctly between the start and end nodes |
void |
draw2D(Renderer2D r,
java.awt.Graphics2D g,
float transparency)
2D version of attenuated edge is just a two colour solid line. |
javax.swing.ImageIcon |
getIcon()
|
void |
init()
you must over-ride the following method to create the 3D Shapes which will represent your graph elements |
void |
nodeGeometryChanged(NodeView nv)
The node being observed will notify the observer with this method |
void |
setEndRadii()
|
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 |
|---|
getEdge, getPositionAngle, getPositionVector, getProperties, getRadius, setEdge, setHueByWeight, setMultiEdgeOffset, setProperties, setRadius, showLabel |
| 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 AttenuatedEdgeView()
| Method Detail |
|---|
protected void setupDefaultMaterial()
GraphElementView
setupDefaultMaterial in class GraphElementViewprotected void setupHighlightMaterial()
GraphElementView
setupHighlightMaterial in class GraphElementViewpublic void init()
GraphElementView
init in class GraphElementViewpublic void draw()
draw in interface Viewabledraw in class EdgeViewpublic void setEndRadii()
public void draw2D(Renderer2D r,
java.awt.Graphics2D g,
float transparency)
draw2D in interface View2Ddraw2D in class EdgeViewpublic javax.swing.ImageIcon getIcon()
getIcon in class EdgeViewpublic void nodeGeometryChanged(NodeView nv)
NodeGeometryObserver
nodeGeometryChanged in interface NodeGeometryObservernv - the node being observed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||