com.arctorus.documents
Class StrokeFormat

java.lang.Object
  extended by com.arctorus.documents.StrokeFormat
All Implemented Interfaces:
java.lang.Cloneable

public final class StrokeFormat
extends java.lang.Object
implements java.lang.Cloneable

Style of a line used to draw a shape.
New created strokes by default have black solid color and width equal to 0.75f.


Constructor Summary
StrokeFormat()
           
 
Method Summary
 StrokeFormat clone()
          Creates and returns a copy of this object.
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 java.awt.Color getColor()
          Get color of a stroke.
 StrokeFormatType getType()
          Get type of a stroke pen.
 float getWidth()
          Get width of a stroke.
 int hashCode()
          Returns a hash code value for the object.
 void setColor(java.awt.Color color)
          Set color of a stroke.
 void setType(StrokeFormatType style)
          Set type of a stroke pen.
 void setWidth(float width)
          Set width of a stroke.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrokeFormat

public StrokeFormat()
Method Detail

getWidth

public float getWidth()
Get width of a stroke.


setWidth

public void setWidth(float width)
Set width of a stroke.

Parameters:
width - new width.

getColor

public java.awt.Color getColor()
Get color of a stroke.


setColor

public void setColor(java.awt.Color color)
Set color of a stroke.

Parameters:
color - new color. If color is null then color isn't change.

getType

public StrokeFormatType getType()
Get type of a stroke pen.


setType

public void setType(StrokeFormatType style)
Set type of a stroke pen.

Parameters:
style - new stroke pen type.

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object

clone

public StrokeFormat clone()
                   throws java.lang.CloneNotSupportedException
Creates and returns a copy of this object.

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException