Package com.luciad.format.svg
Class TLcdSVGUnStyledLonLatShapeFactory
java.lang.Object
com.luciad.format.svg.TLcdSVGUnStyledLonLatShapeFactory
- All Implemented Interfaces:
ILcdSVGShapeFactory
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ILcdArcBand
createArcBand
(double aX, double aY, double aMinradius, double aMaxradius, double aStartangle, double aEndangle) createArcBand
(Attributes aAttributes) Creates aILcdArcBand
form givenAttributes
.protected ILcdBounds
createBounds
(ILcd2DEditablePoint aBottomLeftPoint, double aWidth, double aHeight) createBounds
(Attributes aAttributes) Creates nILcdBounds
form givenAttributes
.protected ILcdCircle
createCircle
(ILcd2DEditablePoint aCenterpoint, double aRadius) createCircle
(Attributes aAttributes) Creates anILcdCircle
form givenAttributes
.protected ILcdEllipse
createEllipse
(double aCx, double aCy, double aRx, double aRy, double aRotation) createEllipse
(Attributes aAttributes) Creates aILcdEllipse
form givenAttributes
.createEmptyShapeList
(Attributes aAttributes) Creates an emptyILcdShapeList
form givenAttributes
.createLine
(Attributes aAttributes) Creates anILcdPolyline
form givenAttributes
.createPath
(Attributes aAttributes) Creates anILcdShape
from givenAttributes
.protected ILcd2DEditablePoint
createPoint
(double aX, double aY) createPoint
(Attributes aAttributes) Creates aILcdPoint
form givenAttributes
.protected ILcdPolygon
createPolygon
(ILcd2DEditablePointList aPoints) createPolygon
(Attributes aAttributes) Creates anILcdPolygon
form givenAttributes
.protected ILcdPolyline
createPolyline
(ILcd2DEditablePointList aPoints) createPolyline
(Attributes aAttributes) Creates anILcdPolyline
form givenAttributes
.createShapeList
(ILcdShapeList aShapeList, ILcdShape[] aShapeArray) Creates anILcdShapeList
based on an existingILcdShapeList
and anArray
ofILcdShape
.protected ILcdText
createText
(double aX, double aY, double aCharacterwidth, double aCharacterheight, int aHor_alignment, int aVert_alignment, double aRotation) createText
(Attributes aAttributes) Creates anILcdText
form givenAttributes
.createUnknownShape
(Attributes aAttributes, String aLocalName) creates an unknownILcdShape
of type aLocalname.void
Empty implementation.static boolean
Deprecated.This method has been deprecated.static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.void
setEllipsoid
(ILcdEllipsoid aEllipsoid) Sets theILcdEllipsoid
needed to create the shapes.void
Sets aString
as the text of anILcdText
.void
setUnknownShapeText
(Object aObject, String aText) Sets aString
as text to the unknown shape.
-
Constructor Details
-
TLcdSVGUnStyledLonLatShapeFactory
public TLcdSVGUnStyledLonLatShapeFactory()
-
-
Method Details
-
setEllipsoid
Sets theILcdEllipsoid
needed to create the shapes.- Parameters:
aEllipsoid
- theILcdEllipsoid
needed to create the shapes.
-
createCircle
-
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
-
createPolygon
-
createPolyline
-
createText
protected ILcdText createText(double aX, double aY, double aCharacterwidth, double aCharacterheight, int aHor_alignment, int aVert_alignment, double aRotation) -
setText
Description copied from interface:ILcdSVGShapeFactory
Sets aString
as the text of anILcdText
.- Parameters:
aTextObject
- aILcdText
.aText
- aString
.
-
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 istrue
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.Returnstrue
if tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
createUnknownShape
Description copied from interface:ILcdSVGShapeFactory
creates an unknownILcdShape
of type aLocalname.- Specified by:
createUnknownShape
in interfaceILcdSVGShapeFactory
- 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
Description copied from interface:ILcdSVGShapeFactory
Sets aString
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 interfaceILcdSVGShapeFactory
- Parameters:
aObject
- aObject
, the unknown shape.aText
- aString
, the text to set to the unknown shape.
-
createPath
Description copied from interface:ILcdSVGShapeFactory
Creates anILcdShape
from givenAttributes
. This shape can be aILcdPolyline
or aILcdPolygon
, depending on whether the path is closed or not, or aILcdShapeList
containingILcdPolyline
objects and/orILcdPolygon
objects.- Specified by:
createPath
in interfaceILcdSVGShapeFactory
- Parameters:
aAttributes
- theAttributes
containing the info to create the object.- Returns:
- the created
ILcdShape
.
-
endUnknownShape
public void endUnknownShape()Empty implementation.- Specified by:
endUnknownShape
in interfaceILcdSVGShapeFactory
-
createCircle
Description copied from interface:ILcdSVGShapeFactory
Creates anILcdCircle
form givenAttributes
.- Specified by:
createCircle
in interfaceILcdSVGShapeFactory
- Parameters:
aAttributes
- theAttributes
containing the info to create the object.- Returns:
- the created
ILcdCirlce
.
-
createPolyline
Description copied from interface:ILcdSVGShapeFactory
Creates anILcdPolyline
form givenAttributes
.- Specified by:
createPolyline
in interfaceILcdSVGShapeFactory
- Parameters:
aAttributes
- theAttributes
containing the info to create the object.- Returns:
- the created
ILcdCirlce
.
-
createLine
Description copied from interface:ILcdSVGShapeFactory
Creates anILcdPolyline
form givenAttributes
. A Line is a Polyline with only 2 points.- Specified by:
createLine
in interfaceILcdSVGShapeFactory
- Parameters:
aAttributes
- theAttributes
containing the info to create the object.- Returns:
- the created
ILcdCirlce
.
-
createPolygon
Description copied from interface:ILcdSVGShapeFactory
Creates anILcdPolygon
form givenAttributes
.- Specified by:
createPolygon
in interfaceILcdSVGShapeFactory
- Parameters:
aAttributes
- theAttributes
containing the info to create the object.- Returns:
- the created
ILcdPolygon
.
-
createBounds
Description copied from interface:ILcdSVGShapeFactory
Creates nILcdBounds
form givenAttributes
.- Specified by:
createBounds
in interfaceILcdSVGShapeFactory
- Parameters:
aAttributes
- theAttributes
containing the info to create the object.- Returns:
- the created
ILcdBounds
.
-
createText
Description copied from interface:ILcdSVGShapeFactory
Creates anILcdText
form givenAttributes
.- Specified by:
createText
in interfaceILcdSVGShapeFactory
- Parameters:
aAttributes
- theAttributes
containing the info to create the object.- Returns:
- the created
ILcdText
.
-
createEmptyShapeList
Description copied from interface:ILcdSVGShapeFactory
Creates an emptyILcdShapeList
form givenAttributes
.- Specified by:
createEmptyShapeList
in interfaceILcdSVGShapeFactory
- Parameters:
aAttributes
- theAttributes
containing the info to create the object.- Returns:
- the created
ILcdShapeList
.
-
createShapeList
Description copied from interface:ILcdSVGShapeFactory
Creates anILcdShapeList
based on an existingILcdShapeList
and anArray
ofILcdShape
.- Specified by:
createShapeList
in interfaceILcdSVGShapeFactory
- Parameters:
aShapeList
- theILcdShapeList
.aShapeArray
- theArray
ofILcdShape
to fill the object.- Returns:
- the created
ILcdShapeList
.
-
createPoint
Description copied from interface:ILcdSVGShapeFactory
Creates aILcdPoint
form givenAttributes
. This is a non - true - svg object!- Specified by:
createPoint
in interfaceILcdSVGShapeFactory
- Parameters:
aAttributes
- theAttributes
containing the info to create the object.- Returns:
- the created
ILcdPoint
.
-
createEllipse
Description copied from interface:ILcdSVGShapeFactory
Creates aILcdEllipse
form givenAttributes
. This is a non - true - svg object!- Specified by:
createEllipse
in interfaceILcdSVGShapeFactory
- Parameters:
aAttributes
- theAttributes
containing the info to create the object.- Returns:
- the created
ILcdEllipse
.
-
createArcBand
Description copied from interface:ILcdSVGShapeFactory
Creates aILcdArcBand
form givenAttributes
. This is a non - true - svg object !- Specified by:
createArcBand
in interfaceILcdSVGShapeFactory
- Parameters:
aAttributes
- theAttributes
containing the info to create the object.- Returns:
- the created
ILcdArcBand
.
-