Package ro.sync.exml.view.graphics
Interface Shape
- All Known Implementing Classes:
BaseShape,Circle,Ellipse,ImageLayoutInformation,Polygon,Rectangle
@API(type=EXTENDABLE,
src=PRIVATE)
public interface Shape
Common shape
-
Method Summary
-
Method Details
-
getBounds
Rectangle getBounds()- Returns:
- The bounds of this shape.
-
translate
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
-
contains
boolean contains(int x, int y) Check if the specified coordinates are inside the shape.- Parameters:
x- The horizontal coordinate.y- The vertical coordinate.- Returns:
trueif the point is inside the shape.falseotherwise.
-
contains
boolean contains(int x, int y, int w, int h) Check if the specified coordinates are inside the shape.- Parameters:
x- The horizontal coordinate.y- The vertical coordinate.w- The width.h- The height.- Returns:
trueif the point is inside the shape.falseotherwise.
-