comirva.visu.epsgraphics.objects
Class EpsColor

java.lang.Object
  extended by 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
 
Constructor Summary
EpsColor()
           
EpsColor(Color foreground)
           
 
Method Summary
 boolean equals(Object obj)
           
 Color getFg()
           
 void setFg(Color fg)
           
 String toEps()
          returns a String that represents the object in postscript code
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fg

protected Color fg
the foreground color

Constructor Detail

EpsColor

public EpsColor()

EpsColor

public EpsColor(Color foreground)
Method Detail

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