All Packages Class Hierarchy This Package Previous Next Index
public class netscape.application.Graphics
extends java.lang.Object
{
/* Fields
*/
public final static int CENTERED;
public final static int LEFT_JUSTIFIED;
public final static int RIGHT_JUSTIFIED;
/* Constructors
*/
public Graphics(View);
public Graphics(Bitmap);
/* Methods
*/
public Bitmap buffer();
public void clearClipRect();
public Rect clipRect();
public Color color();
public int debugOptions();
public void dispose();
public void drawArc(Rect, int, int);
public void drawArc(int, int, int, int, int, int);
public void drawBitmapAt(Bitmap, int, int);
public void drawBitmapScaled(Bitmap, int, int, int, int);
public void drawBytes(byte[], int, int, int, int);
public void drawChars(char[], int, int, int, int);
public void drawLine(int, int, int, int);
public void drawOval(Rect);
public void drawOval(int, int, int, int);
public void drawPoint(int, int);
public void drawPolygon(int[], int[], int);
public void drawPolygon(Polygon);
public void drawRect(Rect);
public void drawRect(int, int, int, int);
public void drawRoundedRect(Rect, int, int);
public void drawRoundedRect(int, int, int, int, int, int);
public void drawString(String, int, int);
public void drawStringInRect(String, int, int, int, int, int);
public void drawStringInRect(String, Rect, int);
public void fillArc(Rect, int, int);
public void fillArc(int, int, int, int, int, int);
public void fillOval(Rect);
public void fillOval(int, int, int, int);
public void fillPolygon(int[], int[], int);
public void fillPolygon(Polygon);
public void fillRect(Rect);
public void fillRect(int, int, int, int);
public void fillRoundedRect(Rect, int, int);
public void fillRoundedRect(int, int, int, int, int, int);
public Font font();
public boolean isDrawingBuffer();
public void popState();
public void pushState();
public void setClipRect(Rect, boolean);
public void setClipRect(Rect);
public void setColor(Color);
public void setDebugOptions(int);
public void setFont(Font);
public void setPaintMode();
public void setXORMode(Color);
public void sync();
public String toString();
public void translate(int, int);
public Point translation();
public int xTranslation();
public int yTranslation();
}
Object subclass representing a drawing context, either onscreen or
offscreen. Onscreen Graphics are created either for the Applet frame
or ExternalWindows by passing a RootView to the constructor.
Offscreen Graphics are created for Bitmaps, by passing the Bitmap to
the constructor. Graphics maintain a stack of graphics states,
manipulated by the pushState() and popState() methods. When a
state is popped, the graphics state reverts to whatever it was before
the most recent push (i.e. color, font, clip rectangle, etc).You typically never construct Graphics instances directly, rather you work with them inside of View drawView() methods to draw to the screen.
public final static int LEFT_JUSTIFIED
public final static int CENTERED
public final static int RIGHT_JUSTIFIED
public Graphics(View view)
public Graphics(Bitmap aBitmap)
public void pushState()
public void popState()
public void setFont(Font aFont)
public Font font()
public void setColor(Color aColor)
public Color color()
public void translate(int x,
int y)
public int xTranslation()
public int yTranslation()
public Point translation()
public void setClipRect(Rect rect,
boolean intersect)
public void setClipRect(Rect rect)
public Rect clipRect()
public void clearClipRect()
public Bitmap buffer()
public boolean isDrawingBuffer()
public void dispose()
public void sync()
public void setPaintMode()
public void setXORMode(Color aColor)
public void drawRect(Rect aRect)
public void drawRect(int x,
int y,
int width,
int height)
public void fillRect(Rect aRect)
public void fillRect(int x,
int y,
int width,
int height)
public void drawRoundedRect(Rect aRect,
int arcWidth,
int arcHeight)
public void drawRoundedRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
public void fillRoundedRect(Rect aRect,
int arcWidth,
int arcHeight)
public void fillRoundedRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
public void drawLine(int x1,
int y1,
int x2,
int y2)
public void drawPoint(int x,
int y)
public void drawOval(Rect aRect)
public void drawOval(int x,
int y,
int width,
int height)
public void fillOval(Rect aRect)
public void fillOval(int x,
int y,
int width,
int height)
public void drawArc(Rect aRect,
int startAngle,
int arcAngle)
public void drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
public void fillArc(Rect aRect,
int startAngle,
int arcAngle)
public void fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
public void drawPolygon(int xPoints[],
int yPoints[],
int nPoints)
public void drawPolygon(Polygon polygon)
public void fillPolygon(int xPoints[],
int yPoints[],
int nPoints)
public void fillPolygon(Polygon polygon)
public void drawBitmapAt(Bitmap bitmap,
int x,
int y)
public void drawBitmapScaled(Bitmap bitmap,
int x,
int y,
int width,
int height)
public void drawStringInRect(String aString,
int x,
int y,
int width,
int height,
int justification)
public void drawStringInRect(String aString,
Rect aRect,
int justification)
public void drawString(String aString,
int x,
int y)
public void drawBytes(byte data[],
int offset,
int length,
int x,
int y)
public void drawChars(char data[],
int offset,
int length,
int x,
int y)
public String toString()
public void setDebugOptions(int debugOptions)
public int debugOptions()
All Packages Class Hierarchy This Package Previous Next Index