y25.view
Interface EdgeRealizer25D

All Superinterfaces:
EdgeLayout, EdgeLayout25D
All Known Implementing Classes:
DummyEdgeRealizer25D, PolyLineEdgeRealizer25D

public interface EdgeRealizer25D
extends EdgeLayout25D

Provides a mechanism for rendering edges into an OpenGL context.

Note that this interface is not intended to "be used alone". When actually implementing an edge realizer, you have to extend EdgeRealizer and additionally implement this interface. This is the only way to make sure that the realizer you write works both with the yFiles package and the y25 package.


Field Summary
static int MODE_2D
          2D drawing mode for lines.
static int MODE_3D
          3D drawing mode for lines.
 
Method Summary
 int getLineDisplayMode()
          Returns the current display mode for drawing lines.
 void paintGL(GLAutoDrawable drawable, Camera camera)
          Renders the edge this realizer is bound to into the given drawable.
 void setLineDisplayMode(int mode)
          Sets the current display mode for drawing lines.
 
Methods inherited from interface y25.layout.EdgeLayout25D
getRelativeBoundingBox
 
Methods inherited from interface y.layout.EdgeLayout
addPoint, clearPoints, getPoint, getSourcePoint, getTargetPoint, pointCount, setPoint, setSourcePoint, setTargetPoint
 

Field Detail

MODE_2D

public static final int MODE_2D
2D drawing mode for lines.

See Also:
Constant Field Values

MODE_3D

public static final int MODE_3D
3D drawing mode for lines.

See Also:
Constant Field Values
Method Detail

paintGL

public void paintGL(GLAutoDrawable drawable,
                    Camera camera)
Renders the edge this realizer is bound to into the given drawable. If no edge is bound to the realizer, nothing happens.

The passed camera is the one that is used to display this edge. It can be used, for example, to render an edge differently depending on the viewing position, or to display labels that always face the viewer.


getLineDisplayMode

public int getLineDisplayMode()
Returns the current display mode for drawing lines. Can be either EdgeRealizer25D.MODE_2D or EdgeRealizer25D.MODE_3D.


setLineDisplayMode

public void setLineDisplayMode(int mode)
Sets the current display mode for drawing lines. Can be either EdgeRealizer25D.MODE_2D or EdgeRealizer25D.MODE_3D.