Class TLcdS52ComplexStroke

java.lang.Object
com.luciad.format.s52.TLcdS52ComplexStroke
All Implemented Interfaces:
Stroke

public class TLcdS52ComplexStroke extends Object implements Stroke
Deprecated.
This class has been deprecated in favor of TLcdGXYComplexStroke, which offers a more flexible and correct implementation of a complex stroke.
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 Details

    • TLcdS52ComplexStroke

      public TLcdS52ComplexStroke(Shape aTransformedShape, int aLength, ILcdS52Icon aIcon)
      Deprecated.
    • TLcdS52ComplexStroke

      public TLcdS52ComplexStroke(Shape pattern, float gap)
      Deprecated.
      Parameters:
      pattern - the Shape that should be used as a pattern.
      gap - the gap between the pattern Shapes.
    • TLcdS52ComplexStroke

      public TLcdS52ComplexStroke(Shape[] pattern, float gap)
      Deprecated.
      Parameters:
      pattern - the Shapes that should be used as a pattern. This array is copied.
      gap - the gap between the pattern Shapes.
    • TLcdS52ComplexStroke

      public TLcdS52ComplexStroke(Shape[] pattern, float gap, int gapAdjustLimit)
      Deprecated.
      Parameters:
      pattern - the Shapes that should be used as a pattern. This array is copied.
      gap - the gap between the pattern Shapes.
    • TLcdS52ComplexStroke

      public 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. This might improve performance significantly when zooming in on a stroked shape.
      Parameters:
      aStroke -
      aClip -
  • Method Details

    • getPattern

      public Shape[] getPattern()
      Deprecated.
      Returns:
      pattern of shapes used by this complex stroke
    • getGap

      public float getGap()
      Deprecated.
      Returns:
      gap between pattern shapes
    • setAlternativeStroke

      public 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).
      Parameters:
      aStroke - the stroke to be used when the default pattern stroke cannot be used.
    • getAlternativeStroke

      public 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).
      Returns:
      The stroke to be used when the default pattern stroke cannot be used.
    • asComplexStroke

      public ALspComplexStroke asComplexStroke(Color aColor)
      Deprecated.
      Returns:
      A complex stroke that can be used in a Lightspeed view.
      Since:
      2013.1
    • createStrokedShape

      public Shape createStrokedShape(Shape p)
      Deprecated.
      Specified by:
      createStrokedShape in interface Stroke