Class RingElement
- java.lang.Object
-
- org.openscience.cdk.renderer.elements.OvalElement
-
- org.openscience.cdk.renderer.elements.RingElement
-
- All Implemented Interfaces:
IRenderingElement
public class RingElement extends OvalElement implements IRenderingElement
A ring is just a circle - in other words, an oval whose width and height are the same.- Source code:
- main
- Belongs to CDK module:
- renderbasic
-
-
Constructor Summary
Constructors Constructor Description RingElement(double x, double y, double radius, Color color)
Make a ring element centered on (x, y) with radius and color given.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(IRenderingVisitor v)
Converts thisTextElement
into widget specific objects.
-
-
-
Constructor Detail
-
RingElement
public RingElement(double x, double y, double radius, Color color)
Make a ring element centered on (x, y) with radius and color given.- Parameters:
x
- the x-coordinate of the ring centery
- the y-coordinate of the ring centerradius
- the radius of the circlecolor
- the color of the circle
-
-
Method Detail
-
accept
public void accept(IRenderingVisitor v)
Converts thisTextElement
into widget specific objects.- Specified by:
accept
in interfaceIRenderingElement
- Overrides:
accept
in classOvalElement
- Parameters:
v
- Toolkit specific widget factory.
-
-