public class TLcdSVGUnStyledLonLatShapeFactory extends Object
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 and Description |
---|
TLcdSVGUnStyledLonLatShapeFactory() |
Modifier and Type | Method and Description |
---|---|
ILcdArcBand |
createArcBand(Attributes aAttributes)
Creates a
ILcdArcBand form given Attributes . |
protected ILcdArcBand |
createArcBand(double aX,
double aY,
double aMinradius,
double aMaxradius,
double aStartangle,
double aEndangle) |
ILcdBounds |
createBounds(Attributes aAttributes)
Creates n
ILcdBounds form given Attributes . |
protected ILcdBounds |
createBounds(ILcd2DEditablePoint aBottomLeftPoint,
double aWidth,
double aHeight) |
ILcdCircle |
createCircle(Attributes aAttributes)
Creates an
ILcdCircle form given Attributes . |
protected ILcdCircle |
createCircle(ILcd2DEditablePoint aCenterpoint,
double aRadius) |
ILcdEllipse |
createEllipse(Attributes aAttributes)
Creates a
ILcdEllipse form given Attributes . |
protected ILcdEllipse |
createEllipse(double aCx,
double aCy,
double aRx,
double aRy,
double aRotation) |
ILcdShapeList |
createEmptyShapeList(Attributes aAttributes)
Creates an empty
ILcdShapeList form given Attributes . |
ILcdPolyline |
createLine(Attributes aAttributes)
Creates an
ILcdPolyline form given Attributes . |
ILcdShape |
createPath(Attributes aAttributes)
Creates an
ILcdShape from given Attributes . |
ILcdPoint |
createPoint(Attributes aAttributes)
Creates a
ILcdPoint form given Attributes . |
protected ILcd2DEditablePoint |
createPoint(double aX,
double aY) |
ILcdPolygon |
createPolygon(Attributes aAttributes)
Creates an
ILcdPolygon form given Attributes . |
protected ILcdPolygon |
createPolygon(ILcd2DEditablePointList aPoints) |
ILcdPolyline |
createPolyline(Attributes aAttributes)
Creates an
ILcdPolyline form given Attributes . |
protected ILcdPolyline |
createPolyline(ILcd2DEditablePointList aPoints) |
ILcdShapeList |
createShapeList(ILcdShapeList aShapeList,
ILcdShape[] aShapeArray)
Creates an
ILcdShapeList based on an existing ILcdShapeList and an
Array of ILcdShape . |
ILcdText |
createText(Attributes aAttributes)
Creates an
ILcdText form given Attributes . |
protected ILcdText |
createText(double aX,
double aY,
double aCharacterwidth,
double aCharacterheight,
int aHor_alignment,
int aVert_alignment,
double aRotation) |
ILcdShape |
createUnknownShape(Attributes aAttributes,
String aLocalName)
creates an unknown
ILcdShape of type aLocalname. |
void |
endUnknownShape()
Empty implementation.
|
static boolean |
isClassTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setEllipsoid(ILcdEllipsoid aEllipsoid)
Sets the
ILcdEllipsoid needed to create the shapes. |
void |
setText(ILcdText aTextObject,
String aText)
Sets a
String as the text of an ILcdText . |
void |
setUnknownShapeText(Object aObject,
String aText)
Sets a
String as text to the unknown shape. |
public void setEllipsoid(ILcdEllipsoid aEllipsoid)
ILcdEllipsoid
needed to create the shapes.aEllipsoid
- the ILcdEllipsoid
needed to create the shapes.protected ILcdCircle createCircle(ILcd2DEditablePoint aCenterpoint, double aRadius)
protected ILcdBounds createBounds(ILcd2DEditablePoint aBottomLeftPoint, double aWidth, double aHeight)
protected ILcdEllipse createEllipse(double aCx, double aCy, double aRx, double aRy, double aRotation)
protected ILcdArcBand createArcBand(double aX, double aY, double aMinradius, double aMaxradius, double aStartangle, double aEndangle)
protected ILcd2DEditablePoint createPoint(double aX, double aY)
protected ILcdPolygon createPolygon(ILcd2DEditablePointList aPoints)
protected ILcdPolyline createPolyline(ILcd2DEditablePointList aPoints)
protected ILcdText createText(double aX, double aY, double aCharacterwidth, double aCharacterheight, int aHor_alignment, int aVert_alignment, double aRotation)
public void setText(ILcdText aTextObject, String aText)
ILcdSVGShapeFactory
String
as the text of an ILcdText
.aTextObject
- a ILcdText
.aText
- a String
.public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public static boolean isClassTraceOn()
true
if tracing is enabled for this class.public ILcdShape createUnknownShape(Attributes aAttributes, String aLocalName)
ILcdSVGShapeFactory
ILcdShape
of type aLocalname.createUnknownShape
in interface ILcdSVGShapeFactory
aAttributes
- the attributes to create the unknown shape.aLocalName
- the type of the unknown shape, the name of the xml element.ILcdShape
public void setUnknownShapeText(Object aObject, String aText)
ILcdSVGShapeFactory
String
as text to the unknown shape. The text is the character data between the
begin and end tag of the unknown shape.setUnknownShapeText
in interface ILcdSVGShapeFactory
aObject
- a Object
, the unknown shape.aText
- a String
, the text to set to the unknown shape.public ILcdShape createPath(Attributes aAttributes)
ILcdSVGShapeFactory
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.createPath
in interface ILcdSVGShapeFactory
aAttributes
- the Attributes
containing the info to create the object.ILcdShape
.public void endUnknownShape()
endUnknownShape
in interface ILcdSVGShapeFactory
public ILcdCircle createCircle(Attributes aAttributes)
ILcdSVGShapeFactory
ILcdCircle
form given Attributes
.createCircle
in interface ILcdSVGShapeFactory
aAttributes
- the Attributes
containing the info to create the object.ILcdCirlce
.public ILcdPolyline createPolyline(Attributes aAttributes)
ILcdSVGShapeFactory
ILcdPolyline
form given Attributes
.createPolyline
in interface ILcdSVGShapeFactory
aAttributes
- the Attributes
containing the info to create the object.ILcdCirlce
.public ILcdPolyline createLine(Attributes aAttributes)
ILcdSVGShapeFactory
ILcdPolyline
form given Attributes
. A Line is a Polyline with
only 2 points.createLine
in interface ILcdSVGShapeFactory
aAttributes
- the Attributes
containing the info to create the object.ILcdCirlce
.public ILcdPolygon createPolygon(Attributes aAttributes)
ILcdSVGShapeFactory
ILcdPolygon
form given Attributes
.createPolygon
in interface ILcdSVGShapeFactory
aAttributes
- the Attributes
containing the info to create the object.ILcdPolygon
.public ILcdBounds createBounds(Attributes aAttributes)
ILcdSVGShapeFactory
ILcdBounds
form given Attributes
.createBounds
in interface ILcdSVGShapeFactory
aAttributes
- the Attributes
containing the info to create the object.ILcdBounds
.public ILcdText createText(Attributes aAttributes)
ILcdSVGShapeFactory
ILcdText
form given Attributes
.createText
in interface ILcdSVGShapeFactory
aAttributes
- the Attributes
containing the info to create the object.ILcdText
.public ILcdShapeList createEmptyShapeList(Attributes aAttributes)
ILcdSVGShapeFactory
ILcdShapeList
form given Attributes
.createEmptyShapeList
in interface ILcdSVGShapeFactory
aAttributes
- the Attributes
containing the info to create the object.ILcdShapeList
.public ILcdShapeList createShapeList(ILcdShapeList aShapeList, ILcdShape[] aShapeArray)
ILcdSVGShapeFactory
ILcdShapeList
based on an existing ILcdShapeList
and an
Array
of ILcdShape
.createShapeList
in interface ILcdSVGShapeFactory
aShapeList
- the ILcdShapeList
.aShapeArray
- the Array
of ILcdShape
to fill the object.ILcdShapeList
.public ILcdPoint createPoint(Attributes aAttributes)
ILcdSVGShapeFactory
ILcdPoint
form given Attributes
.
This is a non - true - svg object!createPoint
in interface ILcdSVGShapeFactory
aAttributes
- the Attributes
containing the info to create the object.ILcdPoint
.public ILcdEllipse createEllipse(Attributes aAttributes)
ILcdSVGShapeFactory
ILcdEllipse
form given Attributes
.
This is a non - true - svg object!createEllipse
in interface ILcdSVGShapeFactory
aAttributes
- the Attributes
containing the info to create the object.ILcdEllipse
.public ILcdArcBand createArcBand(Attributes aAttributes)
ILcdSVGShapeFactory
ILcdArcBand
form given Attributes
.
This is a non - true - svg object !createArcBand
in interface ILcdSVGShapeFactory
aAttributes
- the Attributes
containing the info to create the object.ILcdArcBand
.