jas.plot
Interface PlotGraphics

All Known Subinterfaces:
SetablePlotGraphics

public interface PlotGraphics

This interface serves two purposes:

  1. To provide an abstract interface which can be used to drive either a JDK1.1 Graphics class, or a JDK1.2 Graphics2D class.
  2. To provide an mechanism to allow drawing of graphics objects in plot coordinate space.


Field Summary
static int SYMBOL_BOX
           
static int SYMBOL_CIRCLE
           
static int SYMBOL_CROSS
           
static int SYMBOL_DIAMOND
           
static int SYMBOL_DOT
           
static int SYMBOL_HORIZ_LINE
           
static int SYMBOL_SQUARE
           
static int SYMBOL_STAR
           
static int SYMBOL_TRIANGLE
           
static int SYMBOL_VERT_LINE
           
 
Method Summary
 void clearClip()
           
 void clearTransformation()
           
 void drawImage(java.awt.Image image, double x, double y, java.awt.image.ImageObserver observer)
           
 void drawImage(java.awt.Image image, double x, double y, int width, int height, java.awt.image.ImageObserver observer)
           
 void drawLine(double x1, double y1, double x2, double y2)
           
 void drawOval(double x, double y, double width, double height)
           
 void drawPolyLine(double[] x, double[] y, int n)
           
 void drawPolySymbol(double[] x, double[] y, double size, int type, int n)
           
 void drawRect(double x1, double y1, double x2, double y2)
           
 void drawString(java.lang.String s, double x, double y)
           
 void drawSymbol(double x, double y, double size, int type)
           
 void fillRect(double x1, double y1, double x2, double y2)
           
 java.awt.Font getFont()
           
 java.awt.FontMetrics getFontMetrics()
           
 void setClip(int xmin, int xmax, int ymin, int ymax)
           
 void setColor(java.awt.Color c)
           
 void setFont(java.awt.Font f)
           
 void setTransformation(Transformation x, Transformation y)
           
 

Field Detail

SYMBOL_DOT

public static final int SYMBOL_DOT

SYMBOL_BOX

public static final int SYMBOL_BOX

SYMBOL_TRIANGLE

public static final int SYMBOL_TRIANGLE

SYMBOL_DIAMOND

public static final int SYMBOL_DIAMOND

SYMBOL_STAR

public static final int SYMBOL_STAR

SYMBOL_VERT_LINE

public static final int SYMBOL_VERT_LINE

SYMBOL_HORIZ_LINE

public static final int SYMBOL_HORIZ_LINE

SYMBOL_CROSS

public static final int SYMBOL_CROSS

SYMBOL_CIRCLE

public static final int SYMBOL_CIRCLE

SYMBOL_SQUARE

public static final int SYMBOL_SQUARE
Method Detail

setColor

public void setColor(java.awt.Color c)

drawLine

public void drawLine(double x1,
                     double y1,
                     double x2,
                     double y2)

fillRect

public void fillRect(double x1,
                     double y1,
                     double x2,
                     double y2)

drawRect

public void drawRect(double x1,
                     double y1,
                     double x2,
                     double y2)

drawString

public void drawString(java.lang.String s,
                       double x,
                       double y)

drawPolyLine

public void drawPolyLine(double[] x,
                         double[] y,
                         int n)

drawOval

public void drawOval(double x,
                     double y,
                     double width,
                     double height)

drawSymbol

public void drawSymbol(double x,
                       double y,
                       double size,
                       int type)

drawPolySymbol

public void drawPolySymbol(double[] x,
                           double[] y,
                           double size,
                           int type,
                           int n)

drawImage

public void drawImage(java.awt.Image image,
                      double x,
                      double y,
                      java.awt.image.ImageObserver observer)

drawImage

public void drawImage(java.awt.Image image,
                      double x,
                      double y,
                      int width,
                      int height,
                      java.awt.image.ImageObserver observer)

getFontMetrics

public java.awt.FontMetrics getFontMetrics()

setFont

public void setFont(java.awt.Font f)

getFont

public java.awt.Font getFont()

setTransformation

public void setTransformation(Transformation x,
                              Transformation y)

clearTransformation

public void clearTransformation()

setClip

public void setClip(int xmin,
                    int xmax,
                    int ymin,
                    int ymax)

clearClip

public void clearClip()