|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--manifold.base.Glyph
|
+--flatscape.FGlyph
|
+--flatscape.glyph.ImageGlyph
Glyph to render bitmap images.
Properties:
| source | The URL of the image |
Copyright (c) 2003 Rutgers, The State University of New Jersey
| Field Summary | |
protected double |
height_
|
protected java.awt.Image |
image_
Symbol image for faster redraw |
protected java.awt.Shape |
shape_
|
protected double |
width_
|
| Fields inherited from class flatscape.FGlyph |
curInteractionPoint, DEFAULT, interactionPoints, POINTSIZE, selected_ |
| Fields inherited from class manifold.base.Glyph |
model_, TRANSFORM, viewer_, visible_ |
| Constructor Summary | |
ImageGlyph()
|
|
| Method Summary | |
void |
draw(Traversal t)
Draws the image, called by the traverse method of FGlyph. |
protected java.awt.Shape |
getBoundingShape()
Gets the bounding shape of the glyph. |
protected void |
loadImage(java.lang.String urlString)
Loads the image and sets the bounding box - shape_. |
void |
propertyChange(org.w3c.dom.Element model,
java.lang.String name,
java.lang.Object oldValue,
java.lang.Object newValue)
Method called by FSceneGraph when a change of a property has occured. |
| Methods inherited from class flatscape.FGlyph |
addInteractionPoint, children, config, constructGlyph, drawSelectionBox, getAllowsChildren, getChildAt, getChildCount, getIndex, getInteractionPoint, getLimits, getParent, getTransform, getTransform, insert, isLeaf, moveInteractionPoint, pick, pickInteractionPoint, remove, remove, removeFromParent, setInteractionPoint, setModel, setParent, setSelected, setUserObject, toString, traverse, updateInteractionPoints, updateProperties, validTypes |
| Methods inherited from class manifold.base.Glyph |
getModel, getViewer, isVisible, setViewer, setVisible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected double width_
protected double height_
protected java.awt.Image image_
protected java.awt.Shape shape_
| Constructor Detail |
public ImageGlyph()
| Method Detail |
protected java.awt.Shape getBoundingShape()
FGlyphpick(Traversal t) method
of FGlyph is to be used
getBoundingShape in class FGlyphpublic void draw(Traversal t)
traverse method of FGlyph.
draw in class FGlypht - keeps the state of the traversalprotected void loadImage(java.lang.String urlString)
shape_.
public void propertyChange(org.w3c.dom.Element model,
java.lang.String name,
java.lang.Object oldValue,
java.lang.Object newValue)
propertyChange in class FGlyphname - the name of the propertyoldValue - the old value of the propertynewValue - the new value of the property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||