Class OvalElement

java.lang.Object
org.openscience.cdk.renderer.elements.OvalElement
All Implemented Interfaces:
IRenderingElement
Direct Known Subclasses:
RingElement

public class OvalElement extends Object implements IRenderingElement
An oval element (should) have both a width and a height.
Source code:
main
Belongs to CDK module:
renderbasic
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final Color
    The color to draw the oval.
    final boolean
    If true, draw the oval as filled.
    final double
    The radius of the oval.
    final double
    The stroke width.
    final double
    The x-coordinate of the center of the oval.
    final double
    The y-coordinate of the center of the oval.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OvalElement(double xCoord, double yCoord, double radius, boolean fill, Color color)
     
    OvalElement(double xCoord, double yCoord, double radius, double stroke, boolean fill, Color color)
    Make an oval with a particular fill and color.
    OvalElement(double xCoord, double yCoord, double radius, Color color)
    Make an oval with the supplied radius.
    OvalElement(double xCoord, double yCoord, Color color)
    Make an oval with a default radius of 10.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Converts this TextElement into widget specific objects.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • xCoord

      public final double xCoord
      The x-coordinate of the center of the oval.
    • yCoord

      public final double yCoord
      The y-coordinate of the center of the oval.
    • radius

      public final double radius
      The radius of the oval.
    • stroke

      public final double stroke
      The stroke width.
    • fill

      public final boolean fill
      If true, draw the oval as filled.
    • color

      public final Color color
      The color to draw the oval.
  • Constructor Details

    • OvalElement

      public OvalElement(double xCoord, double yCoord, Color color)
      Make an oval with a default radius of 10.
      Parameters:
      xCoord - the x-coordinate of the center of the oval
      yCoord - the y-coordinate of the center of the oval
      color - the color of the oval
    • OvalElement

      public OvalElement(double xCoord, double yCoord, double radius, Color color)
      Make an oval with the supplied radius.
      Parameters:
      xCoord - the x-coordinate of the center of the oval
      yCoord - the y-coordinate of the center of the oval
      radius - the radius of the oval
      color - the color of the oval
    • OvalElement

      public OvalElement(double xCoord, double yCoord, double radius, double stroke, boolean fill, Color color)
      Make an oval with a particular fill and color.
      Parameters:
      xCoord - the x-coordinate of the center of the oval
      yCoord - the y-coordinate of the center of the oval
      radius - the radius of the oval
      fill - if true, fill the oval when drawing
      color - the color of the oval
    • OvalElement

      public OvalElement(double xCoord, double yCoord, double radius, boolean fill, Color color)
  • Method Details