public class DotStyle
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DotStyle.Color
Enum which specifies the color.
|
static class |
DotStyle.LineStyle
Enum which specifies the line style.
|
static class |
DotStyle.Shape
Enum which specifies shapes.
|
Modifier and Type | Field and Description |
---|---|
static DotStyle |
UNSET_STYLE
Style of which all elements equal DEFAULT.
|
Constructor and Description |
---|
DotStyle(DotStyle.Shape shape,
DotStyle.Color color,
DotStyle.LineStyle lineStyle)
Creates a new style object with a given shape, color and line style.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Determined whether a given object is equal to this style.
|
DotStyle.Color |
getColor()
Returns the color of this style.
|
static DotStyle |
getColorStyle(DotStyle.Color color)
Returns a style which represents a certain color.
|
DotStyle.LineStyle |
getLineStyle()
Returns the line style of this style.
|
static DotStyle |
getLineStyle(DotStyle.LineStyle ls)
Returns a style which represents a given line style.
|
DotStyle.Shape |
getShape()
Returns the shape of this style.
|
static DotStyle |
getShapeStyle(DotStyle.Shape shape)
Returns a style which represents a certain shape.
|
DotStyle |
getSubStyle(DotStyle.Color color)
Returns a style which is equal to this style, except for the color.
|
DotStyle |
getSubStyle(DotStyle.LineStyle lineStyle)
Returns a style which is equal to this style, except for the line style.
|
DotStyle |
getSubStyle(DotStyle.Shape shape)
Returns a style which is equal to this style, except for the shape.
|
DotStyle |
getSubStyle(DotStyle style)
Returns a style which is equal to a given style, except that
default values are changed to the values of this style.
|
int |
hashCode() |
public static final DotStyle UNSET_STYLE
public DotStyle(DotStyle.Shape shape, DotStyle.Color color, DotStyle.LineStyle lineStyle)
shape
- shape of the new stylecolor
- color of the new stylelineStyle
- line style of the new stylepublic DotStyle.Shape getShape()
public DotStyle.Color getColor()
public DotStyle.LineStyle getLineStyle()
public DotStyle getSubStyle(DotStyle.Color color)
color
- color of the new stylepublic DotStyle getSubStyle(DotStyle.Shape shape)
shape
- shape of the new stylepublic DotStyle getSubStyle(DotStyle.LineStyle lineStyle)
lineStyle
- line style of the new stylepublic DotStyle getSubStyle(DotStyle style)
style == null
, this style is returned.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object of which it is to be determined whether or not it is
equal to this styletrue
if o
is equal to this style, {code false} if
notpublic static DotStyle getColorStyle(DotStyle.Color color)
color
- color of the new stylepublic static DotStyle getShapeStyle(DotStyle.Shape shape)
shape
- shape of the new stylepublic static DotStyle getLineStyle(DotStyle.LineStyle ls)
ls
- line style of the new style