/** * Create an instance, setting values from the passed component and registering to listen for * layoutSize changes on the component. * * @param d the size used for the lens */ public HyperbolicTransformer(Dimension d) { this(d, new MutableAffineTransformer()); }
public void concatenate(AffineTransform xform) { inverse = null; transform.concatenate(xform); fireStateChanged(); } public void preConcatenate(AffineTransform xform) {
/** * setter for the scale fires a PropertyChangeEvent with the AffineTransforms representing the * previous and new values for scale and offset * * @param scalex the amount to scale in the x direction * @param scaley the amount to scale in the y direction * @param from the point to transform */ public void setScale(double scalex, double scaley, Point2D from) { transform.setToIdentity(); scale(scalex, scaley, from); }
/** * setter for the scale * fires a PropertyChangeEvent with the AffineTransforms representing * the previous and new values for scale and offset * @param scalex the amount to scale in the x direction * @param scaley the amount to scale in the y direction * @param from the point to transform */ public void setScale(double scalex, double scaley, Point2D from) { transform.setToIdentity(); scale(scalex, scaley, from); }
public MutableTransformerDecorator(MutableTransformer delegate) { if (delegate == null) { delegate = new MutableAffineTransformer(); } this.delegate = delegate; }
/** * Apply the passed values to the current Transform * @param offsetx the x-value * @param offsety the y-value */ public void translate(double offsetx, double offsety) { inverse = null; transform.translate(offsetx, offsety); fireStateChanged(); }
/** * create an instance, setting values from the passed component * and registering to listen for size changes on the component * @param component */ public PerspectiveTransformer(PerspectiveTransform perspectiveTransform) { this(perspectiveTransform, new MutableAffineTransformer()); } /**
/** * Apply the passed values to the current Transform * * @param offsetx the x-value * @param offsety the y-value */ public void translate(double offsetx, double offsety) { inverse = null; transform.translate(offsetx, offsety); fireStateChanged(); }
/** * create an instance, setting values from the passed component * and registering to listen for size changes on the component * @param component the component used for rendering */ public HyperbolicTransformer(Component component) { this(component, new MutableAffineTransformer()); }
/** * rotates the current transform at the supplied points * * @param radians angle by which to rotate the supplied coordinates * @param x the x coordinate of the point to transform * @param y the y coordinate of the point to transform */ public void rotate(double radians, double x, double y) { inverse = null; transform.rotate(radians, x, y); fireStateChanged(); }
public MutableTransformerDecorator(MutableTransformer delegate) { if(delegate == null) { delegate = new MutableAffineTransformer(); } this.delegate = delegate; }
public void concatenate(AffineTransform xform) { inverse = null; transform.concatenate(xform); fireStateChanged(); }
/** * Create an instance, setting values from the passed component * and registering to listen for size changes on the component. * * @param component the component used for rendering */ public MagnifyTransformer(Component component) { this(component, new MutableAffineTransformer()); }
/** * rotates the current transform at the supplied points * @param radians angle by which to rotate the supplied coordinates * @param x the x coordinate of the point to transform * @param y the y coordinate of the point to transform */ public void rotate(double radians, double x, double y) { inverse = null; transform.rotate(radians, x, y); fireStateChanged(); }
/** * Create an instance, setting values from the passed component and registering to listen for * layoutSize changes on the component. * * @param d the size used for the lens */ public MagnifyTransformer(Dimension d) { this(d, new MutableAffineTransformer()); }
public void preConcatenate(AffineTransform xform) { inverse = null; transform.preConcatenate(xform); fireStateChanged(); }
/** * Create an instance with a possibly shared lens. * * @param lens */ public LensTransformer(Lens lens) { super(new MutableAffineTransformer()); this.lens = lens; }
public void setToIdentity() { inverse = null; transform.setToIdentity(); fireStateChanged(); } }
public MagnifyTransformer(Lens lens) { this(lens, new MutableAffineTransformer()); }
public void preConcatenate(AffineTransform xform) { inverse = null; transform.preConcatenate(xform); fireStateChanged(); }