Package be.quodlibet.boxable.line
Class LineStyle
java.lang.Object
be.quodlibet.boxable.line.LineStyle
The LineStyle class defines a basic set of rendering attributes
for lines.
- Author:
- hstimac, mkuehne
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetColor()float[]floatfloatgetWidth()inthashCode()static LineStyleproduceDashed(Color color, int width) Provides ability to produce dashed line.static LineStyleproduceDashed(Color color, int width, float[] dashArray, float dashPhase) static LineStyleproduceDotted(Color color, int width) Provides ability to produce dotted line.
-
Constructor Details
-
Method Details
-
produceDotted
Provides ability to produce dotted line.
- Parameters:
color- TheColorof the linewidth- The line width- Returns:
- new styled line
-
produceDashed
Provides ability to produce dashed line.
- Parameters:
color- TheColorof the linewidth- The line width- Returns:
- new styled line
-
produceDashed
- Parameters:
color- TheColorof the linewidth- The line widthdashArray- Mimics the behavior ofBasicStroke.getDashArray()dashPhase- Mimics the behavior ofBasicStroke.getDashPhase()- Returns:
- new styled line
-
getColor
-
getWidth
public float getWidth() -
getDashArray
public float[] getDashArray() -
getDashPhase
public float getDashPhase() -
hashCode
public int hashCode() -
equals
-