|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecty25.view.realizer.TransparentLayerRealizer25D
Displays a layer as a transparent rectangle.
Field Summary | |
protected double |
z
The z-position of the layer. |
Constructor Summary | |
TransparentLayerRealizer25D()
Creates a new TransparentLayerRealizer25D with zero size. |
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. |
float |
getOpacity()
Returns the opacity of the layer rectangle. |
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 |
paintLabels(GLAutoDrawable drawable,
Camera camera)
Renders the labels of this realizer into the given drawable. |
void |
setLabelText(String text)
Sets the label text of the label associated with this realizer. |
void |
setOpacity(float o)
Sets the opacity of the layer rectangle to the passed value. |
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 |
setRGB(int r,
int g,
int b)
Sets the color of the layer rectangle to the specified red, green and blue values. |
void |
setSelected(boolean selected)
Sets the selection state of this realizer. |
void |
setZ(double z)
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 |
protected double z
Constructor Detail |
public TransparentLayerRealizer25D()
TransparentLayerRealizer25D
with zero size.
Method Detail |
public LayerRealizer25D createCopy()
LayerRealizer25D
createCopy
in interface LayerRealizer25D
LayerRealizer25D.createCopy()
public double getZ()
LayerLayout25D
getZ
in interface LayerLayout25D
LayerLayout25D.getZ()
public void setZ(double z)
LayerLayout25D
setZ
in interface LayerLayout25D
LayerLayout25D.setZ(double)
public void setRelativeBoundingBox(BoundingBox bb)
LayerLayout25D
setRelativeBoundingBox
in interface LayerLayout25D
LayerLayout25D.setRelativeBoundingBox(y25.graphics.BoundingBox)
public BoundingBox getRealativeBoundingBox()
LayerLayout25D
getRealativeBoundingBox
in interface LayerLayout25D
LayerLayout25D.getRealativeBoundingBox()
public void setRGB(int r, int g, int b)
[0,255]
.
public void setOpacity(float o)
public float getOpacity()
public void paintGL(GLAutoDrawable drawable, Camera camera)
LayerRealizer25D
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.
paintGL
in interface LayerRealizer25D
LayerRealizer25D.paintGL(javax.media.opengl.GLAutoDrawable,
y25.graphics.Camera)
public void paintLabels(GLAutoDrawable drawable, Camera camera)
drawable
- the drawable that the labels will be rendered into.camera
- used to determine the orientation of the label such that is
faces the viewer.public boolean isSelected()
LayerRealizer25D
true
if this realizer is currently selected,
false
otherwise.
isSelected
in interface LayerRealizer25D
LayerRealizer25D.isSelected()
public void setSelected(boolean selected)
LayerRealizer25D
setSelected
in interface LayerRealizer25D
LayerRealizer25D.setSelected(boolean)
public String getLabelText()
LayerRealizer25D
getLabelText
in interface LayerRealizer25D
LayerRealizer25D.getLabelText()
public void setLabelText(String text)
LayerRealizer25D
setLabelText
in interface LayerRealizer25D
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |