fr.orsay.lri.varna.models.export
Class XFIGExport
java.lang.Object
fr.orsay.lri.varna.models.export.SecStrDrawingProducer
fr.orsay.lri.varna.models.export.XFIGExport
public class XFIGExport
- extends SecStrDrawingProducer
Fields inherited from class fr.orsay.lri.varna.models.export.SecStrDrawingProducer |
_backgroundColor, _curColor, _fontsize, FONT_COURIER, FONT_COURIER_BOLD, FONT_COURIER_BOLD_OBLIQUE, FONT_COURIER_OBLIQUE, FONT_HELVETICA, FONT_HELVETICA_BOLD, FONT_HELVETICA_BOLD_OBLIQUE, FONT_HELVETICA_OBLIQUE, FONT_TIMES_BOLD, FONT_TIMES_BOLD_ITALIC, FONT_TIMES_ITALIC, FONT_TIMES_ROMAN |
Method Summary |
String |
drawArcS(Point2D.Double origine,
double width,
double height,
double startAngle,
double endAngle)
|
String |
drawCircleS(Point2D.Double p,
double radius,
double thickness)
|
String |
drawLineS(Point2D.Double p0,
Point2D.Double p1,
double thickness)
|
String |
drawPolygonS(Point2D.Double[] points,
double thickness)
|
String |
drawRectangleS(Point2D.Double p,
Point2D.Double dims,
double thickness)
|
String |
drawTextS(Point2D.Double p,
String txt)
|
private String |
ensureColorDefinition(Color col)
|
String |
fillCircleS(Point2D.Double p,
double radius,
double thickness,
Color col)
|
String |
fillPolygonS(Point2D.Double[] points,
Color col)
|
String |
footerS()
|
private int |
getColorCode(Color col)
|
private int |
getCurColorCode()
|
String |
headerS(Rectangle2D.Double bb)
|
String |
setColorS(Color col)
|
String |
setFontS(int font,
double size)
|
private String |
XFIGHeader()
|
Methods inherited from class fr.orsay.lri.varna.models.export.SecStrDrawingProducer |
drawArc, drawCircle, drawLine, drawPolygon, drawPolygon, drawRectangle, drawText, export, fillCircle, fillPolygon, fillPolygon, fillRectangle, getBoundingBox, getCurFontSize, getCurrentColor, getCurrentFont, removeBackgroundColor, reset, setBackgroundColor, setColor, setFont, setScale |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_font
private int _font
buf
private StringBuffer buf
_definedCols
private Hashtable<Color,Integer> _definedCols
_nextColCode
private int _nextColCode
UPPER_BOUND_COLOR_CODE
private static final int UPPER_BOUND_COLOR_CODE
- See Also:
- Constant Field Values
XFIGExport
public XFIGExport()
ensureColorDefinition
private String ensureColorDefinition(Color col)
getColorCode
private int getColorCode(Color col)
getCurColorCode
private int getCurColorCode()
XFIGHeader
private String XFIGHeader()
drawCircleS
public String drawCircleS(Point2D.Double p,
double radius,
double thickness)
- Specified by:
drawCircleS
in class SecStrDrawingProducer
drawLineS
public String drawLineS(Point2D.Double p0,
Point2D.Double p1,
double thickness)
- Specified by:
drawLineS
in class SecStrDrawingProducer
drawRectangleS
public String drawRectangleS(Point2D.Double p,
Point2D.Double dims,
double thickness)
- Specified by:
drawRectangleS
in class SecStrDrawingProducer
drawTextS
public String drawTextS(Point2D.Double p,
String txt)
- Specified by:
drawTextS
in class SecStrDrawingProducer
fillCircleS
public String fillCircleS(Point2D.Double p,
double radius,
double thickness,
Color col)
- Specified by:
fillCircleS
in class SecStrDrawingProducer
setFontS
public String setFontS(int font,
double size)
- Specified by:
setFontS
in class SecStrDrawingProducer
setColorS
public String setColorS(Color col)
- Overrides:
setColorS
in class SecStrDrawingProducer
footerS
public String footerS()
- Specified by:
footerS
in class SecStrDrawingProducer
headerS
public String headerS(Rectangle2D.Double bb)
- Specified by:
headerS
in class SecStrDrawingProducer
drawArcS
public String drawArcS(Point2D.Double origine,
double width,
double height,
double startAngle,
double endAngle)
- Specified by:
drawArcS
in class SecStrDrawingProducer
drawPolygonS
public String drawPolygonS(Point2D.Double[] points,
double thickness)
- Specified by:
drawPolygonS
in class SecStrDrawingProducer
fillPolygonS
public String fillPolygonS(Point2D.Double[] points,
Color col)
- Specified by:
fillPolygonS
in class SecStrDrawingProducer