org.omegahat.Graphics.Devices
Interface OutputDevice

All Superinterfaces:
SimpleGraphicalContainerInt
All Known Subinterfaces:
GuiOutputDeviceInt
All Known Implementing Classes:
GuiOutputDevice

public interface OutputDevice
extends SimpleGraphicalContainerInt

The basic requirements for rendering graphics output.


Method Summary
 void addGraphicalObject(GraphicalComponentInt go)
           
 void drawIcon(javax.swing.Icon icon, double x, double y, double width, double height)
           
 void drawLines(double[] x, double[] y)
           
 void drawOval(double x, double y, double width, double height)
           
 void drawPolygon(double[] x, double[] y)
           
 void drawPolyline(double[] x, double[] y)
           
 void drawRectangle(double x, double y, double width, double height)
           
 void drawText(java.lang.String s, double x, double y, double rx, double ry, int fontSize, double angle)
           
 void fillOval(double x, double y, double width, double height)
           
 void fillRectangle(double x, double y, double width, double height)
           
 boolean popParameters(GraphicsParameters p)
           
 GraphicsParameters pushParameters(GraphicsParameters p)
           
 void repaint()
          Causes the contents of the entire device to be redrawn.
 boolean setParameters(GraphicsParameters p, GraphicsParameters diff)
           
 double stringHeight(java.lang.String s)
           
 double stringWidth(java.lang.String s)
           
 
Methods inherited from interface org.omegahat.Graphics.Primitives.SimpleGraphicalContainerInt
parent, parent
 

Method Detail

drawLines

public void drawLines(double[] x,
                      double[] y)

drawOval

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

fillOval

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

drawRectangle

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

fillRectangle

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

drawText

public void drawText(java.lang.String s,
                     double x,
                     double y,
                     double rx,
                     double ry,
                     int fontSize,
                     double angle)

drawPolygon

public void drawPolygon(double[] x,
                        double[] y)

drawPolyline

public void drawPolyline(double[] x,
                         double[] y)

drawIcon

public void drawIcon(javax.swing.Icon icon,
                     double x,
                     double y,
                     double width,
                     double height)

stringWidth

public double stringWidth(java.lang.String s)

stringHeight

public double stringHeight(java.lang.String s)

addGraphicalObject

public void addGraphicalObject(GraphicalComponentInt go)

pushParameters

public GraphicsParameters pushParameters(GraphicsParameters p)

popParameters

public boolean popParameters(GraphicsParameters p)

setParameters

public boolean setParameters(GraphicsParameters p,
                             GraphicsParameters diff)

repaint

public void repaint()
Causes the contents of the entire device to be redrawn.