public class LineStyle
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
static short |
DASHED
The dashed style.
|
static short |
LINE
The solid style.
|
| Constructor and Description |
|---|
LineStyle() |
| Modifier and Type | Method and Description |
|---|---|
LineStyle |
clone() |
java.lang.String |
getColor()
Return the line color.
|
short |
getLineStyle()
Return the line style.
|
float |
getWidth()
Return the line width.
|
boolean |
setColor(java.awt.Color color)
Set the line color.
|
boolean |
setColor(java.lang.String color)
Set the line color.
|
void |
setLineStyle(short lineStyle)
Set the line style.
|
void |
setWidth(float width)
Set the line width.
|
public static short LINE
public static short DASHED
public LineStyle clone()
clone in class java.lang.Objectpublic boolean setColor(java.awt.Color color)
color - the colorpublic boolean setColor(java.lang.String color)
color - the colorpublic java.lang.String getColor()
public void setWidth(float width)
width - the widthpublic float getWidth()
public void setLineStyle(short lineStyle)
lineStyle - the stylepublic short getLineStyle()
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence