Package org.pepstock.charba.client.data
Class Clip
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.data.Clip
-
- All Implemented Interfaces:
IsArea
public final class Clip extends NativeObjectContainer implements IsArea
Defines how to clip relative to the chart area.
Positive value allows overflow, negative value clips that many pixels inside the chart area.
If setsfalse, that means that CHART.JS will use chart area dimension.
Withfalsevalue, the properties will be:- Left is 0
- Top is 0
- Right is area right
- Bottom is area bottom
- Author:
- Andrea "Stock" Stocchero
- See Also:
ChartAreaNode
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetBottom()Returns the clip bottom.doublegetLeft()Returns the clip left.doublegetRight()Returns the clip right.doublegetTop()Returns the clip top.booleanisBottom()Returnsfalseif the clip bottom has been set.booleanisLeft()Returnsfalseif the clip left has been set.booleanisRight()Returnsfalseif the clip right has been set.booleanisTop()Returnsfalseif the clip top has been set.voidset(double clip)Sets the clip size to all dimensions.voidsetBottom(boolean clip)Sets the clip bottom.voidsetBottom(double clip)Sets the clip bottom.voidsetLeft(boolean clip)Sets the clip left.voidsetLeft(double clip)Sets the clip left.voidsetRight(boolean clip)Sets the clip right.voidsetRight(double clip)Sets the clip right.voidsetTop(boolean clip)Sets the clip top.voidsetTop(double clip)Sets the clip top.-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkAndGetColor, checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Method Detail
-
set
public void set(double clip)
Sets the clip size to all dimensions.- Parameters:
clip- clip to apply to all dimensions.
-
setLeft
public void setLeft(double clip)
Sets the clip left.- Parameters:
clip- the clip left.
-
setLeft
public void setLeft(boolean clip)
Sets the clip left.- Parameters:
clip- the clip left.
-
getLeft
public double getLeft()
Returns the clip left.
-
isLeft
public boolean isLeft()
Returnsfalseif the clip left has been set.- Returns:
falseif the clip left has been set
-
setRight
public void setRight(double clip)
Sets the clip right.- Parameters:
clip- the clip right.
-
setRight
public void setRight(boolean clip)
Sets the clip right.- Parameters:
clip- the clip right.
-
getRight
public double getRight()
Returns the clip right.
-
isRight
public boolean isRight()
Returnsfalseif the clip right has been set.- Returns:
falseif the clip right has been set
-
setTop
public void setTop(double clip)
Sets the clip top.- Parameters:
clip- the clip top.
-
setTop
public void setTop(boolean clip)
Sets the clip top.- Parameters:
clip- the clip top.
-
getTop
public double getTop()
Returns the clip top.
-
isTop
public boolean isTop()
Returnsfalseif the clip top has been set.- Returns:
falseif the clip top has been set
-
setBottom
public void setBottom(double clip)
Sets the clip bottom.- Parameters:
clip- the clip bottom.
-
setBottom
public void setBottom(boolean clip)
Sets the clip bottom.- Parameters:
clip- the clip bottom.
-
getBottom
public double getBottom()
Returns the clip bottom.
-
isBottom
public boolean isBottom()
Returnsfalseif the clip bottom has been set.- Returns:
falseif the clip bottom has been set
-
-