Oxygen XML Editor 12.2 Author API

ro.sync.exml.view.graphics
Class Ellipse

java.lang.Object
  extended by ro.sync.exml.view.graphics.Ellipse
All Implemented Interfaces:
Shape

public class Ellipse
extends java.lang.Object
implements Shape

The class describes an ellipse that is defined by a bounding rectangle.


Field Summary
 int height
          The overall height of this ellipse.
 int width
          The overall width of this ellipse.
 int x
          The x coordinate of the upper left corner of this ellipse.
 int y
          The y coordinate of the upper left corner of thise llipse.
 
Constructor Summary
Ellipse(int x, int y, int width, int height)
          Constructor.
 
Method Summary
 Rectangle getBounds()
           
 java.lang.String toString()
           
 Shape translate(int tx, int ty)
          Translate the shape into another one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public final int x
The x coordinate of the upper left corner of this ellipse.


y

public final int y
The y coordinate of the upper left corner of thise llipse.


width

public final int width
The overall width of this ellipse.


height

public final int height
The overall height of this ellipse.

Constructor Detail

Ellipse

public Ellipse(int x,
               int y,
               int width,
               int height)
Constructor.

Parameters:
x - The bounding rectangle x pos.
y - The bounding rectangle y pos.
width - The bounding rectangle width.
height - The bounding rectangle height.
Method Detail

getBounds

public Rectangle getBounds()
Specified by:
getBounds in interface Shape
Returns:
The bounds of this shape.
See Also:
Shape.getBounds()

translate

public Shape translate(int tx,
                       int ty)
Description copied from interface: Shape
Translate the shape into another one.

Specified by:
translate in interface Shape
Parameters:
tx - the distance by which coordinates are translated in the X axis direction
ty - the distance by which coordinates are translated in the Y axis direction
Returns:
The newly translated shape
See Also:
Shape.translate(int, int)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

Oxygen XML Editor 12.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.