congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Ellipse2D$Float.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
java.awt.geom.Ellipse2D$Float
constructor

Best Java code snippets using java.awt.geom.Ellipse2D$Float.<init> (Showing top 20 results out of 837)

origin: plantuml/plantuml

public GeneralPath makeMarkerPath(Diagram diagram){
  if(points.size() != 1) return null;
  ShapePoint center = (ShapePoint) this.getPoint(0);
  float diameter =
    (float) 0.7 * Math.min(diagram.getCellWidth(), diagram.getCellHeight());
  return new GeneralPath(new Ellipse2D.Float(
    center.x - diameter/2,
    center.y - diameter/2,
    diameter,
    diameter));
}
origin: tabulapdf/tabula-java

public static void debugIntersections(Graphics2D g, Page page) {
  int i = 0;
  for (Point2D p : Ruling.findIntersections(page.getHorizontalRulings(), page.getVerticalRulings()).keySet()) {
    g.setColor(COLORS[(i++) % 5]);
    g.fill(new Ellipse2D.Float((float) p.getX() - CIRCLE_RADIUS / 2f, (float) p.getY() - CIRCLE_RADIUS / 2f, 5f,
        5f));
  }
}
origin: jbox2d/jbox2d

public DebugDrawJ2D(TestPanelJ2D argTestPanel, boolean yFlip) {
 panel = argTestPanel;
 this.yFlip = yFlip;
 stroke = new BasicStroke(0);
 circle = new Ellipse2D.Float(-1, -1, 2, 2);
}
origin: robo-code/robocode

private Shape getOuterDecoration() {
  if (outerDecoration == null) {
    float W = 523;
    float H = 174;
    outerDecoration = new Area(new Ellipse2D.Float(0, 0, W, H));
    outerDecoration.subtract(new Area(new Ellipse2D.Float(16, 5, W - 2 * 16, H - 2 * 5)));
    outerDecoration.subtract(new Area(new Rectangle2D.Float(W / 2, 0, W / 2, H / 2)));
    outerDecoration.subtract(new Area(new Rectangle2D.Float(0, H / 2, W / 2, H / 2)));
  }
  return outerDecoration;
}
origin: robo-code/robocode

private void drawMiddleEllipse(Graphics2D g) {
  transform(g, null);
  Shape ellipse = new Ellipse2D.Float(68, 38, 440, 146);
  g.setColor(DARK_GREEN_ALPHA_80);
  g.fill(ellipse);
  g.setColor(GREEN_ALPHA_40);
  g.setStroke(THIN_STROKE);
  g.draw(ellipse);
}
origin: stackoverflow.com

 public class CircleShapeGenerator implements ShapeGenerator {
  public Shape getGeneratedShape(int x, int y) {
    return new Ellipse2D.Float(x, y, 10, 10);
  }
}
origin: pentaho/pentaho-reporting

/**
 * Fills an oval bounded by the specified rectangle with the current color.
 *
 * @param x      the <i>x</i> coordinate of the upper left corner of the oval to be filled.
 * @param y      the <i>y</i> coordinate of the upper left corner of the oval to be filled.
 * @param width  the width of the oval to be filled.
 * @param height the height of the oval to be filled.
 * @see Graphics#drawOval
 */
public void fillOval( final int x, final int y, final int width, final int height ) {
 parent.fill( new Ellipse2D.Float( x, y, width, height ) );
}
origin: pentaho/pentaho-reporting

/**
 * @see Graphics#drawOval(int, int, int, int)
 */
@Override
public void drawOval( final int x, final int y, final int width, final int height ) {
 final Ellipse2D oval = new Ellipse2D.Float( x, y, width, height );
 draw( oval );
}
origin: com.github.vlsi.mxgraph/jgraphx

/**
 * 
 */
public Shape createShape(mxGraphics2DCanvas canvas, mxCellState state)
{
  Rectangle temp = state.getRectangle();
  return new Ellipse2D.Float(temp.x, temp.y, temp.width, temp.height);
}
origin: sc.fiji/TrakEM2_

/** Expects @param a in local coords. */
@Override
public boolean intersects(final Area a) {
  if (0 == r) return a.contains(x, y);
  return M.intersects(a, new Area(new Ellipse2D.Float(x-r, y-r, r+r, r+r)));
  // TODO: not the getSegment() ?
}
origin: sc.fiji/TrakEM2_

@Override
public Area getArea() {
  if (0 == r) return super.getArea(); // a little square
  return new Area(new Ellipse2D.Float(x-r, y-r, r+r, r+r));
}
origin: sc.fiji/TrakEM2_

@Override
public void paintData(final Graphics2D g, final Rectangle srcRect,
    final Tree<Float> tree, final AffineTransform to_screen, final Color cc,
    final Layer active_layer) {
  g.setColor(cc);
  g.draw(to_screen.createTransformedShape(new Ellipse2D.Float(x -r, y -r, r+r, r+r)));
}
origin: robo-code/robocode

private Shape getInnerDecoration() {
  if (innerDecoration == null) {
    innerDecoration = new Area(new Ellipse2D.Float(0, 0, 368, 120));
    innerDecoration.subtract(new Area(new Rectangle2D.Float(Float.MIN_VALUE, 30, Float.MAX_VALUE, 56)));
    innerDecoration.subtract(new Area(new Rectangle2D.Float(181, Float.MIN_VALUE, 7, Float.MAX_VALUE)));
  }
  return innerDecoration;
}
origin: stackoverflow.com

private Rectangle2D rect = new Rectangle2D.Float(0, 0, 0, 0);
private RoundRectangle2D roundRect = new RoundRectangle2D.Float(0, 0, 0, 0, 0, 0);
private Ellipse2D ellipse = new Ellipse2D.Float(0, 0, 0, 0);
origin: stackoverflow.com

private Rectangle2D rect = new Rectangle2D.Float(0, 0, 0, 0);
private RoundRectangle2D roundRect = new RoundRectangle2D.Float(0, 0, 0, 0, 0, 0);
private Ellipse2D ellipse = new Ellipse2D.Float(0, 0, 0, 0);
origin: stackoverflow.com

shape = new Ellipse2D.Float(0, 0, 
 getWidth(), getHeight());
origin: geotools/geotools

return new Ellipse2D.Float(
    -windBarbDefinition.zeroWindRadius
        / 2.0f, // the X coordinate of the upper-left corner of the specified
origin: geotools/geotools

public GeometryRenderer() {
  setStrokeWidth(2f);
  setAutoPopulateSeriesShape(false);
  setBaseShape(new Ellipse2D.Float(-3, -3, 6, 6));
}
origin: robolectric/robolectric

@Implementation
protected void addCircle(float x, float y, float radius, Path.Direction dir) {
 mPath.append(new Ellipse2D.Float(x - radius, y - radius, radius * 2, radius * 2), false);
}
origin: robolectric/robolectric

@Implementation(minSdk = LOLLIPOP)
protected void addOval(float left, float top, float right, float bottom, Path.Direction dir) {
 mPath.append(new Ellipse2D.Float(left, top, right - left, bottom - top), false);
}
java.awt.geomEllipse2D$Float<init>

Popular methods of Ellipse2D$Float

  • setFrame
  • getBounds2D
  • clone
  • getMaxX
  • getMaxY
  • getMinX
  • getMinY

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Table (org.hibernate.mapping)
    A relational table
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now