|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public static final int MODE_2D
public static final int MODE_3D
Method Detail |
public void paintGL(GLAutoDrawable drawable, Camera camera)
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.
public int getLineDisplayMode()
EdgeRealizer25D.MODE_2D
or
EdgeRealizer25D.MODE_3D
.
public void setLineDisplayMode(int mode)
EdgeRealizer25D.MODE_2D
or
EdgeRealizer25D.MODE_3D
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |