|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.brook.ascape.view.DrawFeature
|
+--edu.brook.ascape.view.DrawImageFeature
A class using a image feature to determine the image to use to draw a feature.
| Field Summary | |
protected java.awt.Color |
backgroundColor
|
ImageFeature |
imageFeature
The image feature to use for drawing this feature. |
| Fields inherited from class edu.brook.ascape.view.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 edu.brook.ascape.view.DrawFeature |
getNestedFeature,
setName,
setNestedFeature |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public ImageFeature imageFeature
protected java.awt.Color backgroundColor
| Constructor Detail |
public DrawImageFeature()
public DrawImageFeature(java.lang.String name)
the - name of this draw featurenestedFeature - the feature to nest within this feature
public DrawImageFeature(java.lang.String name,
ImageFeature imageFeature)
the - name of this draw featurenestedFeature - the feature to nest within this feature
public DrawImageFeature(java.lang.String name,
DrawFeature nestedFeature)
the - name of this draw featurenestedFeature - the feature to nest within this featurepublic DrawImageFeature(DrawFeature nestedFeature)
nestedFeature - the feature to nest| Method Detail |
public void draw(java.awt.Graphics g,
java.lang.Object object,
int width,
int height)
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)
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()
|
(c) 1998-2000 The Brookings Insitution Webpage |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||