Package org.pepstock.charba.client.items
Interface IsArea
-
- All Known Implementing Classes:
Area
,AxisItem
,BaseBoxItem
,BaseBoxNodeItem
,ChartAreaNode
,Clip
,LegendNode
,ScaleItem
,SubtitleNode
,TitleNode
public interface IsArea
Defines an area dimensions.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description double
getBottom()
Returns the bottom of area.default double
getHeight()
Returns the height in pixel.double
getLeft()
Returns the left of area.double
getRight()
Returns the right of area.double
getTop()
Returns the top of area.default double
getWidth()
Returns the width in pixel.static boolean
isConsistent(IsArea area)
Returnstrue
if the are is consistent, otherwisefalse
.
-
-
-
Method Detail
-
isConsistent
static boolean isConsistent(IsArea area)
Returnstrue
if the are is consistent, otherwisefalse
.- Parameters:
area
- area instance to be checked- Returns:
true
if the are is consistent, otherwisefalse
-
getTop
double getTop()
Returns the top of area.- Returns:
- the top of area.
-
getRight
double getRight()
Returns the right of area.- Returns:
- the right of area.
-
getBottom
double getBottom()
Returns the bottom of area.- Returns:
- the bottom of area.
-
getLeft
double getLeft()
Returns the left of area.- Returns:
- the left of area.
-
getWidth
default double getWidth()
Returns the width in pixel.- Returns:
- the width in pixel.
-
getHeight
default double getHeight()
Returns the height in pixel.- Returns:
- the height in pixel.
-
-