Examples of moveTo()


Examples of ij.process.ImageProcessor.moveTo()

          ip = stack.getProcessor(slice);
          ip.setFont(font);
          float[] hsb = Color.RGBtoHSB(c.getRed(), c.getGreen(), c
              .getBlue(), null);
          ip.setColor(Color.getHSBColor(255, 255, 255 - hsb[2]));
          ip.moveTo(x, y);
          ip.drawString(s);
        }
      } else if (cz.DimensionTime != 1) {
        for (int slicez = 1; slicez <= cz.DimensionZ; slicez++) {
          IJ.showStatus("MinMax: " + slicez + "/"
View Full Code Here

Examples of java.awt.GradientPaint.moveTo()

    // Controllo se questo stato corrisponde alla media dei jobs
    if (i == queueLenght() - queueMedia) {
      // disegno un triangolo sopra lo stato che rappresenta la media
      GeneralPath gp = new GeneralPath(GeneralPath.WIND_EVEN_ODD);
      gp.moveTo((float) x, (float) (y - ELEM_HEIGHT / 2));
      gp.lineTo((float) (x + ELEM_WIDTH), (float) (y - ELEM_HEIGHT / 2));
      gp.lineTo((float) (x + ELEM_WIDTH / 2.0), (float) (y - ELEMS_GAP));
      gp.closePath();
      drawCenteredText("Q", queueC, null, x + ELEM_WIDTH / 2.0, y - ELEM_HEIGHT * 0.7, g2d, false, true);
      g2d.setColor(queueC);
View Full Code Here

Examples of java.awt.geom.GeneralPath.moveTo()

      Handle[] hs = handles;
      if (hs.length > 0) {
        boolean first = true;
        for (Handle h : hs) {
          if (first) {
            p.moveTo(h.getX(), h.getY());
            first = false;
          } else {
            p.lineTo(h.getX(), h.getY());
          }
        }
View Full Code Here

Examples of java.awt.geom.GeneralPath.moveTo()

        Line2D lLine = new Line2D.Double(center_x, center_y, lX, lY);
            g.setColor(Color.black);
            g.draw(lLine);

        // add to polygone
        if (lCol == 0) filledPolygon.moveTo((float)lX, (float)lY);
        else filledPolygon.lineTo((float)lX, (float)lY);           
      }
     
      // draw the polygone
      filledPolygon.closePath();
View Full Code Here

Examples of java.awt.geom.GeneralPath.moveTo()

    }


    private static GeneralPath pathToShape(double[] path, boolean close, LayoutPathImpl lp) {
        GeneralPath result = new GeneralPath(GeneralPath.WIND_EVEN_ODD, path.length);
        result.moveTo((float)path[0], (float)path[1]);
        for (int i = 2; i < path.length; i += 2) {
            result.lineTo((float)path[i], (float)path[i+1]);
        }
        if (close) {
            result.closePath();
View Full Code Here

Examples of java.awt.geom.GeneralPath.moveTo()

            return polygon;
       
        WhiteboardPoint start = points.get (0);
        Point2D w = new Point2D.Double (start.getX (), start.getY ());
        Point2D v = w2v.transform (w, null);
        polygon.moveTo ((int) v.getX (), (int) v.getY ());
       
        WhiteboardPoint p;
        for (int i =0; i<points.size ();i++)
        {
            p = points.get (i);
View Full Code Here

Examples of java.awt.geom.GeneralPath.moveTo()

          GeneralPath.WIND_EVEN_ODD, points.size ());
        if(points.size ()<=0)
            return polygon;
       
        WhiteboardPoint start = points.get (0);
        polygon.moveTo ((float) start.getX (), (float) start.getY ());
       
        WhiteboardPoint p;
        for (int i =0; i<points.size ();i++)
        {
            p = points.get (i);
View Full Code Here

Examples of java.awt.geom.GeneralPath.moveTo()

        if(points.size ()<=0)
            return polyline;
        WhiteboardPoint start = points.get (0);
        Point2D w = new Point2D.Double (start.getX (), start.getY ());
        Point2D v = w2v.transform (w, null);
        polyline.moveTo ((int) v.getX (), (int) v.getY ());
        WhiteboardPoint p;
        for (int i =0; i<points.size ();i++)
        {
            p = points.get (i);
            w = new Point2D.Double (p.getX (), p.getY ());
View Full Code Here

Examples of java.awt.geom.GeneralPath.moveTo()

        GeneralPath polyline = new GeneralPath (
          GeneralPath.WIND_EVEN_ODD, points.size ());
        if(points.size ()<=0)
            return polyline;
        WhiteboardPoint start = points.get (0);
        polyline.moveTo ((float) start.getX (), (float) start.getY ());
       
        WhiteboardPoint p;
        for (int i =0; i<points.size ();i++)
        {
            p = points.get (i);
View Full Code Here

Examples of java.awt.geom.GeneralPath.moveTo()

    Arc2D arc3 = new Arc2D.Double(widthRect, angle - 180.0, 0.0,
        Arc2D.OPEN);
    Point2D pt4 = arc3.getStartPoint();

    GeneralPath gp = new GeneralPath();
    gp.moveTo((float) pt1.getX(), (float) pt1.getY());
    gp.lineTo((float) pt2.getX(), (float) pt2.getY());
    gp.lineTo((float) pt4.getX(), (float) pt4.getY());
    gp.lineTo((float) pt3.getX(), (float) pt3.getY());
    gp.closePath();
    g2.setPaint(this.fillPaint);
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.