Examples of translate()


Examples of diva.canvas.toolbox.LabelFigure.translate()

        // FindBugs suggests making this class static so as to decrease
        // the size of instances and avoid dangling references.

        public Figure createFigure() {
            LabelFigure label = new LabelFigure("Hello!");
            label.translate(200, 200);
            return label;
        }

        public String toString() {
            return "Label figure";
View Full Code Here

Examples of diva.canvas.toolbox.PaintedFigure.translate()

        //f.add(new PaintedPath(line1));
        //Line2D line2 = new Line2D.Double(70,50,90,50);
        //f.add(new PaintedPath(line2));
        layer.add(g);
        g.setInteractor(defaultInteractor);
        g.translate(100, 0);
    }

    /** Main function
     */
    public static void main(String[] argv) {
View Full Code Here

Examples of diva.canvas.toolbox.VectorFigure.translate()

        two.lineMode();
        two.add(Color.black);
        two.add(new Line2D.Double(14.65, 14.65, 85.35, 85.35));
        two.add(new Line2D.Double(85.35, 14.65, 14.65, 85.35));

        two.translate(200, 100);
        layer.add(two);
        two.setInteractor(defaultInteractor);
    }

    /** Main function
View Full Code Here

Examples of diva.util.java2d.PaintedString.translate()

            processPaintedPathAttributes(pp, attributes);
            return pp;
        } else if (type.equals("text")) {
            PaintedString string = new PaintedString(content);
            processPaintedStringAttributes(string, attributes);
            string.translate(coords[0], coords[1]);
            return string;
        }

        return null;
    }
View Full Code Here

Examples of diva.util.java2d.Polyline2D.translate()

     */
    public void translate(double x, double y) {
        repaint();

        Polyline2D line = (Polyline2D) getShape();
        line.translate(x, y);
        repaint();
    }
}
View Full Code Here

Examples of eas.math.geometry.Polygon2D.translate()

                ArrowMaster.EINFACHER_ABSCHLUSS,
                this.anfang,
                new Vector2D(this.anfFakt, this.anfFakt),
                new Vector2D(1, 1));
       
        p.translate(versch);
       
        p.scale(
                Vector2D.NULL_VECTOR,
                new Vector2D(1 / this.dicken.get(0), 1 / this.dicken.get(0)));
       
View Full Code Here

Examples of eas.math.geometry.Vector2D.translate()

                pinkBorder.getBoundingBox().upperLeftCorner().y));
       
        pos.x = pos.x / env.globalScale();
        pos.y = pos.y / env.globalScale();
       
        pos.translate(box.upperLeftCorner());
       
        if (env.getVisualizationAngleCenterPoint() != null) {
            pos.rotate(env.getVisualizationAngleCenterPoint(), -env.getVisualizationAngleRAD());
        }
       
View Full Code Here

Examples of eas.simulation.spatial.sim2D.marbSimulation.translator.Translator.translate()

         */
        // Falls nur Standardkodierung verwendet werden soll: (TODO!)
        if (params.getParValueBoolean("UseOnlyStandardDecoding")) {
            this.erzeugeAusStdSequenz(seq2, pruefen);
        } else {
            Script neuScript = trans2.translate(seq2);
            trans2.getScriptInterpreter().generateAutomaton(this, neuScript);
        }
    }
   
    /**
 
View Full Code Here

Examples of edu.cmu.cs.stage3.math.Matrix44.translate()

  public void translate( javax.vecmath.Vector3d vector, ReferenceFrame asSeenBy ) {
    if( asSeenBy==null ) {
      asSeenBy = this;
    }
    Matrix44 m = getTransformation( asSeenBy );
    m.translate( vector );
    setTransformation( m, asSeenBy );
  }
  public void rotate( javax.vecmath.Vector3d axis, double amount, ReferenceFrame asSeenBy ) {
    if( asSeenBy==null ) {
      asSeenBy = this;
View Full Code Here

Examples of edu.uci.ics.jung.visualization.transform.MutableTransformer.translate()

        // translate the layout panel down and across so that it is not hard up
        // against the side of the splitPane box.
        MutableTransformer modelTransformer = vv.getRenderContext().getMultiLayerTransformer().getTransformer(
                        Layer.LAYOUT);
        modelTransformer.translate(25, 25);

        // setup the transformers for the visualisation
        e_eft = new EdgeFontTransformer<Object, Font>();
        e_elt = new EdgeLabelTransformer<Object, String>(vv);
        e_ept = new EdgePaintTransformer<Object, Paint>(new Color(40, 40, 40), Color.black, vv);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.