Package ro.sync.exml.view.graphics
Class Ellipse
- java.lang.Object
-
- ro.sync.exml.view.graphics.BaseShape
-
- ro.sync.exml.view.graphics.Ellipse
-
-
Constructor Summary
Constructors Constructor Description Ellipse(int x, int y, int width, int height)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(int x, int y)
Warning ! This was not implemented !Rectangle
getBounds()
java.lang.String
toString()
Shape
translate(int tx, int ty)
Translate the shape into another one.
-
-
-
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.
-
-
Method Detail
-
getBounds
public Rectangle getBounds()
- Returns:
- The bounds of this shape.
- See Also:
Shape.getBounds()
-
contains
public boolean contains(int x, int y)
Warning ! This was not implemented !- Parameters:
x
- The horizontal coordinate.y
- The vertical coordinate.- Returns:
true
if the point is inside the shape.false
otherwise.- See Also:
Shape.contains(int, int)
-
translate
public Shape translate(int tx, int ty)
Description copied from interface:Shape
Translate the shape into another one.- Parameters:
tx
- the distance by which coordinates are translated in the X axis directionty
- 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 classjava.lang.Object
- See Also:
Object.toString()
-
-