fr.orsay.lri.varna.models.export
Class SecStrProducerGraphics

java.lang.Object
  extended by fr.orsay.lri.varna.models.export.SecStrProducerGraphics
All Implemented Interfaces:
VueVARNAGraphics

public class SecStrProducerGraphics
extends Object
implements VueVARNAGraphics


Field Summary
(package private)  Color _color
           
(package private)  SecStrDrawingProducer _ss
           
(package private)  double _thickness
           
 
Constructor Summary
SecStrProducerGraphics(SecStrDrawingProducer ss)
           
 
Method Summary
 void draw(GeneralPath s)
           
 void drawArc(double x, double y, double rx, double ry, double angleStart, double angleEnd)
           
 void drawCircle(double x, double y, double r)
           
 void drawLine(double x1, double y1, double x2, double y2)
           
 void drawRect(double x, double y, double w, double h)
           
 void drawRoundRect(double x, double y, double w, double h, double rx, double ry)
           
 void drawStringCentered(String res, double x, double y)
           
 void fill(GeneralPath s)
           
 void fillCircle(double x, double y, double r)
           
 void fillRect(double x, double y, double w, double h)
           
 void fillRoundRect(double x, double y, double w, double h, double rx, double ry)
           
 Color getColor()
           
 Dimension getStringDimension(String s)
           
 void saveToDisk(String path)
           
 void setColor(Color c)
           
 void setDashedStroke()
           
 void setFont(Font f)
           
 void setPlainStroke()
           
 void setStrokeThickness(double t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_ss

SecStrDrawingProducer _ss

_thickness

double _thickness

_color

Color _color
Constructor Detail

SecStrProducerGraphics

public SecStrProducerGraphics(SecStrDrawingProducer ss)
Method Detail

draw

public void draw(GeneralPath s)
Specified by:
draw in interface VueVARNAGraphics

drawArc

public void drawArc(double x,
                    double y,
                    double rx,
                    double ry,
                    double angleStart,
                    double angleEnd)
Specified by:
drawArc in interface VueVARNAGraphics

drawLine

public void drawLine(double x1,
                     double y1,
                     double x2,
                     double y2)
Specified by:
drawLine in interface VueVARNAGraphics

drawCircle

public void drawCircle(double x,
                       double y,
                       double r)
Specified by:
drawCircle in interface VueVARNAGraphics

drawRect

public void drawRect(double x,
                     double y,
                     double w,
                     double h)
Specified by:
drawRect in interface VueVARNAGraphics

drawRoundRect

public void drawRoundRect(double x,
                          double y,
                          double w,
                          double h,
                          double rx,
                          double ry)
Specified by:
drawRoundRect in interface VueVARNAGraphics

drawStringCentered

public void drawStringCentered(String res,
                               double x,
                               double y)
Specified by:
drawStringCentered in interface VueVARNAGraphics

fill

public void fill(GeneralPath s)
Specified by:
fill in interface VueVARNAGraphics

fillCircle

public void fillCircle(double x,
                       double y,
                       double r)
Specified by:
fillCircle in interface VueVARNAGraphics

fillRect

public void fillRect(double x,
                     double y,
                     double w,
                     double h)
Specified by:
fillRect in interface VueVARNAGraphics

fillRoundRect

public void fillRoundRect(double x,
                          double y,
                          double w,
                          double h,
                          double rx,
                          double ry)
Specified by:
fillRoundRect in interface VueVARNAGraphics

getColor

public Color getColor()
Specified by:
getColor in interface VueVARNAGraphics

getStringDimension

public Dimension getStringDimension(String s)
Specified by:
getStringDimension in interface VueVARNAGraphics

setColor

public void setColor(Color c)
Specified by:
setColor in interface VueVARNAGraphics

setDashedStroke

public void setDashedStroke()
Specified by:
setDashedStroke in interface VueVARNAGraphics

setFont

public void setFont(Font f)
Specified by:
setFont in interface VueVARNAGraphics

setPlainStroke

public void setPlainStroke()
Specified by:
setPlainStroke in interface VueVARNAGraphics

setStrokeThickness

public void setStrokeThickness(double t)
Specified by:
setStrokeThickness in interface VueVARNAGraphics

saveToDisk

public void saveToDisk(String path)
                throws fr.orsay.lri.varna.exceptions.ExceptionWritingForbidden
Throws:
fr.orsay.lri.varna.exceptions.ExceptionWritingForbidden