Package com.luciad.format.s52
Class TLcdS52ComplexStroke
java.lang.Object
com.luciad.format.s52.TLcdS52ComplexStroke
- All Implemented Interfaces:
Stroke
Deprecated.
This Stroke implementation can be used to draw one or more patterns repetitively along a path. A
gap can be associated with each pattern to control the distance between the patterns.
Additionally, a tolerance can be set to control the maximum error that is allowed. Wherever
using
a pattern would deviate too much from the original path, a fallback (basic) stroke will be used
to paint that part of the path.
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdS52ComplexStroke(TLcdS52ComplexStroke aStroke, Rectangle aClip) Deprecated.Creates a newTLcdS52ComplexStrokethat is a copy of the given stroke, but is optimized for the given clip; shapes won't be stroked outside this clip.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. -
Method Summary
Modifier and TypeMethodDescriptionasComplexStroke(Color aColor, ILcdS52ColorProvider aColorProvider) Deprecated.Deprecated.Deprecated.Gets the stroke that should be used when no pattern can be used (when lines are too short to use the pattern).floatgetGap()Deprecated.Shape[]Deprecated.voidsetAlternativeStroke(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).
-
Constructor Details
-
TLcdS52ComplexStroke
Deprecated. -
TLcdS52ComplexStroke
Deprecated.- Parameters:
pattern- the Shape that should be used as a pattern.gap- the gap between the pattern Shapes.
-
TLcdS52ComplexStroke
Deprecated.- Parameters:
pattern- the Shapes that should be used as a pattern. This array is copied.gap- the gap between the pattern Shapes.
-
TLcdS52ComplexStroke
Deprecated.- Parameters:
pattern- the Shapes that should be used as a pattern. This array is copied.gap- the gap between the pattern Shapes.
-
TLcdS52ComplexStroke
Deprecated.Creates a newTLcdS52ComplexStrokethat 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.- Parameters:
aStroke-aClip-
-
-
Method Details
-
getPattern
Deprecated.- Returns:
- pattern of shapes used by this complex stroke
-
getGap
public float getGap()Deprecated.- Returns:
- gap between pattern shapes
-
setAlternativeStroke
Deprecated.Sets the stroke that should be used when no pattern can be used (when lines are too short to use the pattern).- Parameters:
aStroke- the stroke to be used when the default pattern stroke cannot be used.
-
getAlternativeStroke
Deprecated.Gets the stroke that should be used when no pattern can be used (when lines are too short to use the pattern).- Returns:
- The stroke to be used when the default pattern stroke cannot be used.
-
asComplexStroke
Deprecated.- Returns:
- A complex stroke that can be used in a Lightspeed view.
- Since:
- 2013.1
-
createStrokedShape
Deprecated.- Specified by:
createStrokedShapein interfaceStroke
-
TLcdGXYComplexStroke, which offers a more flexible and correct implementation of a complex stroke.