public class P2DShapeStroke
extends java.lang.Object
implements java.awt.Stroke
Modifier and Type | Class and Description |
---|---|
static class |
P2DShapeStroke.SymbolEntry |
Modifier and Type | Field and Description |
---|---|
protected java.awt.BasicStroke |
basicStroke
The basic stroke.
|
static java.lang.String |
CIRCLE
The circle symbol.
|
static java.lang.String |
CROSS
The cross symbol.
|
static int |
DIAMETER |
static java.lang.String |
DOT
The DOT symbol.
|
static java.lang.String |
FILLED_CIRCLE
The filled circle symbol.
|
static java.lang.String |
FILLED_QUADRAT
The filled quadratic symbol.
|
static java.lang.String |
FILLED_RHOMBUS
The filled rhombus symbol.
|
static java.lang.String |
HLINE
The horizontal line symbol.
|
protected P2DShapeStroke.SymbolEntry[] |
patternArray
The pattern.
|
static java.lang.String |
QUADRAT
The quadratic symbol.
|
static java.lang.String |
RHOMBUS
The rhombus symbol.
|
protected static java.util.HashMap |
symbols
The shape map.
|
static java.lang.String |
VLINE
The vertical line symbol.
|
Constructor and Description |
---|
P2DShapeStroke()
The constructor to draw circles per default around the points.
|
P2DShapeStroke(java.awt.Shape pattern,
boolean filled)
The constructor receiving the symbol pattern to draw onto the points.
|
P2DShapeStroke(java.lang.String patternName)
The constructor receiving the symbol pattern to draw onto the points.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Shape |
createStrokedShape(java.awt.Shape shape)
Returns an outline Shape which encloses the area that should be painted
when the Shape is stroked according to the rules defined by the object
implementing the Stroke interface.
|
static java.awt.Stroke[] |
getAllStrokes()
Get all available shapes.
|
public static final int DIAMETER
protected static final java.util.HashMap symbols
public static final java.lang.String CIRCLE
public static final java.lang.String FILLED_CIRCLE
public static final java.lang.String RHOMBUS
public static final java.lang.String FILLED_RHOMBUS
public static final java.lang.String QUADRAT
public static final java.lang.String FILLED_QUADRAT
public static final java.lang.String CROSS
public static final java.lang.String VLINE
public static final java.lang.String HLINE
public static final java.lang.String DOT
protected P2DShapeStroke.SymbolEntry[] patternArray
protected java.awt.BasicStroke basicStroke
public P2DShapeStroke()
public P2DShapeStroke(java.lang.String patternName)
patternName
- The name of the symbol to be used. Use above predefinitions.public P2DShapeStroke(java.awt.Shape pattern, boolean filled)
pattern
- public static java.awt.Stroke[] getAllStrokes()
public java.awt.Shape createStrokedShape(java.awt.Shape shape)
createStrokedShape
in interface java.awt.Stroke
Shape
,
Stroke