y25.view.realizer
Class DummyLayerRealizer25D

java.lang.Object
  extended byy25.view.realizer.DummyLayerRealizer25D
All Implemented Interfaces:
LayerLayout25D, LayerRealizer25D

public class DummyLayerRealizer25D
extends Object
implements LayerRealizer25D

Implementation of a LayerRealizer with no function. This is useful for debugging.


Field Summary
protected  boolean selected
           
protected  double z
           
 
Constructor Summary
DummyLayerRealizer25D()
           
 
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.
 BoundingBox getRealativeBoundingBox()
          Returns the relative bounding box of the layer.
 double getZ()
          Returns the z-position of the layer.
 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 setRelativeBoundingBox(BoundingBox bb)
          Sets the relative bounding box of the layer, thereby determining the layer's extent in the (x,y) plane (z-values of the bounding box should therefore be 0).
 void setSelected(boolean selected)
          Sets the selection state of this realizer.
 void setZ(double zz)
          Sets the z-position of the layer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

z

protected double z

selected

protected boolean selected
Constructor Detail

DummyLayerRealizer25D

public DummyLayerRealizer25D()
Method Detail

getZ

public double getZ()
Description copied from interface: LayerLayout25D
Returns the z-position of the layer.

Specified by:
getZ in interface LayerLayout25D

setZ

public void setZ(double zz)
Description copied from interface: LayerLayout25D
Sets the z-position of the layer.

Specified by:
setZ in interface LayerLayout25D

createCopy

public LayerRealizer25D createCopy()
Description copied from interface: LayerRealizer25D
Creates a copy of this realizer and returns it.

Specified by:
createCopy in interface LayerRealizer25D

paintGL

public void paintGL(GLAutoDrawable drawable,
                    Camera camera)
Description copied from interface: LayerRealizer25D
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.

Specified by:
paintGL in interface LayerRealizer25D

setRelativeBoundingBox

public void setRelativeBoundingBox(BoundingBox bb)
Description copied from interface: LayerLayout25D
Sets the relative bounding box of the layer, thereby determining the layer's extent in the (x,y) plane (z-values of the bounding box should therefore be 0).

Specified by:
setRelativeBoundingBox in interface LayerLayout25D

getRealativeBoundingBox

public BoundingBox getRealativeBoundingBox()
Description copied from interface: LayerLayout25D
Returns the relative bounding box of the layer. "Relative" here means relative to the z-position the layer resides at (z values of the bounding box are therefore 0).

Specified by:
getRealativeBoundingBox in interface LayerLayout25D

isSelected

public boolean isSelected()
Description copied from interface: LayerRealizer25D
Returns true if this realizer is currently selected, false otherwise.

Specified by:
isSelected in interface LayerRealizer25D

setSelected

public void setSelected(boolean selected)
Description copied from interface: LayerRealizer25D
Sets the selection state of this realizer.

Specified by:
setSelected in interface LayerRealizer25D

getLabelText

public String getLabelText()
Description copied from interface: LayerRealizer25D
Returns the label text of the label associated with this realizer.

Specified by:
getLabelText in interface LayerRealizer25D

setLabelText

public void setLabelText(String text)
Description copied from interface: LayerRealizer25D
Sets the label text of the label associated with this realizer.

Specified by:
setLabelText in interface LayerRealizer25D