< prev index next >

src/java.desktop/share/classes/sun/print/ProxyGraphics2D.java

Print this page

        

*** 295,307 **** * Sets this graphics context's font to the specified font. * All subsequent text operations using this graphics context * use this font. * @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 1.0 */ public void setFont(Font font) { mGraphics.setFont(font); } --- 295,307 ---- * Sets this graphics context's font to the specified font. * All subsequent text operations using this graphics context * use this font. * @param font the font. * @see java.awt.Graphics#getFont ! * @see java.awt.Graphics#drawChars(char[], int, int, int, int) ! * @see java.awt.Graphics#drawString(String, int, int) ! * @see java.awt.Graphics#drawBytes(byte[], int, int, int, int) * @since 1.0 */ public void setFont(Font font) { mGraphics.setFont(font); }
*** 1343,1353 **** /** * Draws a string of text. * The rendering attributes applied include the clip, transform, * paint or color, font and composite attributes. ! * @param s The string to be drawn. * @param x,y The coordinates where the string should be drawn. * @see #setPaint * @see java.awt.Graphics#setColor * @see java.awt.Graphics#setFont * @see #transform --- 1343,1353 ---- /** * Draws a string of text. * The rendering attributes applied include the clip, transform, * paint or color, font and composite attributes. ! * @param str The string to be drawn. * @param x,y The coordinates where the string should be drawn. * @see #setPaint * @see java.awt.Graphics#setColor * @see java.awt.Graphics#setFont * @see #transform
*** 1430,1440 **** * and fill. It specifies how new pixels are to be combined with * the existing pixels on the graphics device in the rendering process. * @param comp The Composite object to be used for drawing. * @see java.awt.Graphics#setXORMode * @see java.awt.Graphics#setPaintMode ! * @see AlphaComposite */ public void setComposite(Composite comp) { mGraphics.setComposite(comp); } --- 1430,1440 ---- * and fill. It specifies how new pixels are to be combined with * the existing pixels on the graphics device in the rendering process. * @param comp The Composite object to be used for drawing. * @see java.awt.Graphics#setXORMode * @see java.awt.Graphics#setPaintMode ! * @see java.awt.AlphaComposite */ public void setComposite(Composite comp) { mGraphics.setComposite(comp); }
*** 1442,1463 **** /** * Sets the Paint in the current graphics state. * @param paint The Paint object to be used to generate color in * the rendering process. * @see java.awt.Graphics#setColor ! * @see GradientPaint ! * @see TexturePaint */ public void setPaint(Paint paint) { mGraphics.setPaint(paint); } /** * Sets the Stroke in the current graphics state. * @param s The Stroke object to be used to stroke a Shape in * the rendering process. ! * @see BasicStroke */ public void setStroke(Stroke s) { mGraphics.setStroke(s); } --- 1442,1463 ---- /** * Sets the Paint in the current graphics state. * @param paint The Paint object to be used to generate color in * the rendering process. * @see java.awt.Graphics#setColor ! * @see java.awt.GradientPaint ! * @see java.awt.TexturePaint */ public void setPaint(Paint paint) { mGraphics.setPaint(paint); } /** * Sets the Stroke in the current graphics state. * @param s The Stroke object to be used to stroke a Shape in * the rendering process. ! * @see java.awt.BasicStroke */ public void setStroke(Stroke s) { mGraphics.setStroke(s); }
*** 1476,1486 **** /** * Returns the preferences for the rendering algorithms. * @param hintCategory The category of hint to be set. * @return The preferences for rendering algorithms. ! * @see RenderingHings */ public Object getRenderingHint(Key hintCategory) { return mGraphics.getRenderingHint(hintCategory); } --- 1476,1486 ---- /** * Returns the preferences for the rendering algorithms. * @param hintCategory The category of hint to be set. * @return The preferences for rendering algorithms. ! * @see RenderingHints */ public Object getRenderingHint(Key hintCategory) { return mGraphics.getRenderingHint(hintCategory); }
*** 1529,1550 **** * A copy of the Tx is made, if necessary, so further * modifications to Tx do not affect rendering. * @param Tx The Transform object to be composed with the current * transform. * @see #setTransform - * @see TransformChain * @see AffineTransform */ public void transform(AffineTransform Tx) { mGraphics.transform(Tx); } /** * Sets the Transform in the current graphics state. * @param Tx The Transform object to be used in the rendering process. * @see #transform - * @see TransformChain * @see AffineTransform */ public void setTransform(AffineTransform Tx) { mGraphics.setTransform(Tx); } --- 1529,1548 ----
*** 1582,1609 **** * Graphics2D context only affects the subsequent clearRect() calls and * not the background color of the component. To change the background * of the component, use appropriate methods of the component. * @param color The background color that should be used in * subsequent calls to clearRect(). ! * @see getBackground ! * @see Graphics.clearRect() */ public void setBackground(Color color) { mGraphics.setBackground(color); } /** * Returns the background color used for clearing a region. ! * @see setBackground */ public Color getBackground() { return mGraphics.getBackground(); } /** * Returns the current Stroke in the Graphics2D state. ! * @see setStroke */ public Stroke getStroke() { return mGraphics.getStroke(); } --- 1580,1607 ---- * Graphics2D context only affects the subsequent clearRect() calls and * not the background color of the component. To change the background * of the component, use appropriate methods of the component. * @param color The background color that should be used in * subsequent calls to clearRect(). ! * @see #getBackground ! * @see Graphics#clearRect */ public void setBackground(Color color) { mGraphics.setBackground(color); } /** * Returns the background color used for clearing a region. ! * @see #setBackground */ public Color getBackground() { return mGraphics.getBackground(); } /** * Returns the current Stroke in the Graphics2D state. ! * @see #setStroke */ public Stroke getStroke() { return mGraphics.getStroke(); }
< prev index next >