|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arctorus.documents.StrokeFormat
public final class StrokeFormat
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 |
---|
public StrokeFormat()
Method Detail |
---|
public float getWidth()
public void setWidth(float width)
width
- new width.public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- new color. If color is null then color isn't change.public StrokeFormatType getType()
public void setType(StrokeFormatType style)
style
- new stroke pen type.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public StrokeFormat clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |