/** * Composes an <code>AffineTransform</code> object with the * <code>Transform</code> in this <code>Graphics2D</code> according * to the rule last-specified-first-applied. If the current * <code>Transform</code> is Cx, the result of composition * with Tx is a new <code>Transform</code> Cx'. Cx' becomes the * current <code>Transform</code> for this <code>Graphics2D</code>. * Transforming a point p by the updated <code>Transform</code> Cx' is * equivalent to first transforming p by Tx and then transforming * the result by the original <code>Transform</code> 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 <code>AffineTransform</code> object to be composed with * the current <code>Transform</code> * @see #setTransform * @see AffineTransform */ public void transform(AffineTransform Tx){ transform.concatenate(Tx); transformStack.add(TransformStackElement.createGeneralTransformElement(Tx)); }
/** * Composes an <code>AffineTransform</code> object with the * <code>Transform</code> in this <code>Graphics2D</code> according * to the rule last-specified-first-applied. If the current * <code>Transform</code> is Cx, the result of composition * with Tx is a new <code>Transform</code> Cx'. Cx' becomes the * current <code>Transform</code> for this <code>Graphics2D</code>. * Transforming a point p by the updated <code>Transform</code> Cx' is * equivalent to first transforming p by Tx and then transforming * the result by the original <code>Transform</code> 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 <code>AffineTransform</code> object to be composed with * the current <code>Transform</code> * @see #setTransform * @see AffineTransform */ public void transform(AffineTransform Tx){ transform.concatenate(Tx); transformStack.add(TransformStackElement.createGeneralTransformElement(Tx)); }
/** * Composes an <code>AffineTransform</code> object with the * <code>Transform</code> in this <code>Graphics2D</code> according * to the rule last-specified-first-applied. If the current * <code>Transform</code> is Cx, the result of composition * with Tx is a new <code>Transform</code> Cx'. Cx' becomes the * current <code>Transform</code> for this <code>Graphics2D</code>. * Transforming a point p by the updated <code>Transform</code> Cx' is * equivalent to first transforming p by Tx and then transforming * the result by the original <code>Transform</code> 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 <code>AffineTransform</code> object to be composed with * the current <code>Transform</code> * @see #setTransform * @see AffineTransform */ public void transform(AffineTransform Tx){ transform.concatenate(Tx); transformStack.add(TransformStackElement.createGeneralTransformElement(Tx)); }
/** * @param defaultDeviceTransform Default affine transform applied to map the user space to the * user space. */ public GraphicContext(AffineTransform defaultDeviceTransform) { this(); defaultTransform = new AffineTransform(defaultDeviceTransform); transform = new AffineTransform(defaultTransform); if (!defaultTransform.isIdentity()) transformStack.add(TransformStackElement.createGeneralTransformElement(defaultTransform)); }
/** * @param defaultDeviceTransform Default affine transform applied to map the user space to the * user space. */ public GraphicContext(AffineTransform defaultDeviceTransform) { this(); defaultTransform = new AffineTransform(defaultDeviceTransform); transform = new AffineTransform(defaultTransform); if (!defaultTransform.isIdentity()) transformStack.add(TransformStackElement.createGeneralTransformElement(defaultTransform)); }
/** * @param defaultDeviceTransform Default affine transform applied to map the user space to the * user space. */ public GraphicContext(AffineTransform defaultDeviceTransform) { this(); defaultTransform = new AffineTransform(defaultDeviceTransform); transform = new AffineTransform(defaultTransform); if (!defaultTransform.isIdentity()) transformStack.add(TransformStackElement.createGeneralTransformElement(defaultTransform)); }
/** * Sets the <code>Transform</code> in the <code>Graphics2D</code> * context. * @param Tx the <code>AffineTransform</code> object to be used in the * rendering process * @see #transform * @see AffineTransform */ public void setTransform(AffineTransform Tx){ transform = new AffineTransform(Tx); invalidateTransformStack(); if(!Tx.isIdentity()) transformStack.add(TransformStackElement.createGeneralTransformElement(Tx)); }
/** * Sets the <code>Transform</code> in the <code>Graphics2D</code> * context. * @param Tx the <code>AffineTransform</code> object to be used in the * rendering process * @see #transform * @see AffineTransform */ public void setTransform(AffineTransform Tx){ transform = new AffineTransform(Tx); invalidateTransformStack(); if(!Tx.isIdentity()) transformStack.add(TransformStackElement.createGeneralTransformElement(Tx)); }
/** * Sets the <code>Transform</code> in the <code>Graphics2D</code> * context. * @param Tx the <code>AffineTransform</code> object to be used in the * rendering process * @see #transform * @see AffineTransform */ public void setTransform(AffineTransform Tx){ transform = new AffineTransform(Tx); invalidateTransformStack(); if(!Tx.isIdentity()) transformStack.add(TransformStackElement.createGeneralTransformElement(Tx)); }