src/share/classes/sun/print/PeekGraphics.java
Print this page
rev 10048 : 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
Reviewed-by:
@@ -164,11 +164,11 @@
/**
* Creates a new <code>Graphics</code> object that is
* a copy of this <code>Graphics</code> object.
* @return a new graphics context that is a copy of
* this graphics context.
- * @since JDK1.0
+ * @since 1.0
*/
public Graphics create() {
PeekGraphics newGraphics = null;
try {
@@ -194,11 +194,11 @@
* original coordinate system. All coordinates used in subsequent
* rendering operations on this graphics context will be relative
* to this new origin.
* @param x the <i>x</i> coordinate.
* @param y the <i>y</i> coordinate.
- * @since JDK1.0
+ * @since 1.0
*/
public void translate(int x, int y) {
mGraphics.translate(x, y);
}
@@ -291,11 +291,11 @@
/**
* Gets this graphics context's current color.
* @return this graphics context's current color.
* @see java.awt.Color
* @see java.awt.Graphics#setColor
- * @since JDK1.0
+ * @since 1.0
*/
public Color getColor() {
return mGraphics.getColor();
}
@@ -304,11 +304,11 @@
* color. All subsequent graphics operations using this graphics
* context use this specified color.
* @param c the new rendering color.
* @see java.awt.Color
* @see java.awt.Graphics#getColor
- * @since JDK1.0
+ * @since 1.0
*/
public void setColor(Color c) {
mGraphics.setColor(c);
}
@@ -316,11 +316,11 @@
* Sets the paint mode of this graphics context to overwrite the
* destination with this graphics context's current color.
* This sets the logical pixel operation function to the paint or
* overwrite mode. All subsequent rendering operations will
* overwrite the destination with the current color.
- * @since JDK1.0
+ * @since 1.0
*/
public void setPaintMode() {
mGraphics.setPaintMode();
}
@@ -336,22 +336,22 @@
* <p>
* Pixels that are of colors other than those two colors are changed
* in an unpredictable but reversible manner; if the same figure is
* drawn twice, then all pixels are restored to their original values.
* @param c1 the XOR alternation color
- * @since JDK1.0
+ * @since 1.0
*/
public void setXORMode(Color c1) {
mGraphics.setXORMode(c1);
}
/**
* Gets the current font.
* @return this graphics context's current font.
* @see java.awt.Font
* @see java.awt.Graphics#setFont
- * @since JDK1.0
+ * @since 1.0
*/
public Font getFont() {
return mGraphics.getFont();
}
@@ -362,11 +362,11 @@
* @param font the font.
* @see java.awt.Graphics#getFont
* @see java.awt.Graphics#drawChars(java.lang.String, int, int)
* @see java.awt.Graphics#drawString(byte[], int, int, int, int)
* @see java.awt.Graphics#drawBytes(char[], int, int, int, int)
- * @since JDK1.0
+ * @since 1.0
*/
public void setFont(Font font) {
mGraphics.setFont(font);
}
@@ -375,11 +375,11 @@
* @return the font metrics for the specified font.
* @param f the specified font
* @see java.awt.Graphics#getFont
* @see java.awt.FontMetrics
* @see java.awt.Graphics#getFontMetrics()
- * @since JDK1.0
+ * @since 1.0
*/
public FontMetrics getFontMetrics(Font f) {
return mGraphics.getFontMetrics(f);
}
@@ -398,11 +398,11 @@
* @return the bounding rectangle of the current clipping area.
* @see java.awt.Graphics#getClip
* @see java.awt.Graphics#clipRect
* @see java.awt.Graphics#setClip(int, int, int, int)
* @see java.awt.Graphics#setClip(Shape)
- * @since JDK1.1
+ * @since 1.1
*/
public Rectangle getClipBounds() {
return mGraphics.getClipBounds();
}
@@ -434,11 +434,11 @@
* @param y the <i>y</i> coordinate of the new clip rectangle.
* @param width the width of the new clip rectangle.
* @param height the height of the new clip rectangle.
* @see java.awt.Graphics#clipRect
* @see java.awt.Graphics#setClip(Shape)
- * @since JDK1.1
+ * @since 1.1
*/
public void setClip(int x, int y, int width, int height) {
mGraphics.setClip(x, y, width, height);
}
@@ -448,11 +448,11 @@
* current clipping area.
* @see java.awt.Graphics#getClipBounds
* @see java.awt.Graphics#clipRect
* @see java.awt.Graphics#setClip(int, int, int, int)
* @see java.awt.Graphics#setClip(Shape)
- * @since JDK1.1
+ * @since 1.1
*/
public Shape getClip() {
return mGraphics.getClip();
}
@@ -466,11 +466,11 @@
* obtained via the <code>getClip</code> method and via
* <code>Rectangle</code> objects.
* @see java.awt.Graphics#getClip()
* @see java.awt.Graphics#clipRect
* @see java.awt.Graphics#setClip(int, int, int, int)
- * @since JDK1.1
+ * @since 1.1
*/
public void setClip(Shape clip) {
mGraphics.setClip(clip);
}
@@ -491,11 +491,11 @@
* @param y the <i>y</i> coordinate of the source rectangle.
* @param width the width of the source rectangle.
* @param height the height of the source rectangle.
* @param dx the horizontal distance to copy the pixels.
* @param dy the vertical distance to copy the pixels.
- * @since JDK1.0
+ * @since 1.0
*/
public void copyArea(int x, int y, int width, int height,
int dx, int dy) {
// This method is not supported for printing so we do nothing here.
}
@@ -506,11 +506,11 @@
* in this graphics context's coordinate system.
* @param x1 the first point's <i>x</i> coordinate.
* @param y1 the first point's <i>y</i> coordinate.
* @param x2 the second point's <i>x</i> coordinate.
* @param y2 the second point's <i>y</i> coordinate.
- * @since JDK1.0
+ * @since 1.0
*/
public void drawLine(int x1, int y1, int x2, int y2) {
addStrokeShape(new Line2D.Float(x1, y1, x2, y2));
mPrintMetrics.draw(this);
}
@@ -533,11 +533,11 @@
* of the rectangle to be filled.
* @param width the width of the rectangle to be filled.
* @param height the height of the rectangle to be filled.
* @see java.awt.Graphics#fillRect
* @see java.awt.Graphics#clearRect
- * @since JDK1.0
+ * @since 1.0
*/
public void fillRect(int x, int y, int width, int height) {
addDrawingRect(new Rectangle2D.Float(x, y, width, height));
mPrintMetrics.fill(this);
@@ -560,11 +560,11 @@
* @see java.awt.Graphics#fillRect(int, int, int, int)
* @see java.awt.Graphics#drawRect
* @see java.awt.Graphics#setColor(java.awt.Color)
* @see java.awt.Graphics#setPaintMode
* @see java.awt.Graphics#setXORMode(java.awt.Color)
- * @since JDK1.0
+ * @since 1.0
*/
public void clearRect(int x, int y, int width, int height) {
Rectangle2D.Float rect = new Rectangle2D.Float(x, y, width, height);
addDrawingRect(rect);
mPrintMetrics.clear(this);
@@ -583,11 +583,11 @@
* @param arcWidth the horizontal diameter of the arc
* at the four corners.
* @param arcHeight the vertical diameter of the arc
* at the four corners.
* @see java.awt.Graphics#fillRoundRect
- * @since JDK1.0
+ * @since 1.0
*/
public void drawRoundRect(int x, int y, int width, int height,
int arcWidth, int arcHeight) {
addStrokeShape(new RoundRectangle2D.Float(x, y, width, height, arcWidth, arcHeight));
mPrintMetrics.draw(this);
@@ -607,11 +607,11 @@
* @param arcWidth the horizontal diameter
* of the arc at the four corners.
* @param arcHeight the vertical diameter
* of the arc at the four corners.
* @see java.awt.Graphics#drawRoundRect
- * @since JDK1.0
+ * @since 1.0
*/
public void fillRoundRect(int x, int y, int width, int height,
int arcWidth, int arcHeight) {
Rectangle2D.Float rect = new Rectangle2D.Float(x, y,width, height);
addDrawingRect(rect);
@@ -632,11 +632,11 @@
* @param y the <i>y</i> coordinate of the upper left
* corner of the oval to be drawn.
* @param width the width of the oval to be drawn.
* @param height the height of the oval to be drawn.
* @see java.awt.Graphics#fillOval
- * @since JDK1.0
+ * @since 1.0
*/
public void drawOval(int x, int y, int width, int height) {
addStrokeShape(new Rectangle2D.Float(x, y, width, height));
mPrintMetrics.draw(this);
}
@@ -649,11 +649,11 @@
* @param y the <i>y</i> coordinate of the upper left corner
* of the oval to be filled.
* @param width the width of the oval to be filled.
* @param height the height of the oval to be filled.
* @see java.awt.Graphics#drawOval
- * @since JDK1.0
+ * @since 1.0
*/
public void fillOval(int x, int y, int width, int height) {
Rectangle2D.Float rect = new Rectangle2D.Float(x, y, width, height);
addDrawingRect(rect);
mPrintMetrics.fill(this);
@@ -687,11 +687,11 @@
* @param height the height of the arc to be drawn.
* @param startAngle the beginning angle.
* @param arcAngle the angular extent of the arc,
* relative to the start angle.
* @see java.awt.Graphics#fillArc
- * @since JDK1.0
+ * @since 1.0
*/
public void drawArc(int x, int y, int width, int height,
int startAngle, int arcAngle) {
addStrokeShape(new Rectangle2D.Float(x, y, width, height));
mPrintMetrics.draw(this);
@@ -723,11 +723,11 @@
* @param height the height of the arc to be filled.
* @param startAngle the beginning angle.
* @param arcAngle the angular extent of the arc,
* relative to the start angle.
* @see java.awt.Graphics#drawArc
- * @since JDK1.0
+ * @since 1.0
*/
public void fillArc(int x, int y, int width, int height,
int startAngle, int arcAngle) {
Rectangle2D.Float rect = new Rectangle2D.Float(x, y,width, height);
addDrawingRect(rect);
@@ -743,11 +743,11 @@
* differs from the last point.
* @param xPoints an array of <i>x</i> points
* @param yPoints an array of <i>y</i> points
* @param nPoints the total number of points
* @see java.awt.Graphics#drawPolygon(int[], int[], int)
- * @since JDK1.1
+ * @since 1.1
*/
public void drawPolyline(int xPoints[], int yPoints[],
int nPoints) {
if (nPoints > 0) {
int x = xPoints[0];
@@ -778,11 +778,11 @@
* @param xPoints a an array of <code>x</code> coordinates.
* @param yPoints a an array of <code>y</code> coordinates.
* @param nPoints a the total number of points.
* @see java.awt.Graphics#fillPolygon
* @see java.awt.Graphics#drawPolyline
- * @since JDK1.0
+ * @since 1.0
*/
public void drawPolygon(int xPoints[], int yPoints[],
int nPoints) {
if (nPoints > 0) {
drawPolyline(xPoints, yPoints, nPoints);
@@ -809,11 +809,11 @@
* even-odd fill rule, also known as the alternating rule.
* @param xPoints a an array of <code>x</code> coordinates.
* @param yPoints a an array of <code>y</code> coordinates.
* @param nPoints a the total number of points.
* @see java.awt.Graphics#drawPolygon(int[], int[], int)
- * @since JDK1.0
+ * @since 1.0
*/
public void fillPolygon(int xPoints[], int yPoints[],
int nPoints) {
if (nPoints > 0) {
int minX = xPoints[0];
@@ -852,11 +852,11 @@
* @param str the string to be drawn.
* @param x the <i>x</i> coordinate.
* @param y the <i>y</i> coordinate.
* @see java.awt.Graphics#drawBytes
* @see java.awt.Graphics#drawChars
- * @since JDK1.0
+ * @since 1.0
*/
public void drawString(String str, int x, int y) {
drawString(str, (float)x, (float)y);
}
@@ -940,11 +940,11 @@
* @param observer object to be notified as more of
* the image is converted.
* @see java.awt.Image
* @see java.awt.image.ImageObserver
* @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int)
- * @since JDK1.0
+ * @since 1.0
*/
public boolean drawImage(Image img, int x, int y,
ImageObserver observer) {
if (img == null) {
@@ -993,11 +993,11 @@
* @param observer object to be notified as more of
* the image is converted.
* @see java.awt.Image
* @see java.awt.image.ImageObserver
* @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int)
- * @since JDK1.0
+ * @since 1.0
*/
public boolean drawImage(Image img, int x, int y,
int width, int height,
ImageObserver observer) {
@@ -1038,11 +1038,11 @@
* @param observer object to be notified as more of
* the image is converted.
* @see java.awt.Image
* @see java.awt.image.ImageObserver
* @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int)
- * @since JDK1.0
+ * @since 1.0
*/
public boolean drawImage(Image img, int x, int y,
Color bgcolor,
ImageObserver observer) {
@@ -1097,11 +1097,11 @@
* @param observer object to be notified as more of
* the image is converted.
* @see java.awt.Image
* @see java.awt.image.ImageObserver
* @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int)
- * @since JDK1.0
+ * @since 1.0
*/
public boolean drawImage(Image img, int x, int y,
int width, int height,
Color bgcolor,
ImageObserver observer) {
@@ -1160,11 +1160,11 @@
* @param observer object to be notified as more of the image is
* scaled and converted.
* @see java.awt.Image
* @see java.awt.image.ImageObserver
* @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int)
- * @since JDK1.1
+ * @since 1.1
*/
public boolean drawImage(Image img,
int dx1, int dy1, int dx2, int dy2,
int sx1, int sy1, int sx2, int sy2,
ImageObserver observer) {
@@ -1234,11 +1234,11 @@
* @param observer object to be notified as more of the image is
* scaled and converted.
* @see java.awt.Image
* @see java.awt.image.ImageObserver
* @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int)
- * @since JDK1.1
+ * @since 1.1
*/
public boolean drawImage(Image img,
int dx1, int dy1, int dx2, int dy2,
int sx1, int sy1, int sx2, int sy2,
Color bgcolor,
@@ -1325,11 +1325,11 @@
* @see java.awt.Graphics#finalize
* @see java.awt.Component#paint
* @see java.awt.Component#update
* @see java.awt.Component#getGraphics
* @see java.awt.Graphics#create
- * @since JDK1.0
+ * @since 1.0
*/
public void dispose() {
mGraphics.dispose();
}