TLcdGXYComplexStroke
, which
offers a more flexible and correct implementation of a complex stroke.public class TLcdS52ComplexStroke extends Object implements Stroke
Constructor and Description |
---|
TLcdS52ComplexStroke(Shape[] pattern,
float gap)
Deprecated.
|
TLcdS52ComplexStroke(Shape[] pattern,
float gap,
int gapAdjustLimit)
Deprecated.
|
TLcdS52ComplexStroke(Shape pattern,
float gap)
Deprecated.
|
TLcdS52ComplexStroke(Shape aTransformedShape,
int aLength,
ILcdS52Icon aIcon)
Deprecated.
|
TLcdS52ComplexStroke(TLcdS52ComplexStroke aStroke,
Rectangle aClip)
Deprecated.
Creates a new
TLcdS52ComplexStroke that is a copy of the given stroke, but is
optimized for the given clip; shapes won't be stroked outside this clip. |
Modifier and Type | Method and Description |
---|---|
ALspComplexStroke |
asComplexStroke(Color aColor)
Deprecated.
|
Shape |
createStrokedShape(Shape p)
Deprecated.
|
Stroke |
getAlternativeStroke()
Deprecated.
Gets the stroke that should be used when no pattern can be used (when lines are too short to
use the pattern).
|
float |
getGap()
Deprecated.
|
Shape[] |
getPattern()
Deprecated.
|
void |
setAlternativeStroke(Stroke aStroke)
Deprecated.
Sets the stroke that should be used when no pattern can be used (when lines are too short to
use the pattern).
|
public TLcdS52ComplexStroke(Shape aTransformedShape, int aLength, ILcdS52Icon aIcon)
public TLcdS52ComplexStroke(Shape pattern, float gap)
pattern
- the Shape that should be used as a pattern.gap
- the gap between the pattern Shapes.public TLcdS52ComplexStroke(Shape[] pattern, float gap)
pattern
- the Shapes that should be used as a pattern. This array is copied.gap
- the gap between the pattern Shapes.public TLcdS52ComplexStroke(Shape[] pattern, float gap, int gapAdjustLimit)
pattern
- the Shapes that should be used as a pattern. This array is copied.gap
- the gap between the pattern Shapes.public TLcdS52ComplexStroke(TLcdS52ComplexStroke aStroke, Rectangle aClip)
TLcdS52ComplexStroke
that is a copy of the given stroke, but is
optimized for the given clip; shapes won't be stroked outside this clip. This might improve
performance significantly when zooming in on a stroked shape.aStroke
- aClip
- public Shape[] getPattern()
public float getGap()
public void setAlternativeStroke(Stroke aStroke)
aStroke
- the stroke to be used when the default pattern stroke cannot be used.public Stroke getAlternativeStroke()
public ALspComplexStroke asComplexStroke(Color aColor)
public Shape createStrokedShape(Shape p)
createStrokedShape
in interface Stroke