< prev index next >

src/java.desktop/share/classes/sun/java2d/SunGraphics2D.java

Print this page

        

*** 872,888 **** /** * Checks to see if a Path intersects the specified Rectangle in device * space. The rendering attributes taken into account include the * clip, transform, and stroke attributes. * @param rect The area in device space to check for a hit. ! * @param p The path to check for a hit. * @param onStroke Flag to choose between testing the stroked or * the filled path. * @return True if there is a hit, false otherwise. * @see #setStroke ! * @see #fillPath ! * @see #drawPath * @see #transform * @see #setTransform * @see #clip * @see #setClip */ --- 872,888 ---- /** * Checks to see if a Path intersects the specified Rectangle in device * space. The rendering attributes taken into account include the * clip, transform, and stroke attributes. * @param rect The area in device space to check for a hit. ! * @param s The path to check for a hit. * @param onStroke Flag to choose between testing the stroked or * the filled path. * @return True if there is a hit, false otherwise. * @see #setStroke ! * @see #fill(Shape) ! * @see #draw(Shape) * @see #transform * @see #setTransform * @see #clip * @see #setClip */
*** 1293,1303 **** } /** * Returns the preferences for the rendering algorithms. ! * @param hintCategory The category of hint to be set. The strings * are defined in the RenderingHints class. * @return The preferences for rendering algorithms. The strings * are defined in the RenderingHints class. * @see RenderingHints */ --- 1293,1303 ---- } /** * Returns the preferences for the rendering algorithms. ! * @param hintKey The category of hint to be set. The strings * are defined in the RenderingHints class. * @return The preferences for rendering algorithms. The strings * are defined in the RenderingHints class. * @see RenderingHints */
*** 1575,1585 **** * equivalent to first transforming p by Tx and then transforming * the result by the original transform Cx. In other words, * Cx'(p) = Cx(Tx(p)). * 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 AffineTransform */ public void transform(AffineTransform xform) { --- 1575,1585 ---- * equivalent to first transforming p by Tx and then transforming * the result by the original transform Cx. In other words, * Cx'(p) = Cx(Tx(p)). * A copy of the Tx is made, if necessary, so further * modifications to Tx do not affect rendering. ! * @param xform The Transform object to be composed with the current * transform. * @see #setTransform * @see AffineTransform */ public void transform(AffineTransform xform) {
*** 1604,1614 **** /** * 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 */ @Override public void setTransform(AffineTransform Tx) { if ((constrainX | constrainY) == 0) { --- 1604,1613 ----
*** 1787,1814 **** * 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) { backgroundColor = color; } /** * Returns the background color used for clearing a region. ! * @see setBackground */ public Color getBackground() { return backgroundColor; } /** * Returns the current Stroke in the Graphics2D state. ! * @see setStroke */ public Stroke getStroke() { return stroke; } --- 1786,1813 ---- * 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) { backgroundColor = color; } /** * Returns the background color used for clearing a region. ! * @see #setBackground */ public Color getBackground() { return backgroundColor; } /** * Returns the current Stroke in the Graphics2D state. ! * @see #setStroke */ public Stroke getStroke() { return stroke; }
*** 2054,2064 **** * Intersects the current clip with the specified Path and sets the * current clip to the resulting intersection. The clip is transformed * with the current transform in the Graphics2D state before being * intersected with the current clip. This method is used to make the * current clip smaller. To make the clip larger, use any setClip method. ! * @param p The Path to be intersected with the current clip. */ public void clip(Shape s) { s = transformShape(s); if (usrClip != null) { s = intersectShapes(usrClip, s, true, true); --- 2053,2063 ---- * Intersects the current clip with the specified Path and sets the * current clip to the resulting intersection. The clip is transformed * with the current transform in the Graphics2D state before being * intersected with the current clip. This method is used to make the * current clip smaller. To make the clip larger, use any setClip method. ! * @param s The Path to be intersected with the current clip. */ public void clip(Shape s) { s = transformShape(s); if (usrClip != null) { s = intersectShapes(usrClip, s, true, true);
*** 2481,2491 **** /** * Strokes the outline of a Path using the settings of the current * graphics state. The rendering attributes applied include the * clip, transform, paint or color, composite and stroke attributes. ! * @param p The path to be drawn. * @see #setStroke * @see #setPaint * @see java.awt.Graphics#setColor * @see #transform * @see #setTransform --- 2480,2490 ---- /** * Strokes the outline of a Path using the settings of the current * graphics state. The rendering attributes applied include the * clip, transform, paint or color, composite and stroke attributes. ! * @param s The path to be drawn. * @see #setStroke * @see #setPaint * @see java.awt.Graphics#setColor * @see #transform * @see #setTransform
< prev index next >