CH.ifa.draw.figures
Class AbstractLineDecoration
- java.lang.Object
-
- CH.ifa.draw.figures.AbstractLineDecoration
-
- All Implemented Interfaces:
- LineDecoration, Storable, java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- ArrowTip
public abstract class AbstractLineDecoration extends java.lang.Object implements LineDecoration
An standard implementation of a line decoration.- See Also:
PolyLineFigure, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description AbstractLineDecoration()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description voiddraw(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.ColorgetBorderColor()Returns color of arrow's borderjava.awt.ColorgetFillColor()Returns color with which arrow is filledabstract java.awt.Polygonoutline(int x1, int y1, int x2, int y2)Hook method to calculates the outline of an arrow tip.voidread(StorableInput dr)Reads the arrow tip from a StorableInput.voidsetBorderColor(java.awt.Color borderColor)Sets color of arrow's bordervoidsetFillColor(java.awt.Color fillColor)Sets color with which arrow is filledvoidwrite(StorableOutput dw)Stores the arrow tip to a StorableOutput.
-
-
-
Method Detail
-
draw
public 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.. (template method)- Specified by:
drawin interfaceLineDecoration
-
outline
public abstract java.awt.Polygon outline(int x1, int y1, int x2, int y2)Hook method to calculates the outline of an arrow tip.
-
write
public void write(StorableOutput dw)
Stores the arrow tip to a StorableOutput.
-
read
public void read(StorableInput dr) throws java.io.IOException
Reads the arrow tip from a StorableInput.
-
setFillColor
public void setFillColor(java.awt.Color fillColor)
Sets color with which arrow is filled
-
getFillColor
public java.awt.Color getFillColor()
Returns color with which arrow is filled
-
setBorderColor
public void setBorderColor(java.awt.Color borderColor)
Sets color of arrow's border
-
getBorderColor
public java.awt.Color getBorderColor()
Returns color of arrow's border
-
-
DataMelt 3.0 © DataMelt by jWork.ORG