Codota Logo
Ellipse2D$Float.setFrame
Code IndexAdd Codota to your IDE (free)

How to use
setFrame
method
in
java.awt.geom.Ellipse2D$Float

Best Java code snippets using java.awt.geom.Ellipse2D$Float.setFrame (Showing top 20 results out of 315)

  • Common ways to obtain Ellipse2D$Float
private void myMethod () {
Ellipse2D$Float e =
  • Codota Iconnew Ellipse2D.Float()
  • Smart code suggestions by Codota
}
origin: threerings/playn

@Override
public Canvas fillCircle(float x, float y, float radius) {
 currentState().prepareFill(gfx);
 ellipse.setFrame(x - radius, y - radius, 2 * radius, 2 * radius);
 gfx.fill(ellipse);
 isDirty = true;
 return this;
}
origin: threerings/playn

@Override
public Canvas strokeCircle(float x, float y, float radius) {
 currentState().prepareStroke(gfx);
 ellipse.setFrame(x - radius, y - radius, 2 * radius, 2 * radius);
 gfx.draw(ellipse);
 isDirty = true;
 return this;
}
origin: playn/playn

@Override
public Canvas fillCircle(float x, float y, float radius) {
 currentState().prepareFill(g2d);
 ellipse.setFrame(x - radius, y - radius, 2 * radius, 2 * radius);
 g2d.fill(ellipse);
 isDirty = true;
 return this;
}
origin: com.barchart.kitfox/kitfox-svg-core

protected void build() throws SVGException
{
  super.build();
  
  StyleAttribute sty = new StyleAttribute();
  
  if (getPres(sty.setName("cx"))) cx = sty.getFloatValueWithUnits();
  
  if (getPres(sty.setName("cy"))) cy = sty.getFloatValueWithUnits();
  
  if (getPres(sty.setName("r"))) r = sty.getFloatValueWithUnits();
  
  circle.setFrame(cx - r, cy - r, r * 2f, r * 2f);
}
origin: playn/playn

@Override
public Canvas strokeCircle(float x, float y, float radius) {
 currentState().prepareStroke(g2d);
 ellipse.setFrame(x - radius, y - radius, 2 * radius, 2 * radius);
 g2d.draw(ellipse);
 isDirty = true;
 return this;
}
origin: com.googlecode.playn/playn-java

@Override
public Canvas fillCircle(float x, float y, float radius) {
 currentState().prepareFill(gfx);
 ellipse.setFrame(x - radius, y - radius, 2 * radius, 2 * radius);
 gfx.fill(ellipse);
 isDirty = true;
 return this;
}
origin: com.barchart.kitfox/kitfox-svg-core

protected void build() throws SVGException
{
  super.build();
  
  StyleAttribute sty = new StyleAttribute();
  
  if (getPres(sty.setName("cx"))) cx = sty.getFloatValueWithUnits();
  
  if (getPres(sty.setName("cy"))) cy = sty.getFloatValueWithUnits();
  
  if (getPres(sty.setName("rx"))) rx = sty.getFloatValueWithUnits();
  
  if (getPres(sty.setName("ry"))) ry = sty.getFloatValueWithUnits();
  
  ellipse.setFrame(cx - rx, cy - ry, rx * 2f, ry * 2f);
}
origin: io.playn/playn-java-base

@Override
public Canvas strokeCircle(float x, float y, float radius) {
 currentState().prepareStroke(g2d);
 ellipse.setFrame(x - radius, y - radius, 2 * radius, 2 * radius);
 g2d.draw(ellipse);
 isDirty = true;
 return this;
}
origin: io.playn/playn-java-base

@Override
public Canvas fillCircle(float x, float y, float radius) {
 currentState().prepareFill(g2d);
 ellipse.setFrame(x - radius, y - radius, 2 * radius, 2 * radius);
 g2d.fill(ellipse);
 isDirty = true;
 return this;
}
origin: com.harium.propan/propan-jogl

@Override
public void drawOval(int x, int y, int width, int height, boolean fill) {
 ELLIPSE.setFrame(x, y, width, height);
 if (fill) {
  fill(ELLIPSE, true);
 } else {
  draw(ELLIPSE);
 }
}
origin: org.piccolo2d/piccolo2d-swt

/**
 * Resets the path to an ellipse positioned at the coordinate provided with
 * the dimensions provided.
 * 
 * @param x left of the ellipse
 * @param y top of the ellipse
 * @param width width of the ellipse
 * @param height height of the ellipse
 */
public void setPathToEllipse(final float x, final float y, final float width, final float height) {
  TEMP_ELLIPSE.setFrame(x, y, width, height);
  setShape(TEMP_ELLIPSE);
}
origin: brandonborkholder/glg2d

@Override
public void drawOval(int x, int y, int width, int height, boolean fill) {
 ELLIPSE.setFrame(x, y, width, height);
 if (fill) {
  fill(ELLIPSE, true);
 } else {
  draw(ELLIPSE);
 }
}
origin: org.piccolo2d/piccolo2d-swt

/**
 * Creates a path representing an ellipse that covers the rectangle
 * provided.
 * 
 * @param x left of rectangle
 * @param y top of rectangle
 * @param width width of rectangle
 * @param height height of rectangle
 * @return created ellipse
 */
public static PSWTPath createEllipse(final float x, final float y, final float width, final float height) {
  TEMP_ELLIPSE.setFrame(x, y, width, height);
  final PSWTPath result = new PSWTPath(TEMP_ELLIPSE);
  result.setPaint(Color.white);
  return result;
}
origin: org.processing/core

@Override
protected void ellipseImpl(float x, float y, float w, float h) {
 ellipse.setFrame(x, y, w, h);
 drawShape(ellipse);
}
origin: com.metsci.ext.com.kitfox.svg/svg-salamander

protected void build() throws SVGException
{
  super.build();
  StyleAttribute sty = new StyleAttribute();
  if (getPres(sty.setName("cx")))
  {
    cx = sty.getFloatValueWithUnits();
  }
  if (getPres(sty.setName("cy")))
  {
    cy = sty.getFloatValueWithUnits();
  }
  if (getPres(sty.setName("r")))
  {
    r = sty.getFloatValueWithUnits();
  }
  circle.setFrame(cx - r, cy - r, r * 2f, r * 2f);
}
origin: cytoscape.corelibs/render-immed

public Shape getShape(float xMin, float yMin, float xMax, float yMax) {
  ellipse.setFrame(xMin, yMin, xMax - xMin, yMax - yMin);
  return ellipse;
}
origin: blackears/svgSalamander

@Override
protected void build() throws SVGException
{
  super.build();
  StyleAttribute sty = new StyleAttribute();
  if (getPres(sty.setName("cx")))
  {
    cx = sty.getFloatValueWithUnits();
  }
  if (getPres(sty.setName("cy")))
  {
    cy = sty.getFloatValueWithUnits();
  }
  if (getPres(sty.setName("r")))
  {
    r = sty.getFloatValueWithUnits();
  }
  circle.setFrame(cx - r, cy - r, r * 2f, r * 2f);
}
origin: guru.nidi.com.kitfox/svgSalamander

@Override
protected void build() throws SVGException
{
  super.build();
  StyleAttribute sty = new StyleAttribute();
  if (getPres(sty.setName("cx")))
  {
    cx = sty.getFloatValueWithUnits();
  }
  if (getPres(sty.setName("cy")))
  {
    cy = sty.getFloatValueWithUnits();
  }
  if (getPres(sty.setName("r")))
  {
    r = sty.getFloatValueWithUnits();
  }
  circle.setFrame(cx - r, cy - r, r * 2f, r * 2f);
}
origin: com.metsci.ext.com.kitfox.svg/svg-salamander

protected void build() throws SVGException
{
  super.build();
  StyleAttribute sty = new StyleAttribute();
  if (getPres(sty.setName("cx")))
  {
    cx = sty.getFloatValueWithUnits();
  }
  if (getPres(sty.setName("cy")))
  {
    cy = sty.getFloatValueWithUnits();
  }
  if (getPres(sty.setName("rx")))
  {
    rx = sty.getFloatValueWithUnits();
  }
  if (getPres(sty.setName("ry")))
  {
    ry = sty.getFloatValueWithUnits();
  }
  ellipse.setFrame(cx - rx, cy - ry, rx * 2f, ry * 2f);
}
origin: com.googlecode.playn/playn-java

@Override
public Canvas strokeCircle(float x, float y, float radius) {
 currentState().prepareStroke(gfx);
 ellipse.setFrame(x - radius, y - radius, 2 * radius, 2 * radius);
 gfx.draw(ellipse);
 isDirty = true;
 return this;
}
java.awt.geomEllipse2D$FloatsetFrame

Popular methods of Ellipse2D$Float

  • <init>
  • getBounds2D
  • clone
  • getMaxX
  • getMaxY
  • getMinX
  • getMinY

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now