UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.lib.satin.graphics
Class GraphicsLowestQuality

java.lang.Object
  |
  +--java.awt.Graphics
        |
        +--java.awt.Graphics2D
              |
              +--edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality
                    |
                    +--edu.berkeley.guir.lib.satin.graphics.GraphicsMediumQuality
                          |
                          +--edu.berkeley.guir.lib.satin.graphics.GraphicsLowQuality
                                |
                                +--edu.berkeley.guir.lib.satin.graphics.GraphicsLowestQuality

public class GraphicsLowestQuality
extends GraphicsLowQuality

Render lowest quality images.

This software is distributed under the Berkeley Software License.

 Revisions:  - SATIN-v1.0-1.0.0, Aug 19 1999, JH
               Created class
             - SATIN-v2.1-1.0.0, Aug 11 2000, JH
               Touched for SATIN release
 

Since:
JDK 1.2
Version:
SATIN-v2.1-1.0.0, Aug 11 2000
Author:
Jason Hong ( jasonh@cs.berkeley.edu )

Fields inherited from class edu.berkeley.guir.lib.satin.graphics.GraphicsMediumQuality
g, hints
 
Constructor Summary
GraphicsLowestQuality()
           
 
Method Summary
 void draw(Shape s)
          Does polygon simplification on Polygon2D.
 void draw3DRect(int x, int y, int width, int height, boolean raised)
           
 void drawBytes(byte[] data, int offset, int length, int x, int y)
           
 void drawChars(char[] data, int offset, int length, int x, int y)
           
 void drawGlyphVector(GlyphVector gv, float x, float y)
           
 void drawImage(BufferedImage img, BufferedImageOp op, int x, int y)
          Draw outline of image.
 boolean drawImage(Image img, AffineTransform xform, ImageObserver obs)
          Draw outline of image.
 boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)
          Draw outline of image.
 boolean drawImage(Image img, int x, int y, ImageObserver observer)
          Only draws bounds, no fill.
 boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)
          Draw outline of image.
 boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)
          Draw outline of image.
 boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)
          Draw outline of image.
 boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)
          Draw outline of image.
 void drawRenderableImage(RenderableImage img, AffineTransform xform)
           
 void drawRenderedImage(RenderedImage img, AffineTransform xform)
           
 void drawString(AttributedCharacterIterator iterator, float x, float y)
           
 void drawString(AttributedCharacterIterator iterator, int x, int y)
           
 void drawString(String s, float x, float y)
           
 void drawString(String str, int x, int y)
           
 void fill(Shape s)
          Draw outline of shape, no fill.
 void fill3DRect(int x, int y, int width, int height, boolean raised)
          Draw outline of image.
 void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
          Only draws bounds, no fill.
 void fillOval(int x, int y, int width, int height)
          Only draws bounds, no fill.
 void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
          Only draws bounding box, no polygon, no fill.
 void fillPolygon(Polygon p)
          Only draws bounding box, no polygon, no fill.
 void fillRect(int x, int y, int width, int height)
          Only draws bounds, no fill.
 void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
          Only draws bounds, no fill.
 
Methods inherited from class edu.berkeley.guir.lib.satin.graphics.GraphicsLowQuality
drawPolygon, drawPolygon, drawPolyline
 
Methods inherited from class edu.berkeley.guir.lib.satin.graphics.GraphicsMediumQuality
addRenderingHints, clearRect, clip, clipRect, copyArea, create, create, dispose, drawArc, drawLine, drawOval, drawRect, drawRoundRect, finalize, getBackground, getClip, getClipBounds, getClipBounds, getClipRect, getColor, getComposite, getDeviceConfiguration, getFont, getFontMetrics, getFontMetrics, getFontRenderContext, getGraphics, getHints, getPaint, getRenderingHint, getRenderingHints, getStroke, getTransform, hit, hitClip, rotate, rotate, scale, setBackground, setClip, setClip, setColor, setComposite, setFont, setGraphics, setPaint, setPaintMode, setRenderingHint, setRenderingHints, setStroke, setTransform, setXORMode, shear, transform, translate, translate
 
Methods inherited from class java.awt.Graphics
toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GraphicsLowestQuality

public GraphicsLowestQuality()
Method Detail

fillRect

public void fillRect(int x,
                     int y,
                     int width,
                     int height)
Only draws bounds, no fill.
Overrides:
fillRect in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

fillRoundRect

public void fillRoundRect(int x,
                          int y,
                          int width,
                          int height,
                          int arcWidth,
                          int arcHeight)
Only draws bounds, no fill.
Overrides:
fillRoundRect in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

fillOval

public void fillOval(int x,
                     int y,
                     int width,
                     int height)
Only draws bounds, no fill.
Overrides:
fillOval in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

fillArc

public void fillArc(int x,
                    int y,
                    int width,
                    int height,
                    int startAngle,
                    int arcAngle)
Only draws bounds, no fill.
Overrides:
fillArc in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

fillPolygon

public void fillPolygon(int[] xPoints,
                        int[] yPoints,
                        int nPoints)
Only draws bounding box, no polygon, no fill.
Overrides:
fillPolygon in class GraphicsLowQuality

fillPolygon

public void fillPolygon(Polygon p)
Only draws bounding box, no polygon, no fill.
Overrides:
fillPolygon in class GraphicsLowQuality

drawString

public void drawString(String str,
                       int x,
                       int y)
Overrides:
drawString in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

drawChars

public void drawChars(char[] data,
                      int offset,
                      int length,
                      int x,
                      int y)
Overrides:
drawChars in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

drawBytes

public void drawBytes(byte[] data,
                      int offset,
                      int length,
                      int x,
                      int y)
Overrides:
drawBytes in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

drawImage

public boolean drawImage(Image img,
                         int x,
                         int y,
                         ImageObserver observer)
Only draws bounds, no fill.
Overrides:
drawImage in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

drawImage

public boolean drawImage(Image img,
                         int x,
                         int y,
                         int width,
                         int height,
                         ImageObserver observer)
Draw outline of image.
Overrides:
drawImage in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

drawImage

public boolean drawImage(Image img,
                         int x,
                         int y,
                         Color bgcolor,
                         ImageObserver observer)
Draw outline of image.
Overrides:
drawImage in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

drawImage

public boolean drawImage(Image img,
                         int x,
                         int y,
                         int width,
                         int height,
                         Color bgcolor,
                         ImageObserver observer)
Draw outline of image.
Overrides:
drawImage in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

drawImage

public boolean drawImage(Image img,
                         int dx1,
                         int dy1,
                         int dx2,
                         int dy2,
                         int sx1,
                         int sy1,
                         int sx2,
                         int sy2,
                         ImageObserver observer)
Draw outline of image.
Overrides:
drawImage in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

drawImage

public boolean drawImage(Image img,
                         int dx1,
                         int dy1,
                         int dx2,
                         int dy2,
                         int sx1,
                         int sy1,
                         int sx2,
                         int sy2,
                         Color bgcolor,
                         ImageObserver observer)
Draw outline of image.
Overrides:
drawImage in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

draw

public void draw(Shape s)
Description copied from class: GraphicsLowQuality
Does polygon simplification on Polygon2D. Otherwise just normal.
Overrides:
draw in class GraphicsLowQuality

draw3DRect

public void draw3DRect(int x,
                       int y,
                       int width,
                       int height,
                       boolean raised)
Overrides:
draw3DRect in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

drawGlyphVector

public void drawGlyphVector(GlyphVector gv,
                            float x,
                            float y)
Overrides:
drawGlyphVector in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

fill3DRect

public void fill3DRect(int x,
                       int y,
                       int width,
                       int height,
                       boolean raised)
Draw outline of image.
Overrides:
fill3DRect in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

drawImage

public boolean drawImage(Image img,
                         AffineTransform xform,
                         ImageObserver obs)
Draw outline of image.
Overrides:
drawImage in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

drawImage

public void drawImage(BufferedImage img,
                      BufferedImageOp op,
                      int x,
                      int y)
Draw outline of image.
Overrides:
drawImage in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

drawRenderedImage

public void drawRenderedImage(RenderedImage img,
                              AffineTransform xform)
Overrides:
drawRenderedImage in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

drawRenderableImage

public void drawRenderableImage(RenderableImage img,
                                AffineTransform xform)
Overrides:
drawRenderableImage in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

drawString

public void drawString(String s,
                       float x,
                       float y)
Overrides:
drawString in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

drawString

public void drawString(AttributedCharacterIterator iterator,
                       int x,
                       int y)
Overrides:
drawString in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

drawString

public void drawString(AttributedCharacterIterator iterator,
                       float x,
                       float y)
Overrides:
drawString in class edu.berkeley.guir.lib.satin.graphics.GraphicsXQuality

fill

public void fill(Shape s)
Draw outline of shape, no fill.
Overrides:
fill in class GraphicsLowQuality

Copyright Information