|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ascape.util.vis.ColorFeatureConcrete
public abstract class ColorFeatureConcrete
A Color feature returns a color based on the state of an object of known type provided to it. This class provides a concrete version of color feature for convenience in implementing subclasses. Used to provide an appropriate color for some feature or aspect of an object.
Field Summary | |
---|---|
protected java.lang.String |
name
The name of the feature. |
Constructor Summary | |
---|---|
ColorFeatureConcrete()
Constructs a concrete instantiation of a color feature. |
|
ColorFeatureConcrete(java.lang.String name)
Constructs a concrete instantiation of a color feature with the supplied name. |
Method Summary | |
---|---|
abstract java.awt.Color |
getColor(java.lang.Object object)
Returns a color for the object as defined in implementions of this class. |
java.lang.String |
getName()
Returns a name for the object as defined by set name. |
void |
setName(java.lang.String name)
Sets the name of this feature. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
Constructor Detail |
---|
public ColorFeatureConcrete()
public ColorFeatureConcrete(java.lang.String name)
name
- the user relevant name of the featureMethod Detail |
---|
public java.lang.String getName()
getName
in interface HasName
public final void setName(java.lang.String name)
name
- a user relevant name for this featurepublic abstract java.awt.Color getColor(java.lang.Object object)
getColor
in interface ColorFeature
object
- the object to get a color from.
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |