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 SummaryAll 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.NativeObjectContainercheckDefaultValuesArgument, 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, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 
- 
 
- 
- 
- 
Method Detail- 
setpublic void set(double clip) Sets the clip size to all dimensions.- Parameters:
- clip- clip to apply to all dimensions.
 
 - 
setLeftpublic void setLeft(double clip) Sets the clip left.- Parameters:
- clip- the clip left.
 
 - 
setLeftpublic void setLeft(boolean clip) Sets the clip left.- Parameters:
- clip- the clip left.
 
 - 
getLeftpublic double getLeft() Returns the clip left.
 - 
isLeftpublic boolean isLeft() Returnsfalseif the clip left has been set.- Returns:
- falseif the clip left has been set
 
 - 
setRightpublic void setRight(double clip) Sets the clip right.- Parameters:
- clip- the clip right.
 
 - 
setRightpublic void setRight(boolean clip) Sets the clip right.- Parameters:
- clip- the clip right.
 
 - 
getRightpublic double getRight() Returns the clip right.
 - 
isRightpublic boolean isRight() Returnsfalseif the clip right has been set.- Returns:
- falseif the clip right has been set
 
 - 
setToppublic void setTop(double clip) Sets the clip top.- Parameters:
- clip- the clip top.
 
 - 
setToppublic void setTop(boolean clip) Sets the clip top.- Parameters:
- clip- the clip top.
 
 - 
getToppublic double getTop() Returns the clip top.
 - 
isToppublic boolean isTop() Returnsfalseif the clip top has been set.- Returns:
- falseif the clip top has been set
 
 - 
setBottompublic void setBottom(double clip) Sets the clip bottom.- Parameters:
- clip- the clip bottom.
 
 - 
setBottompublic void setBottom(boolean clip) Sets the clip bottom.- Parameters:
- clip- the clip bottom.
 
 - 
getBottompublic double getBottom() Returns the clip bottom.
 - 
isBottompublic boolean isBottom() Returnsfalseif the clip bottom has been set.- Returns:
- falseif the clip bottom has been set
 
 
- 
 
-