|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides a mechanism for rendering layer edges into an OpenGL context.
Before this realizer can be used to render a layer edge, the layer edge has
to be bound to this realizer by calling
bindLayerEdge
. Note that this is done
automatically when calling
Graph25D.setRealizer(LayerEdge, LayerEdgeRealizer25D)
.
Field Summary | |
static int |
MODE_2D
2D drawing mode for lines. |
static int |
MODE_3D
3D drawing mode for lines. |
Method Summary | |
void |
bindLayerEdge(LayerEdge le)
Binds this realizer to the passed layer edge. |
LayerEdgeRealizer25D |
createCopy()
Creates a copy of this realizer and returns it. |
Arrow |
getArrow()
Returns the arrow at the target of the layer edge. |
LayerEdge |
getLayerEdge()
Returns the layer edge that has been bound to this realizer, or null if no layer edge has been bound yet. |
Color |
getLineColor()
Returns the color of this layer edge realizer. |
int |
getLineDisplayMode()
Returns the current display mode for drawing lines. |
double |
getLineRadius()
Returns the radius of this layer edge realizer. |
Arrow |
getSourceArrow()
Returns the arrow at the source of the layer edge; |
NodeRealizer |
getSourceRealizer()
Returns the realizer of the source node or null , if not
bound to a layer edge yet. |
Arrow |
getTargetArrow()
Returns the arrow at the target of the layer edge; |
NodeRealizer |
getTargetRealizer()
Returns the realizer of the target node or null , if not
bound to a layer edge yet. |
boolean |
isSelected()
Returns true if this realizer is currently selected,
false otherwise. |
void |
paintGL(GLAutoDrawable drawable,
Camera camera)
Renders the layer edge this realizer is bound to into the given drawable. |
void |
setArrow(Arrow arrow)
Sets the arrow at the target of the layer edge. |
void |
setLineColor(Color color)
Sets the color of this layer edge realizer. |
void |
setLineDisplayMode(int mode)
Sets the current display mode for drawing lines. |
void |
setLineRadius(double d)
Sets the radius of this layer edge realizer. |
void |
setSelected(boolean selected)
Sets the selection state of this realizer. |
void |
setSourceArrow(Arrow arrow)
Sets the arrow at the source of the layer edge. |
void |
setTargetArrow(Arrow arrow)
Sets the arrow at the target of the layer edge. |
Methods inherited from interface y25.layout.LayerEdgeLayout25D |
getBoundingBox |
Field Detail |
public static final int MODE_2D
public static final int MODE_3D
Method Detail |
public int getLineDisplayMode()
LayerEdgeRealizer25D.MODE_2D
or
LayerEdgeRealizer25D.MODE_3D
.
public void setLineDisplayMode(int mode)
LayerEdgeRealizer25D.MODE_2D
or
LayerEdgeRealizer25D.MODE_3D
.
public LayerEdgeRealizer25D createCopy()
public void paintGL(GLAutoDrawable drawable, Camera camera)
The passed camera is the one that is used to display this layer edge. It can be used, for example, to render a layer edge differently depending on the viewing position, or to display labels that always face the viewer.
public void bindLayerEdge(LayerEdge le)
public LayerEdge getLayerEdge()
null
if no layer edge has been bound yet.
public void setLineColor(Color color)
public Color getLineColor()
public void setLineRadius(double d)
public double getLineRadius()
public boolean isSelected()
true
if this realizer is currently selected,
false
otherwise.
public void setSelected(boolean selected)
public Arrow getArrow()
getTargetArrow
.
public Arrow getSourceArrow()
public Arrow getTargetArrow()
public void setArrow(Arrow arrow)
setTargetArrow
.
public void setSourceArrow(Arrow arrow)
public void setTargetArrow(Arrow arrow)
public NodeRealizer getSourceRealizer()
null
, if not
bound to a layer edge yet.
public NodeRealizer getTargetRealizer()
null
, if not
bound to a layer edge yet.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |