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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateArcBand(Attributes aAttributes) Creates aILcdArcBandform givenAttributes.createBounds(Attributes aAttributes) Creates nILcdBoundsform givenAttributes.createCircle(Attributes aAttributes) Creates anILcdCircleform givenAttributes.createEllipse(Attributes aAttributes) Creates aILcdEllipseform givenAttributes.createEmptyShapeList(Attributes aAttributes) Creates an emptyILcdShapeListform givenAttributes.createLine(Attributes aAttributes) Creates anILcdPolylineform givenAttributes.createPath(Attributes aAttributes) Creates anILcdShapefrom givenAttributes.createPoint(Attributes aAttributes) Creates aILcdPointform givenAttributes.createPolygon(Attributes aAttributes) Creates anILcdPolygonform givenAttributes.createPolyline(Attributes aAttributes) Creates anILcdPolylineform givenAttributes.createShapeList(ILcdShapeList aShapeList, ILcdShape[] aShapeArray) Creates anILcdShapeListbased on an existingILcdShapeListand anArrayofILcdShape.createText(Attributes aAttributes) Creates anILcdTextform givenAttributes.createUnknownShape(Attributes aAttributes, String aLocalName) creates an unknownILcdShapeof type aLocalname.voidEmpty implementation.static booleanDeprecated.This method has been deprecated.static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.voidSets aStringas the text of anILcdText.voidsetUnknownShapeText(Object aObject, String aText) Sets aStringas text to the unknown shape.
-
Constructor Details
-
TLcdSVGUnStyledXYShapeFactory
public TLcdSVGUnStyledXYShapeFactory()
-
-
Method Details
-
setText
Description copied from interface:ILcdSVGShapeFactorySets aStringas 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 istruethen 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.Returnstrueif tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
createUnknownShape
Description copied from interface:ILcdSVGShapeFactorycreates an unknownILcdShapeof type aLocalname.- Specified by:
createUnknownShapein 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:ILcdSVGShapeFactorySets aStringas text to the unknown shape. The text is the character data between the begin and end tag of the unknown shape.- Specified by:
setUnknownShapeTextin interfaceILcdSVGShapeFactory- Parameters:
aObject- aObject, the unknown shape.aText- aString, the text to set to the unknown shape.
-
createPath
Description copied from interface:ILcdSVGShapeFactoryCreates anILcdShapefrom givenAttributes. This shape can be aILcdPolylineor aILcdPolygon, depending on whether the path is closed or not, or aILcdShapeListcontainingILcdPolylineobjects and/orILcdPolygonobjects.- Specified by:
createPathin interfaceILcdSVGShapeFactory- Parameters:
aAttributes- theAttributescontaining the info to create the object.- Returns:
- the created
ILcdShape.
-
endUnknownShape
public void endUnknownShape()Empty implementation.- Specified by:
endUnknownShapein interfaceILcdSVGShapeFactory
-
createCircle
Description copied from interface:ILcdSVGShapeFactoryCreates anILcdCircleform givenAttributes.- Specified by:
createCirclein interfaceILcdSVGShapeFactory- Parameters:
aAttributes- theAttributescontaining the info to create the object.- Returns:
- the created
ILcdCirlce.
-
createPolyline
Description copied from interface:ILcdSVGShapeFactoryCreates anILcdPolylineform givenAttributes.- Specified by:
createPolylinein interfaceILcdSVGShapeFactory- Parameters:
aAttributes- theAttributescontaining the info to create the object.- Returns:
- the created
ILcdCirlce.
-
createLine
Description copied from interface:ILcdSVGShapeFactoryCreates anILcdPolylineform givenAttributes. A Line is a Polyline with only 2 points.- Specified by:
createLinein interfaceILcdSVGShapeFactory- Parameters:
aAttributes- theAttributescontaining the info to create the object.- Returns:
- the created
ILcdCirlce.
-
createPolygon
Description copied from interface:ILcdSVGShapeFactoryCreates anILcdPolygonform givenAttributes.- Specified by:
createPolygonin interfaceILcdSVGShapeFactory- Parameters:
aAttributes- theAttributescontaining the info to create the object.- Returns:
- the created
ILcdPolygon.
-
createBounds
Description copied from interface:ILcdSVGShapeFactoryCreates nILcdBoundsform givenAttributes.- Specified by:
createBoundsin interfaceILcdSVGShapeFactory- Parameters:
aAttributes- theAttributescontaining the info to create the object.- Returns:
- the created
ILcdBounds.
-
createText
Description copied from interface:ILcdSVGShapeFactoryCreates anILcdTextform givenAttributes.- Specified by:
createTextin interfaceILcdSVGShapeFactory- Parameters:
aAttributes- theAttributescontaining the info to create the object.- Returns:
- the created
ILcdText.
-
createEmptyShapeList
Description copied from interface:ILcdSVGShapeFactoryCreates an emptyILcdShapeListform givenAttributes.- Specified by:
createEmptyShapeListin interfaceILcdSVGShapeFactory- Parameters:
aAttributes- theAttributescontaining the info to create the object.- Returns:
- the created
ILcdShapeList.
-
createShapeList
Description copied from interface:ILcdSVGShapeFactoryCreates anILcdShapeListbased on an existingILcdShapeListand anArrayofILcdShape.- Specified by:
createShapeListin interfaceILcdSVGShapeFactory- Parameters:
aShapeList- theILcdShapeList.aShapeArray- theArrayofILcdShapeto fill the object.- Returns:
- the created
ILcdShapeList.
-
createPoint
Description copied from interface:ILcdSVGShapeFactoryCreates aILcdPointform givenAttributes. This is a non - true - svg object!- Specified by:
createPointin interfaceILcdSVGShapeFactory- Parameters:
aAttributes- theAttributescontaining the info to create the object.- Returns:
- the created
ILcdPoint.
-
createEllipse
Description copied from interface:ILcdSVGShapeFactoryCreates aILcdEllipseform givenAttributes. This is a non - true - svg object!- Specified by:
createEllipsein interfaceILcdSVGShapeFactory- Parameters:
aAttributes- theAttributescontaining the info to create the object.- Returns:
- the created
ILcdEllipse.
-
createArcBand
Description copied from interface:ILcdSVGShapeFactoryCreates aILcdArcBandform givenAttributes. This is a non - true - svg object !- Specified by:
createArcBandin interfaceILcdSVGShapeFactory- Parameters:
aAttributes- theAttributescontaining the info to create the object.- Returns:
- the created
ILcdArcBand.
-