Interface ILcdSVGShapeFactory

All Known Implementing Classes:
TLcdSVGUnStyledLonLatShapeFactory, TLcdSVGUnStyledXYShapeFactory

public interface ILcdSVGShapeFactory
This interface represents a factory for ILcdShape used in the TLcdSVGContentHandler. It must be set to the TLcdSVGSAXModelDecoder . It can create an element from an Attributes. ILcdShapeList is a special case. First the factory is asked to create an empty one. The handler will ask the factory to create the actual ILcdShapeList from the created one (with properties) and the shapes that have been collected int the meantime. The problem is that when the new instance of the ILcdShapeList must be created, all the elements in it are not known,but the instance must be created in order to preserve the properties. To extend this class, unsupported ILcdShape can be added by overwriting the createUnknownShape to create the shape and setUnknownShapeText to add a text to the shape.
  • Method Details Link icon

    • createCircle Link icon

      ILcdCircle createCircle(Attributes aAttributes)
      Creates an ILcdCircle form given Attributes.
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdCirlce.
    • createPolyline Link icon

      ILcdPolyline createPolyline(Attributes aAttributes)
      Creates an ILcdPolyline form given Attributes.
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdCirlce.
    • createLine Link icon

      ILcdPolyline createLine(Attributes aAttributes)
      Creates an ILcdPolyline form given Attributes. A Line is a Polyline with only 2 points.
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdCirlce.
    • createPolygon Link icon

      ILcdPolygon createPolygon(Attributes aAttributes)
      Creates an ILcdPolygon form given Attributes.
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdPolygon.
    • createPath Link icon

      ILcdShape createPath(Attributes aAttributes)
      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.
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdShape.
    • createBounds Link icon

      ILcdBounds createBounds(Attributes aAttributes)
      Creates n ILcdBounds form given Attributes.
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdBounds.
    • createText Link icon

      ILcdText createText(Attributes aAttributes)
      Creates an ILcdText form given Attributes.
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdText.
    • createEmptyShapeList Link icon

      ILcdShapeList createEmptyShapeList(Attributes aAttributes)
      Creates an empty ILcdShapeList form given Attributes.
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdShapeList.
    • createShapeList Link icon

      ILcdShapeList createShapeList(ILcdShapeList aShapeList, ILcdShape[] aShapeArray)
      Creates an ILcdShapeList based on an existing ILcdShapeList and an Array of ILcdShape.
      Parameters:
      aShapeList - the ILcdShapeList.
      aShapeArray - the Array of ILcdShape to fill the object.
      Returns:
      the created ILcdShapeList.
    • createPoint Link icon

      ILcdPoint createPoint(Attributes aAttributes)
      Creates a ILcdPoint form given Attributes. This is a non - true - svg object!
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdPoint.
    • createEllipse Link icon

      ILcdEllipse createEllipse(Attributes aAttributes)
      Creates a ILcdEllipse form given Attributes. This is a non - true - svg object!
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdEllipse.
    • createArcBand Link icon

      ILcdArcBand createArcBand(Attributes aAttributes)
      Creates a ILcdArcBand form given Attributes. This is a non - true - svg object !
      Parameters:
      aAttributes - the Attributes containing the info to create the object.
      Returns:
      the created ILcdArcBand.
    • setText Link icon

      void setText(ILcdText aTextObject, String aText)
      Sets a String as the text of an ILcdText.
      Parameters:
      aTextObject - a ILcdText.
      aText - a String.
    • createUnknownShape Link icon

      ILcdShape createUnknownShape(Attributes aAttributes, String aLocalName)
      creates an unknown ILcdShape of type aLocalname.
      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
    • endUnknownShape Link icon

      void endUnknownShape()
      This method is called by the TLcdSVGContentHandler when an unknown element was handled, regardless of whether or not this created a shape.
    • setUnknownShapeText Link icon

      void setUnknownShapeText(Object aObject, String aText)
      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.
      Parameters:
      aObject - a Object, the unknown shape.
      aText - a String, the text to set to the unknown shape.