|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ascape.util.vis.DrawFeature
org.ascape.util.vis.DrawImageFeature
public class DrawImageFeature
A class using a image feature to determine the image to use to draw a feature.
Field Summary |
---|
Fields inherited from class org.ascape.util.vis.DrawFeature |
---|
name, nestedFeature |
Constructor Summary | |
---|---|
DrawImageFeature()
Constructs a DrawImageFeature. |
|
DrawImageFeature(DrawFeature nestedFeature)
Constructs a DrawImageFeature with a nested feature. |
|
DrawImageFeature(java.lang.String name)
Constructs the feature with the supplied name. |
|
DrawImageFeature(java.lang.String name,
DrawFeature nestedFeature)
Constructs the feature with a name and nested feature. |
|
DrawImageFeature(java.lang.String name,
ImageFeature imageFeature)
Constructs the feature with a name and image feature. |
Method Summary | |
---|---|
void |
draw(java.awt.Graphics g,
java.lang.Object object,
int width,
int height)
Draws a graphic interpreation of the object into the supplied graphics port, (typically) within the supplied dimensions. |
java.awt.Image |
getImage(java.lang.Object object)
Returns the image feature's image interpretation of the object. |
ImageFeature |
getImageFeature()
Returns the image feature this object is using to interpret the object's image. |
java.lang.String |
getName()
Returns the user relevant name of this feature. |
void |
setImageFeature(ImageFeature imageFeature)
Sets the image feature this object uses to interpret the object's image. |
Methods inherited from class org.ascape.util.vis.DrawFeature |
---|
getNestedFeature, setName, setNestedFeature |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DrawImageFeature()
public DrawImageFeature(java.lang.String name)
name
- the name of this draw featurepublic DrawImageFeature(java.lang.String name, ImageFeature imageFeature)
name
- the name of this draw featureimageFeature
- the feature to nest within this featurepublic DrawImageFeature(java.lang.String name, DrawFeature nestedFeature)
name
- the name of this draw featurenestedFeature
- the feature to nest within this featurepublic DrawImageFeature(DrawFeature nestedFeature)
nestedFeature
- the feature to nestMethod Detail |
---|
public void draw(java.awt.Graphics g, java.lang.Object object, int width, int height)
draw
in class DrawFeature
g
- the Graphics context to draw intoobject
- the object to interpret for drawingwidth
- the width of the space that should be drawn intoheight
- the height of the space that should be drawn intopublic final java.awt.Image getImage(java.lang.Object object)
getImage
in interface ImageFeature
object
- the object to interpret image forpublic ImageFeature getImageFeature()
public void setImageFeature(ImageFeature imageFeature)
imageFeature
- the feature to use for imageingpublic java.lang.String getName()
getName
in interface HasName
getName
in class DrawFeature
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |