1622 lines · 63.6 KB · Java
RawDownload
     * overall time/quality trade-off in the rendering process.     * @param hints The rendering hints to be set     * @see RenderingHints     */    public void addRenderingHints(Map<?,?> hints) {        mGraphics.addRenderingHints(hints);    }     /**     * Gets the preferences for the rendering algorithms.     * Hint categories include controls for rendering quality and     * overall time/quality trade-off in the rendering process.     * @see RenderingHints     */    public RenderingHints getRenderingHints() {        return mGraphics.getRenderingHints();    }     /**     * Composes a Transform object with the transform in this     * Graphics2D according to the rule last-specified-first-applied.     * If the currrent transform is Cx, the result of composition     * with Tx is a new transform Cx'.  Cx' becomes the current     * transform for this Graphics2D.     * Transforming a point p by the updated transform Cx' is     * 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 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);    }     /**     * Returns the current Transform in the Graphics2D state.     * @see #transform     * @see #setTransform     */    public AffineTransform getTransform() {        return mGraphics.getTransform();    }     /**     * Returns the current Paint in the Graphics2D state.     * @see #setPaint     * @see java.awt.Graphics#setColor     */    public Paint getPaint() {        return mGraphics.getPaint();    }     /**     * Returns the current Composite in the Graphics2D state.     * @see #setComposite     */    public Composite getComposite() {        return mGraphics.getComposite();    }     /**     * Sets the background color in this context used for clearing a region.     * When Graphics2D is constructed for a component, the backgroung color is     * inherited from the component. Setting the background color in the     * 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();    }     /**     * Intersects the current clip with the interior of the specified Shape     * and sets the current clip to the resulting intersection.     * The indicated shape 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 Shape to be intersected with the current clip.     */     public void clip(Shape s) {        mGraphics.clip(s);     }}

Lines 1501–1622 of 1622. Previous lines