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 doublegetBottom()Returns the bottom coordinate.doublegetLeft()Returns the left coordinate.doublegetRight()Returns the right coordinate.doublegetTop()Returns the top coordinate.voidsetBottom(double bottom)Sets the bottom coordinate.voidsetLeft(double left)Sets the left coordinate.voidsetRight(double right)Sets the right coordinate.voidsetTop(double top)Sets the top coordinate.StringtoString()
-
-
-
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
-
-