|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCH.ifa.draw.figures.AbstractLineDecoration
public abstract class AbstractLineDecoration
An standard implementation of a line decoration.
PolyLineFigure
,
Serialized FormConstructor Summary | |
---|---|
AbstractLineDecoration()
|
Method Summary | |
---|---|
void |
draw(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
Draws the arrow tip in the direction specified by the given two points.. |
java.awt.Color |
getBorderColor()
Returns color of arrow's border |
java.awt.Color |
getFillColor()
Returns color with which arrow is filled |
abstract java.awt.Polygon |
outline(int x1,
int y1,
int x2,
int y2)
Hook method to calculates the outline of an arrow tip. |
void |
read(StorableInput dr)
Reads the arrow tip from a StorableInput. |
void |
setBorderColor(java.awt.Color borderColor)
Sets color of arrow's border |
void |
setFillColor(java.awt.Color fillColor)
Sets color with which arrow is filled |
void |
write(StorableOutput dw)
Stores the arrow tip to a StorableOutput. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractLineDecoration()
Method Detail |
---|
public void draw(java.awt.Graphics g, int x1, int y1, int x2, int y2)
draw
in interface LineDecoration
public abstract java.awt.Polygon outline(int x1, int y1, int x2, int y2)
public void write(StorableOutput dw)
write
in interface Storable
public void read(StorableInput dr) throws java.io.IOException
read
in interface Storable
java.io.IOException
public void setFillColor(java.awt.Color fillColor)
public java.awt.Color getFillColor()
public void setBorderColor(java.awt.Color borderColor)
public java.awt.Color getBorderColor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |