source: trunk/gcc/libjava/gnu/awt/j2d/DirectRasterGraphics.java

Last change on this file was 1392, checked in by bird, 21 years ago

This commit was generated by cvs2svn to compensate for changes in r1391,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.3 KB
Line 
1/* Copyright (C) 2000, 2003 Free Software Foundation
2
3 This file is part of libgcj.
4
5This software is copyrighted work licensed under the terms of the
6Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
7details. */
8
9package gnu.awt.j2d;
10
11import java.awt.Color;
12import java.awt.Image;
13import java.awt.Shape;
14import java.awt.Rectangle;
15import java.awt.Graphics;
16import java.awt.Graphics2D;
17import java.awt.GraphicsConfiguration;
18import java.awt.Font;
19import java.awt.FontMetrics;
20import java.awt.image.Raster;
21import java.awt.image.ImageObserver;
22
23/**
24 * Interface for a simple pixel based backend graphics object that
25 * does not handle translation/transforms, curves, nor advanced
26 * compositing.
27 */
28public interface DirectRasterGraphics extends Cloneable
29{
30 public void dispose();
31
32 public void setColor(Color color);
33
34 public void setPaintMode();
35
36 public void setXORMode(Color altColor);
37
38 public void setFont(Font font);
39
40 public FontMetrics getFontMetrics(Font font);
41
42 // supports rects, multi-rects and polygons
43 public void setClip(Shape clip);
44
45 public void copyArea(int x, int y, int width, int height,
46 int dx, int dy);
47
48 public void drawLine(int x1, int y1, int x2, int y2);
49
50 public void drawRect(int x, int y, int width, int height);
51
52 public void fillRect(int x, int y, int width, int height);
53
54 public void drawArc(int x, int y, int width, int height,
55 int startAngle, int arcAngle);
56
57 public void fillArc(int x, int y, int width, int height,
58 int startAngle, int arcAngle);
59
60 public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints);
61
62 public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints);
63
64 public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints,
65 int translateX, int translateY);
66
67 public void drawString(String str, int x, int y);
68
69 public boolean drawImage(Image image, int x, int y,
70 ImageObserver observer);
71
72 /**
73 * Map the data for screen pixels in the requested bounds to a
74 * raster object. This gives read/write access to the screen
75 * pixels, allowing neat alpha and composite tricks.
76 */
77 public MappedRaster mapRaster(Rectangle bounds);
78
79 /**
80 * Detach previously mapped pixel data from a raster object.
81 */
82 public void unmapRaster(MappedRaster mappedRaster);
83
84 public Object clone();
85}
Note: See TracBrowser for help on using the repository browser.