Class TLcdSVGUnStyledLonLatShapeFactory

java.lang.Object
com.luciad.format.svg.TLcdSVGUnStyledLonLatShapeFactory
All Implemented Interfaces:
ILcdSVGShapeFactory

public class TLcdSVGUnStyledLonLatShapeFactory extends Object
This is an implementation of ILcdSVGShapeFactory. It creates ILcdShape without properties like color , etc. This class can be created by implementations of ILcdSVGShapeFactoryFactory.

The shapes returned by this factory all implement ILcdDataObject. The data types for these shapes can be found in the TLcdSVGDataTypes class. Custom implementation of ILcdSVGShapeFactory need to make sure they do the same. Alternatively, if the shapes do not implement ILcdDataObject, the TLcdDataModel used by the TLcdSVGModelDescriptor should reflect this by ensuring its model element data types are primitive for correct functioning of some of the features of SVG.

  • Constructor Details

    • TLcdSVGUnStyledLonLatShapeFactory

      public TLcdSVGUnStyledLonLatShapeFactory()
  • Method Details

    • setEllipsoid

      public void setEllipsoid(ILcdEllipsoid aEllipsoid)
      Sets the ILcdEllipsoid needed to create the shapes.
      Parameters:
      aEllipsoid - the ILcdEllipsoid needed to create the shapes.
    • createCircle

      protected ILcdCircle createCircle(ILcd2DEditablePoint aCenterpoint, double aRadius)
    • createBounds

      protected ILcdBounds createBounds(ILcd2DEditablePoint aBottomLeftPoint, double aWidth, double aHeight)
    • createEllipse

      protected ILcdEllipse createEllipse(double aCx, double aCy, double aRx, double aRy, double aRotation)
    • createArcBand

      protected ILcdArcBand createArcBand(double aX, double aY, double aMinradius, double aMaxradius, double aStartangle, double aEndangle)
    • createPoint

      protected ILcd2DEditablePoint createPoint(double aX, double aY)
    • createPolygon

      protected ILcdPolygon createPolygon(ILcd2DEditablePointList aPoints)
    • createPolyline

      protected ILcdPolyline createPolyline(ILcd2DEditablePointList aPoints)
    • createText

      protected ILcdText createText(double aX, double aY, double aCharacterwidth, double aCharacterheight, int aHor_alignment, int aVert_alignment, double aRotation)
    • setText

      public void setText(ILcdText aTextObject, String aText)
      Description copied from interface: ILcdSVGShapeFactory
      Sets a String as the text of an ILcdText.
      Parameters:
      aTextObject - a ILcdText.
      aText - a String.
    • setClassTraceOn

      public static void setClassTraceOn(boolean aClassTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for all instances of this class. If the argument is true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
      Parameters:
      aClassTraceOn - if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
    • isClassTraceOn

      public static boolean isClassTraceOn()
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Returns true if tracing is enabled for this class.
      Returns:
      true if tracing is enabled for this class, false otherwise.
    • createUnknownShape

      public ILcdShape createUnknownShape(Attributes aAttributes, String aLocalName)
      Description copied from interface: ILcdSVGShapeFactory
      creates an unknown ILcdShape of type aLocalname.
      Specified by:
      createUnknownShape in interface ILcdSVGShapeFactory
      Parameters:
      aAttributes - the attributes to create the unknown shape.
      aLocalName - the type of the unknown shape, the name of the xml element.
      Returns:
      the created ILcdShape
    • setUnknownShapeText

      public void setUnknownShapeText(Object aObject, String aText)
      Description copied from interface: ILcdSVGShapeFactory
      Sets a String as text to the unknown shape. The text is the character data between the begin and end tag of the unknown shape.
      Specified by:
      setUnknownShapeText in interface ILcdSVGShapeFactory
      Parameters:
      aObject - a Object, the unknown shape.
      aText - a String, the text to set to the unknown shape.
    • createPath

      public ILcdShape createPath(Attributes aAttributes)
      Description copied from interface: ILcdSVGShapeFactory
      Creates an ILcdShape from given Attributes. This shape can be a ILcdPolyline or a ILcdPolygon, depending on whether the path is closed or not, or a ILcdShapeList containing ILcdPolyline objects and/or ILcdPolygon objects.
      Specified by:
      createPath in interface ILcdSVGShapeFactory
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdShape.
    • endUnknownShape

      public void endUnknownShape()
      Empty implementation.
      Specified by:
      endUnknownShape in interface ILcdSVGShapeFactory
    • createCircle

      public ILcdCircle createCircle(Attributes aAttributes)
      Description copied from interface: ILcdSVGShapeFactory
      Creates an ILcdCircle form given Attributes.
      Specified by:
      createCircle in interface ILcdSVGShapeFactory
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdCirlce.
    • createPolyline

      public ILcdPolyline createPolyline(Attributes aAttributes)
      Description copied from interface: ILcdSVGShapeFactory
      Creates an ILcdPolyline form given Attributes.
      Specified by:
      createPolyline in interface ILcdSVGShapeFactory
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdCirlce.
    • createLine

      public ILcdPolyline createLine(Attributes aAttributes)
      Description copied from interface: ILcdSVGShapeFactory
      Creates an ILcdPolyline form given Attributes. A Line is a Polyline with only 2 points.
      Specified by:
      createLine in interface ILcdSVGShapeFactory
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdCirlce.
    • createPolygon

      public ILcdPolygon createPolygon(Attributes aAttributes)
      Description copied from interface: ILcdSVGShapeFactory
      Creates an ILcdPolygon form given Attributes.
      Specified by:
      createPolygon in interface ILcdSVGShapeFactory
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdPolygon.
    • createBounds

      public ILcdBounds createBounds(Attributes aAttributes)
      Description copied from interface: ILcdSVGShapeFactory
      Creates n ILcdBounds form given Attributes.
      Specified by:
      createBounds in interface ILcdSVGShapeFactory
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdBounds.
    • createText

      public ILcdText createText(Attributes aAttributes)
      Description copied from interface: ILcdSVGShapeFactory
      Creates an ILcdText form given Attributes.
      Specified by:
      createText in interface ILcdSVGShapeFactory
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdText.
    • createEmptyShapeList

      public ILcdShapeList createEmptyShapeList(Attributes aAttributes)
      Description copied from interface: ILcdSVGShapeFactory
      Creates an empty ILcdShapeList form given Attributes.
      Specified by:
      createEmptyShapeList in interface ILcdSVGShapeFactory
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdShapeList.
    • createShapeList

      public ILcdShapeList createShapeList(ILcdShapeList aShapeList, ILcdShape[] aShapeArray)
      Description copied from interface: ILcdSVGShapeFactory
      Creates an ILcdShapeList based on an existing ILcdShapeList and an Array of ILcdShape.
      Specified by:
      createShapeList in interface ILcdSVGShapeFactory
      Parameters:
      aShapeList - the ILcdShapeList.
      aShapeArray - the Array of ILcdShape to fill the object.
      Returns:
      the created ILcdShapeList.
    • createPoint

      public ILcdPoint createPoint(Attributes aAttributes)
      Description copied from interface: ILcdSVGShapeFactory
      Creates a ILcdPoint form given Attributes. This is a non - true - svg object!
      Specified by:
      createPoint in interface ILcdSVGShapeFactory
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdPoint.
    • createEllipse

      public ILcdEllipse createEllipse(Attributes aAttributes)
      Description copied from interface: ILcdSVGShapeFactory
      Creates a ILcdEllipse form given Attributes. This is a non - true - svg object!
      Specified by:
      createEllipse in interface ILcdSVGShapeFactory
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdEllipse.
    • createArcBand

      public ILcdArcBand createArcBand(Attributes aAttributes)
      Description copied from interface: ILcdSVGShapeFactory
      Creates a ILcdArcBand form given Attributes. This is a non - true - svg object !
      Specified by:
      createArcBand in interface ILcdSVGShapeFactory
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdArcBand.