|
|
|||||||||
| 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.DrawColorFeature
A class using a color feature to determine the color to use to draw a feature.
| Field Summary | |
ColorFeature |
colorFeature
The color feature to use for drawing this feature. |
| Fields inherited from class edu.brook.ascape.view.DrawFeature |
name,
nestedFeature |
| Constructor Summary | |
DrawColorFeature()
Constructs a DrawColorFeature. |
|
DrawColorFeature(DrawFeature nestedFeature)
Constructs a DrawColorFeature with a nested feature. |
|
DrawColorFeature(java.lang.String name)
Constructs the feature with the supplied name. |
|
DrawColorFeature(java.lang.String name,
ColorFeature colorFeature)
Constructs the feature with a name and color feature. |
|
DrawColorFeature(java.lang.String name,
DrawFeature nestedFeature)
Constructs the feature with a name and nested 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.Color |
getColor(java.lang.Object object)
Returns the color feature's color interpretation of the object. |
ColorFeature |
getColorFeature()
Returns the color feature this object is using to interpret the object's color. |
java.lang.String |
getName()
Returns the user relevant name of this feature. |
void |
setColorFeature(ColorFeature colorFeature)
Sets the color feature this object uses to interpret the object's color. |
| 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 ColorFeature colorFeature
| Constructor Detail |
public DrawColorFeature()
public DrawColorFeature(java.lang.String name)
the - name of this draw featurenestedFeature - the feature to nest within this feature
public DrawColorFeature(java.lang.String name,
ColorFeature colorFeature)
the - name of this draw featurenestedFeature - the feature to nest within this feature
public DrawColorFeature(java.lang.String name,
DrawFeature nestedFeature)
the - name of this draw featurenestedFeature - the feature to nest within this featurepublic DrawColorFeature(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.Color getColor(java.lang.Object object)
object - the object to interpret color forpublic ColorFeature getColorFeature()
public void setColorFeature(ColorFeature colorFeature)
colorFeature - the feature to use for coloringpublic 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 | |||||||||