Package com.luciad.format.svg
Class TLcdSVGUnStyledXYShapeFactory
java.lang.Object
com.luciad.format.svg.TLcdSVGUnStyledXYShapeFactory
- All Implemented Interfaces:
ILcdSVGShapeFactory
This is an extends of
ALcdSVGShapeFactory
.
It creates ILcdShape
without properties like color , etc.
This class can be created by implementations of ILcdSVGShapeFactoryFactory
.
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 TypeMethodDescriptioncreateArcBand
(Attributes aAttributes) Creates aILcdArcBand
form givenAttributes
.createBounds
(Attributes aAttributes) Creates nILcdBounds
form givenAttributes
.createCircle
(Attributes aAttributes) Creates anILcdCircle
form givenAttributes
.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
.createPoint
(Attributes aAttributes) Creates aILcdPoint
form givenAttributes
.createPolygon
(Attributes aAttributes) Creates anILcdPolygon
form givenAttributes
.createPolyline
(Attributes aAttributes) Creates anILcdPolyline
form givenAttributes
.createShapeList
(ILcdShapeList aShapeList, ILcdShape[] aShapeArray) Creates anILcdShapeList
based on an existingILcdShapeList
and anArray
ofILcdShape
.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
Sets aString
as the text of anILcdText
.void
setUnknownShapeText
(Object aObject, String aText) Sets aString
as text to the unknown shape.
-
Constructor Details
-
TLcdSVGUnStyledXYShapeFactory
public TLcdSVGUnStyledXYShapeFactory()
-
-
Method Details
-
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
.
-