Class Area
- java.lang.Object
-
- org.pepstock.charba.client.colors.Area
-
- All Implemented Interfaces:
IsArea
public final class Area extends Object implements IsArea
Contains the coordinates of an area.
Used inside the canvas object factory.- Author:
- Andrea "Stock" Stocchero
- See Also:
CanvasObjectFactory
-
-
Constructor Summary
Constructors Constructor Description Area()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getBottom()
Returns the bottom coordinate.double
getLeft()
Returns the left coordinate.double
getRight()
Returns the right coordinate.double
getTop()
Returns the top coordinate.void
setBottom(double bottom)
Sets the bottom coordinate.void
setLeft(double left)
Sets the left coordinate.void
setRight(double right)
Sets the right coordinate.void
setTop(double top)
Sets the top coordinate.String
toString()
-
-
-
Method Detail
-
getLeft
public double getLeft()
Returns the left coordinate.
-
setLeft
public void setLeft(double left)
Sets the left coordinate.- Parameters:
left
- the left to set
-
getTop
public double getTop()
Returns the top coordinate.
-
setTop
public void setTop(double top)
Sets the top coordinate.- Parameters:
top
- the top to set
-
getRight
public double getRight()
Returns the right coordinate.
-
setRight
public void setRight(double right)
Sets the right coordinate.- Parameters:
right
- the right to set
-
getBottom
public double getBottom()
Returns the bottom coordinate.
-
setBottom
public void setBottom(double bottom)
Sets the bottom coordinate.- Parameters:
bottom
- the bottom to set
-
-