|
![]() |
|||||||||
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.DrawColorFeature
public class DrawColorFeature
A class using a color feature to determine the color to use to draw a feature.
Field Summary | |
---|---|
protected ColorFeature |
colorFeature
The color feature to use for drawing this feature. |
Fields inherited from class org.ascape.util.vis.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 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 |
Field Detail |
---|
protected ColorFeature colorFeature
Constructor Detail |
---|
public DrawColorFeature()
public DrawColorFeature(java.lang.String name)
name
- the name of this draw featurepublic DrawColorFeature(java.lang.String name, ColorFeature colorFeature)
name
- the name of this draw featurepublic DrawColorFeature(java.lang.String name, DrawFeature nestedFeature)
name
- the name of this draw featurenestedFeature
- the feature to nest within this featurepublic DrawColorFeature(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.Color getColor(java.lang.Object object)
getColor
in interface ColorFeature
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()
getName
in interface HasName
getName
in class DrawFeature
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |