comirva.visu.epsgraphics.objects
Class EpsStroke

java.lang.Object
  extended by java.awt.BasicStroke
      extended by comirva.visu.epsgraphics.objects.EpsStroke
All Implemented Interfaces:
EpsObject, Stroke

public class EpsStroke
extends BasicStroke
implements EpsObject

this class encapsulates an eps stroke. It provides the functionality of a BasicStroke for ps output.


Field Summary
 
Fields inherited from class java.awt.BasicStroke
CAP_BUTT, CAP_ROUND, CAP_SQUARE, JOIN_BEVEL, JOIN_MITER, JOIN_ROUND
 
Constructor Summary
EpsStroke()
          Constructs a new BasicStroke with defaults for all attributes.
EpsStroke(BasicStroke stroke)
          construct a new eps stroke based on given basic stroke
EpsStroke(float width)
          Constructs a solid BasicStroke with the specified line width and with default values for the cap and join styles.
EpsStroke(float width, int cap, int join)
          Constructs a solid BasicStroke with the specified attributes.
EpsStroke(float width, int cap, int join, float miterlimit)
          Constructs a solid BasicStroke with the specified attributes.
EpsStroke(float width, int cap, int join, float miterlimit, float[] dash, float dash_phase)
          Constructs a new BasicStroke with the specified attributes.
 
Method Summary
 String toEps()
          returns a String that represents the object in postscript code
 
Methods inherited from class java.awt.BasicStroke
createStrokedShape, equals, getDashArray, getDashPhase, getEndCap, getLineJoin, getLineWidth, getMiterLimit, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EpsStroke

public EpsStroke(BasicStroke stroke)
construct a new eps stroke based on given basic stroke


EpsStroke

public EpsStroke()
Constructs a new BasicStroke with defaults for all attributes.

See Also:
BasicStroke.BasicStroke()

EpsStroke

public EpsStroke(float width,
                 int cap,
                 int join,
                 float miterlimit,
                 float[] dash,
                 float dash_phase)
Constructs a new BasicStroke with the specified attributes.

See Also:
BasicStroke.BasicStroke(float width, int cap, int join, float miterlimit, float[] dash, float dash_phase)

EpsStroke

public EpsStroke(float width,
                 int cap,
                 int join,
                 float miterlimit)
Constructs a solid BasicStroke with the specified attributes.

See Also:
BasicStroke.BasicStroke(float width, int cap, int join, float miterlimit)

EpsStroke

public EpsStroke(float width,
                 int cap,
                 int join)
Constructs a solid BasicStroke with the specified attributes.

See Also:
BasicStroke.BasicStroke(float width, int cap, int join)

EpsStroke

public EpsStroke(float width)
Constructs a solid BasicStroke with the specified line width and with default values for the cap and join styles.

See Also:
BasicStroke.BasicStroke(float width)
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