Package java.awt.geom

Examples of java.awt.geom.Path2D.lineTo()


        paniponidash, 0.0f);
    gr.setColor(toColor(fsi.getStrokeColor(), fsi.getStrokeOpacity()));
    gr.setStroke(stroke);
    Path2D s = new Path2D.Double(Path2D.WIND_EVEN_ODD, 3);
    s.moveTo(0, 0);
    s.lineTo(twothirds, onethird);
    s.lineTo(onethird, twothirds);
    s.lineTo(max, max);
    gr.draw(s);
  }
View Full Code Here


    gr.setColor(toColor(fsi.getStrokeColor(), fsi.getStrokeOpacity()));
    gr.setStroke(stroke);
    Path2D s = new Path2D.Double(Path2D.WIND_EVEN_ODD, 3);
    s.moveTo(0, 0);
    s.lineTo(twothirds, onethird);
    s.lineTo(onethird, twothirds);
    s.lineTo(max, max);
    gr.draw(s);
  }

  private void drawPoint(Graphics2D gr, FeatureStyleInfo fsi, int iconSize) throws AdvancedviewsException {
View Full Code Here

    gr.setStroke(stroke);
    Path2D s = new Path2D.Double(Path2D.WIND_EVEN_ODD, 3);
    s.moveTo(0, 0);
    s.lineTo(twothirds, onethird);
    s.lineTo(onethird, twothirds);
    s.lineTo(max, max);
    gr.draw(s);
  }

  private void drawPoint(Graphics2D gr, FeatureStyleInfo fsi, int iconSize) throws AdvancedviewsException {
    int x = 0, y = 0, w = 0, h = 0, max = iconSize - 1;
View Full Code Here

  {
    Path2D pathObject = (Path2D)state.getScanner().getRenderObject();
    if(pathObject != null)
    {
      Point2D point = getPoint();
      pathObject.lineTo(point.getX(),point.getY());
    }
  }

  /**
    Sets the final endpoint.
View Full Code Here

      float x = getX(),
        y = getY(),
        width = getWidth(),
        height = getHeight();
      pathObject.moveTo(x,y);
      pathObject.lineTo(x + width, y);
      pathObject.lineTo(x + width, y + height);
      pathObject.lineTo(x, y + height);
      pathObject.closePath();
    }
  }
View Full Code Here

        y = getY(),
        width = getWidth(),
        height = getHeight();
      pathObject.moveTo(x,y);
      pathObject.lineTo(x + width, y);
      pathObject.lineTo(x + width, y + height);
      pathObject.lineTo(x, y + height);
      pathObject.closePath();
    }
  }
View Full Code Here

        width = getWidth(),
        height = getHeight();
      pathObject.moveTo(x,y);
      pathObject.lineTo(x + width, y);
      pathObject.lineTo(x + width, y + height);
      pathObject.lineTo(x, y + height);
      pathObject.closePath();
    }
  }

  public void setHeight(
View Full Code Here

    LatLon currPT = initPT;
    for (int i = 1; i < 360; i++) {

      LatLon pt = DistanceUtils.getPointOnGreatCircle(super.getOrdinate(1),
          super.getOrdinate(0), super.getOrdinate(2), i);
      path.lineTo(pt.getShiftedLon(), pt.getShiftedLat());

      if (dateLineCrossOver(currPT.getNormLon(), pt.getNormLon())) {
        numberOfCrossOvers++;
      }
      currPT = pt;
View Full Code Here

        for (int j = 0; j < fp.getPoints().size(); j++) {
            FreedomPoint point = fp.getPoints().get(j);
            if (j == 0) {
                mP.moveTo(point.getX(), point.getY());
            } else {
                mP.lineTo(point.getX(), point.getY());
            }
        }
        //closing the path
        mP.closePath();
View Full Code Here

    for (int j = 0; j < fp.getPoints().size(); j++) {
      FreedomPoint point= fp.getPoints().get(j);
      if (j== 0)
        mP.moveTo(point.getX(), point.getY());
      else
        mP.lineTo(point.getX(), point.getY());           
    }           
    //closing the path
    mP.closePath();
 
    return mP;
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.