public class LineStyle extends Object
The LineStyle class defines a basic set of rendering attributes
for lines.
| Constructor and Description |
|---|
LineStyle(Color color,
float width)
Simple constructor for setting line
Color and line width |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Color |
getColor() |
float[] |
getDashArray() |
float |
getDashPhase() |
float |
getWidth() |
int |
hashCode() |
static LineStyle |
produceDashed(Color color,
int width)
Provides ability to produce dashed line.
|
static LineStyle |
produceDashed(Color color,
int width,
float[] dashArray,
float dashPhase) |
static LineStyle |
produceDotted(Color color,
int width)
Provides ability to produce dotted line.
|
public static LineStyle produceDotted(Color color, int width)
Provides ability to produce dotted line.
color - The Color of the linewidth - The line widthpublic static LineStyle produceDashed(Color color, int width)
Provides ability to produce dashed line.
color - The Color of the linewidth - The line widthpublic static LineStyle produceDashed(Color color, int width, float[] dashArray, float dashPhase)
color - The Color of the linewidth - The line widthdashArray - Mimics the behavior of BasicStroke.getDashArray()dashPhase - Mimics the behavior of BasicStroke.getDashPhase()public Color getColor()
public float getWidth()
public float[] getDashArray()
public float getDashPhase()
Copyright © 2020. All rights reserved.