Class RingElement
java.lang.Object
org.openscience.cdk.renderer.elements.OvalElement
org.openscience.cdk.renderer.elements.RingElement
- All Implemented Interfaces:
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
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionRingElement
(double x, double y, double radius, Color color) Make a ring element centered on (x, y) with radius and color given. -
Method Summary
-
Constructor Details
-
RingElement
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 Details
-
accept
Converts thisTextElement
into widget specific objects.- Specified by:
accept
in interfaceIRenderingElement
- Overrides:
accept
in classOvalElement
- Parameters:
v
- Toolkit specific widget factory.
-