comirva.visu.epsgraphics.objects
Class EpsColor
java.lang.Object
comirva.visu.epsgraphics.objects.EpsColor
- All Implemented Interfaces:
- EpsObject
public class EpsColor
- extends Object
- implements EpsObject
This class represents an EpsColor
It is used to save paint color changes (setColor)
Field Summary |
protected Color |
fg
the foreground color |
fg
protected Color fg
- the foreground color
EpsColor
public EpsColor()
EpsColor
public EpsColor(Color foreground)
toEps
public String toEps()
- Description copied from interface:
EpsObject
- returns a String that represents the object
in postscript code
- Specified by:
toEps
in interface EpsObject
getFg
public Color getFg()
- Returns:
- Returns the foreground color.
setFg
public void setFg(Color fg)
- Parameters:
fg
- The foreground color to set.
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object