public class TLcdSVGUnStyledShapeWriter extends ALcdSVGShapeWriter
ILcdSVGShapeWriter
to write a ILcdShape
down without extra properties like color, line-width, etc...
This class can be set to the TLcdSVGModelEncoder
TLcdSVGModelEncoder
.Constructor and Description |
---|
TLcdSVGUnStyledShapeWriter() |
Modifier and Type | Method and Description |
---|---|
protected String |
createTextStyleAttribute(ILcdText aText)
Creates the style attribute for a text element from a
ILcd2DEditableText . |
protected String |
createTextTransformAttribute(ILcdText aText)
Creates a rotation attribute.
|
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.
|
protected void |
writeArcBand(ILcdArcBand aArcBand,
Writer aTarget)
Appends an
ILcdArcBand to a StringBuffer . |
protected void |
writeArcBandProperties(ILcdArcBand aArcBand,
Writer aTarget)
Writes the properties specific to an arcband:
center (x,y)
minimum radius
maximum radius
start angle
end angle
.
|
protected void |
writeBounds(ILcdBounds aBounds,
Writer aTarget)
Appends an
ILcdBounds to a StringBuffer . |
protected void |
writeBoundsProperties(ILcdBounds aBounds,
Writer aTarget)
Writes properties specific to a bounds (rectangle) object:
the coordinates of the bottom left point (x,y)
the width
the height
.
|
protected void |
writeCircle(ILcdCircle aCircle,
Writer aTarget)
Appends an
ILcdCircle to a StringBuffer . |
protected void |
writeCircleProperties(ILcdCircle aCircle,
Writer aTarget)
Writes properties specific to a circle object:
the position of the center point (x,y)
the radius
.
|
protected void |
writeEllipse(ILcdEllipse aEllipse,
Writer aTarget)
Appends an
ILcdEllipse to a StringBuffer . |
protected void |
writeEllipseProperties(ILcdEllipse aEllipse,
Writer aTarget)
Writes properties specific to an ellipse:
center (x,y)
short axis
long axis
.
|
protected void |
writePoint(ILcdPoint aPoint,
Writer aTarget)
Appends an
ILcdPoint to a StringBuffer . |
protected void |
writePointProperties(ILcdPoint aPoint,
Writer aTarget)
Writes properties specific to a point object:
the position (x,y)
.
|
protected void |
writePolygon(ILcdPolygon aPolygon,
Writer aTarget)
Appends an
ILcdPolygon to a StringBuffer . |
protected void |
writePolygonProperties(ILcdPolygon aPolygon,
Writer aTarget)
Writes properties specific to a polygon object:
the position of the points (x,y): x1,y1,x2,y2,x3,y3,
.
|
protected void |
writePolyline(ILcdPolyline aPolyline,
Writer aTarget)
Appends an
ILcdPolyline to a StringBuffer . |
protected void |
writePolylineProperties(ILcdPolyline aPolyline,
Writer aTarget)
Writes properties specific to a polyline object:
the position of the points (x,y): x1,y1,x2,y2,x3,y3,
.
|
protected void |
writeShapeList(ILcdShapeList aShapeList,
Writer aTarget)
Appends an
ILcdShapeList to a StringBuffer . |
protected void |
writeText(ILcdText aText,
Writer aTarget)
Appends an
ILcdText to a StringBuffer . |
protected void |
writeTextProperties(ILcdText aText,
Writer aTarget)
Writes properties specific to a text object:
the position of the text (x,y)
the angle of the text
.
|
protected void |
writeUnknownShape(ILcdShape aShape,
Writer aTarget)
This implementation does nothing.
|
isTrueSVG, setTrueSVG, writeElement, writeProperty, writeProperty, writeProperty
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.protected void writeCircle(ILcdCircle aCircle, Writer aTarget) throws IOException
ALcdSVGShapeWriter
ILcdCircle
to a StringBuffer
.writeCircle
in class ALcdSVGShapeWriter
aCircle
- the ILcdCircle element
aTarget
- the StringBuffer
IOException
- when output to aTarget fails.protected void writeCircleProperties(ILcdCircle aCircle, Writer aTarget) throws IOException
aCircle
- the circle to write the properties of.aTarget
- the output sink.IOException
- when the output fails.protected void writePolyline(ILcdPolyline aPolyline, Writer aTarget) throws IOException
ALcdSVGShapeWriter
ILcdPolyline
to a StringBuffer
.writePolyline
in class ALcdSVGShapeWriter
aPolyline
- the ILcdPolyline
aTarget
- the StringBuffer
IOException
- when output to aTarget fails.protected void writePolylineProperties(ILcdPolyline aPolyline, Writer aTarget) throws IOException
aPolyline
- the polygon for which to write the properties.aTarget
- the output sink.IOException
- when the output fails.protected void writePolygon(ILcdPolygon aPolygon, Writer aTarget) throws IOException
ALcdSVGShapeWriter
ILcdPolygon
to a StringBuffer
.writePolygon
in class ALcdSVGShapeWriter
aPolygon
- the ILcdPolygon
aTarget
- the StringBuffer
IOException
- when output to aTarget fails.protected void writePolygonProperties(ILcdPolygon aPolygon, Writer aTarget) throws IOException
aPolygon
- the polygon for which to write the properties.aTarget
- the output sink.IOException
- when the output fails.protected void writeBounds(ILcdBounds aBounds, Writer aTarget) throws IOException
ALcdSVGShapeWriter
ILcdBounds
to a StringBuffer
.writeBounds
in class ALcdSVGShapeWriter
aBounds
- the ILcdBounds
aTarget
- the StringBuffer
IOException
- when output to aTarget fails.protected void writeUnknownShape(ILcdShape aShape, Writer aTarget) throws IOException
writeUnknownShape
in class ALcdSVGShapeWriter
aShape
- a shape that is not part of the set of exported shapes (see ALcdSVGShapeWriter.writeElement(java.lang.Object, java.io.Writer)
.aTarget
- the writer to write to.IOException
- when an I/O error occurred writing this shape. Never in this implementation.protected void writeBoundsProperties(ILcdBounds aBounds, Writer aTarget) throws IOException
aBounds
- the bounds to write the properties of.aTarget
- the output sink.IOException
- when the output fails.protected void writeText(ILcdText aText, Writer aTarget) throws IOException
ALcdSVGShapeWriter
ILcdText
to a StringBuffer
.writeText
in class ALcdSVGShapeWriter
aText
- the ILcdText
aTarget
- the StringBuffer
IOException
- when output to aTarget fails.protected void writeTextProperties(ILcdText aText, Writer aTarget) throws IOException
aText
- the text to write the properties of.aTarget
- the output sink.IOException
- when the output fails.protected void writeShapeList(ILcdShapeList aShapeList, Writer aTarget) throws IOException
ALcdSVGShapeWriter
ILcdShapeList
to a StringBuffer
.writeShapeList
in class ALcdSVGShapeWriter
aShapeList
- the ILcdShapeList
aTarget
- the StringBuffer
IOException
- when output to aTarget fails.protected void writePoint(ILcdPoint aPoint, Writer aTarget) throws IOException
ALcdSVGShapeWriter
ILcdPoint
to a StringBuffer
.
Warning: not a true svg tag shape !writePoint
in class ALcdSVGShapeWriter
aPoint
- the ILcdPoint
aTarget
- the StringBuffer
IOException
- when output to aTarget fails.protected void writePointProperties(ILcdPoint aPoint, Writer aTarget) throws IOException
aPoint
- the point for which the properties are to be written.aTarget
- the output sink.IOException
- when the output fails.protected void writeArcBand(ILcdArcBand aArcBand, Writer aTarget) throws IOException
ALcdSVGShapeWriter
ILcdArcBand
to a StringBuffer
.
Warning: not a true svg tag shape !writeArcBand
in class ALcdSVGShapeWriter
aArcBand
- the ILcdArcBand
aTarget
- the StringBuffer
IOException
- when output to aTarget fails.protected void writeArcBandProperties(ILcdArcBand aArcBand, Writer aTarget) throws IOException
aArcBand
- the arcband whose properties to write.aTarget
- the output sink.IOException
- when the output fails.protected void writeEllipse(ILcdEllipse aEllipse, Writer aTarget) throws IOException
ALcdSVGShapeWriter
ILcdEllipse
to a StringBuffer
.
Warning: not a true svg tag shape !writeEllipse
in class ALcdSVGShapeWriter
aEllipse
- the ILcdEllipse
aTarget
- the StringBuffer
IOException
- when output to aTarget fails.protected void writeEllipseProperties(ILcdEllipse aEllipse, Writer aTarget) throws IOException
aEllipse
- the Ellipse to write the properties of.aTarget
- the output sink.IOException
- when the output fails.protected String createTextStyleAttribute(ILcdText aText)
ILcd2DEditableText
. Properties encoded are:
aText
- ILcd2DEditableText
to create the
style String
for.