y25.view
Interface LayerRealizer25D

All Superinterfaces:
LayerLayout25D
All Known Implementing Classes:
DummyLayerRealizer25D, TransparentLayerRealizer25D

public interface LayerRealizer25D
extends LayerLayout25D

Provides a mechanism for rendering layers into an OpenGL context.


Method Summary
 LayerRealizer25D createCopy()
          Creates a copy of this realizer and returns it.
 String getLabelText()
          Returns the label text of the label associated with this realizer.
 boolean isSelected()
          Returns true if this realizer is currently selected, false otherwise.
 void paintGL(GLAutoDrawable drawable, Camera camera)
          Renders the layer this realizer belongs to into the given drawable.
 void setLabelText(String text)
          Sets the label text of the label associated with this realizer.
 void setSelected(boolean selected)
          Sets the selection state of this realizer.
 
Methods inherited from interface y25.layout.LayerLayout25D
getRealativeBoundingBox, getZ, setRelativeBoundingBox, setZ
 

Method Detail

createCopy

public LayerRealizer25D createCopy()
Creates a copy of this realizer and returns it.


paintGL

public void paintGL(GLAutoDrawable drawable,
                    Camera camera)
Renders the layer this realizer belongs to into the given drawable.

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


isSelected

public boolean isSelected()
Returns true if this realizer is currently selected, false otherwise.


setSelected

public void setSelected(boolean selected)
Sets the selection state of this realizer.


getLabelText

public String getLabelText()
Returns the label text of the label associated with this realizer.


setLabelText

public void setLabelText(String text)
Sets the label text of the label associated with this realizer.