|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ascape.util.vis.ColorFeatureConcrete
org.ascape.util.vis.ColorFeatureFixed
public class ColorFeatureFixed
An interface for a class providing an color that doesn't change in relation to the supplied object. All awt colors are supplied.
Field Summary | |
---|---|
static ColorFeatureFixed |
black
A color feature that always returns black. |
static ColorFeatureFixed |
blue
A color feature that always returns blue. |
static ColorFeatureFixed |
cyan
A color feature that always returns cyan. |
static ColorFeatureFixed |
darkGray
A color feature that always returns darkGray. |
static ColorFeatureFixed |
gray
A color feature that always returns gray. |
static ColorFeatureFixed |
green
A color feature that always returns green. |
static ColorFeatureFixed |
lightGray
A color feature that always returns lightGray. |
static ColorFeatureFixed |
magenta
A color feature that always returns magenta. |
static ColorFeatureFixed |
orange
A color feature that always returns orange. |
static ColorFeatureFixed |
pink
A color feature that always returns pink. |
static ColorFeatureFixed |
red
A color feature that always returns red. |
static ColorFeatureFixed |
white
A color feature that always returns white. |
static ColorFeatureFixed |
yellow
A color feature that always returns yellow. |
Fields inherited from class org.ascape.util.vis.ColorFeatureConcrete |
---|
name |
Constructor Summary | |
---|---|
ColorFeatureFixed()
Constructs a ColorFeatureFixed. |
|
ColorFeatureFixed(java.lang.String name,
java.awt.Color color)
Constructs a ColorFeatureFixed. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones this feature. |
java.awt.Color |
getColor(java.lang.Object object)
Returns a color for the object as defined irrespective of object by setColor. |
void |
setColor(java.awt.Color color)
Sets the color of this feature. |
Methods inherited from class org.ascape.util.vis.ColorFeatureConcrete |
---|
getName, setName |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ColorFeatureFixed black
public static final ColorFeatureFixed blue
public static final ColorFeatureFixed cyan
public static final ColorFeatureFixed darkGray
public static final ColorFeatureFixed gray
public static final ColorFeatureFixed green
public static final ColorFeatureFixed lightGray
public static final ColorFeatureFixed magenta
public static final ColorFeatureFixed orange
public static final ColorFeatureFixed pink
public static final ColorFeatureFixed red
public static final ColorFeatureFixed white
public static final ColorFeatureFixed yellow
Constructor Detail |
---|
public ColorFeatureFixed()
public ColorFeatureFixed(java.lang.String name, java.awt.Color color)
name
- the color of the featurecolor
- the user relevant name of the featureMethod Detail |
---|
public final java.awt.Color getColor(java.lang.Object object)
getColor
in interface ColorFeature
getColor
in class ColorFeatureConcrete
object
- Ignored; normally, the object the object to get a color from.public final void setColor(java.awt.Color color)
color
- the color this feature should always returnpublic java.lang.Object clone()
clone
in class java.lang.Object
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |