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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ILcdArcBandcreateArcBand(double aX, double aY, double aMinradius, double aMaxradius, double aStartangle, double aEndangle) createArcBand(Attributes aAttributes) Creates aILcdArcBandform givenAttributes.protected ILcdBoundscreateBounds(ILcd2DEditablePoint aBottomLeftPoint, double aWidth, double aHeight) createBounds(Attributes aAttributes) Creates nILcdBoundsform givenAttributes.protected ILcdCirclecreateCircle(ILcd2DEditablePoint aCenterpoint, double aRadius) createCircle(Attributes aAttributes) Creates anILcdCircleform givenAttributes.protected ILcdEllipsecreateEllipse(double aCx, double aCy, double aRx, double aRy, double aRotation) 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.protected ILcd2DEditablePointcreatePoint(double aX, double aY) createPoint(Attributes aAttributes) Creates aILcdPointform givenAttributes.protected ILcdPolygoncreatePolygon(ILcd2DEditablePointList aPoints) createPolygon(Attributes aAttributes) Creates anILcdPolygonform givenAttributes.protected ILcdPolylinecreatePolyline(ILcd2DEditablePointList aPoints) createPolyline(Attributes aAttributes) Creates anILcdPolylineform givenAttributes.createShapeList(ILcdShapeList aShapeList, ILcdShape[] aShapeArray) Creates anILcdShapeListbased on an existingILcdShapeListand anArrayofILcdShape.protected ILcdTextcreateText(double aX, double aY, double aCharacterwidth, double aCharacterheight, int aHor_alignment, int aVert_alignment, double aRotation) 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.voidsetEllipsoid(ILcdEllipsoid aEllipsoid) Sets theILcdEllipsoidneeded to create the shapes.voidSets aStringas the text of anILcdText.voidsetUnknownShapeText(Object aObject, String aText) Sets aStringas text to the unknown shape.
-
Constructor Details
-
TLcdSVGUnStyledLonLatShapeFactory
public TLcdSVGUnStyledLonLatShapeFactory()
-
-
Method Details
-
setEllipsoid
Sets theILcdEllipsoidneeded to create the shapes.- Parameters:
aEllipsoid- theILcdEllipsoidneeded 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: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.
-