|
||||||||||
| 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.SplineTubeEdgeView
public class SplineTubeEdgeView
An edge view which extrudes a tube out along a spline
| Field Summary |
|---|
| Fields inherited from class org.wilmascope.view.GraphElementView |
|---|
t3d |
| Constructor Summary | |
|---|---|
SplineTubeEdgeView()
|
|
| Method Summary | |
|---|---|
void |
copyCurves(Spline spline)
|
void |
draw()
draw the edge correctly between the start and end nodes |
void |
draw2()
draw the edge correctly between the start and end nodes |
void |
draw2D(Renderer2D r,
java.awt.Graphics2D g,
float transparency)
draws a 2D representation of the edge on the specified Graphics2D |
java.util.Vector |
getArrowPositions()
|
java.awt.Rectangle |
getBounds()
|
java.util.Vector |
getCurves()
|
javax.swing.ImageIcon |
getIcon()
|
float |
getXScale()
|
float |
getYScale()
|
void |
init()
you must over-ride the following method to create the 3D Shapes which will represent your graph elements |
void |
setCurves(float xScale,
float yScale,
int x0,
int y0,
int x1,
int y1,
java.util.Vector curves,
java.util.Vector arrowPositions)
|
void |
setScale(float xScale,
float yScale)
|
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 SplineTubeEdgeView()
| Method Detail |
|---|
protected void setupHighlightMaterial()
GraphElementView
setupHighlightMaterial in class GraphElementViewprotected void setupDefaultMaterial()
GraphElementView
setupDefaultMaterial in class GraphElementViewpublic java.util.Vector getCurves()
getCurves in interface Splinepublic java.util.Vector getArrowPositions()
getArrowPositions in interface Spline
public void setScale(float xScale,
float yScale)
setScale in interface Splinepublic void copyCurves(Spline spline)
copyCurves in interface Splinepublic java.awt.Rectangle getBounds()
getBounds in interface Splinepublic float getXScale()
getXScale in interface Splinepublic float getYScale()
getYScale in interface Spline
public void setCurves(float xScale,
float yScale,
int x0,
int y0,
int x1,
int y1,
java.util.Vector curves,
java.util.Vector arrowPositions)
setCurves in interface Spline
public void draw2D(Renderer2D r,
java.awt.Graphics2D g,
float transparency)
draw2D in interface View2Ddraw2D in class EdgeVieworg.wilmascope.view.View2D#draw2D(org.wilmascope.view.Renderer2D, java.awt.Graphics2D)public void draw()
EdgeView
draw in interface Viewabledraw in class EdgeViewpublic void init()
GraphElementView
init in class GraphElementViewpublic void draw2()
public javax.swing.ImageIcon getIcon()
getIcon in class EdgeView
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||