Package io.keikai.model.impl
Class DataBarImpl
- java.lang.Object
-
- io.keikai.model.impl.DataBarImpl
-
- All Implemented Interfaces:
SDataBar
,Serializable
public class DataBarImpl extends Object implements SDataBar, Serializable
- Author:
- henri
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataBarImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValueObject(SCFValueObject vobject)
DataBarImpl
cloneDataBar(SBook book)
SColor
getAxisColor()
Return the axis color of the bar in extLst.String
getAxisPosition()
Return the axisPosition of this bar in extLst.SColor
getBorderColor()
Return the border color of the bar in extLst.List<SCFValueObject>
getCFValueObjects()
Returns the value objects.SColor
getColor()
Returns the color of the barString
getDirection()
Return the direction of this bar in extLst.int
getMaxLength()
Returns the maximum length in percentage of this data bar; default to 90int
getMinLength()
Returns the minimum length in percentage of this data bar; default to 10.SColor
getNegativeBorderColor()
Return the negative border color of the bar in extLst.SColor
getNegativeFillColor()
Return the negative fill color of the bar in extLst.boolean
isBorder()
Return whether enables border or not in extLst.boolean
isGradient()
Return whether enables gradient or not in extLst.boolean
isNegativeBarBorderColorSameAsPositive()
Return whether enables negativeBarBorderColorSameAsPositive in extLst.boolean
isNegativeBarColorSameAsPositive()
Return whether enables negativeBarColorSameAsPositive in extLst.boolean
isShowValue()
Returns whether show the value in the data barvoid
setAxisColor(SColor axisColor)
void
setAxisPosition(String axisPosition)
void
setBorder(boolean border)
void
setBorderColor(SColor borderColor)
void
setColor(SColor color)
void
setDirection(String direction)
void
setGradient(boolean gradient)
void
setMaxLength(int maxLength)
void
setMinLength(int minLength)
void
setNegativeBarBorderColorSameAsPositive(boolean negativeBarBorderColorSameAsPositive)
void
setNegativeBarColorSameAsPositive(boolean negativeBarColorSameAsPositive)
void
setNegativeBorderColor(SColor negativeBorderColor)
void
setNegativeFillColor(SColor negativeFillColor)
void
setShowValue(boolean b)
-
-
-
Method Detail
-
getCFValueObjects
public List<SCFValueObject> getCFValueObjects()
Description copied from interface:SDataBar
Returns the value objects.- Specified by:
getCFValueObjects
in interfaceSDataBar
- Returns:
-
addValueObject
public void addValueObject(SCFValueObject vobject)
-
getColor
public SColor getColor()
Description copied from interface:SDataBar
Returns the color of the bar
-
setColor
public void setColor(SColor color)
-
getMinLength
public int getMinLength()
Description copied from interface:SDataBar
Returns the minimum length in percentage of this data bar; default to 10.- Specified by:
getMinLength
in interfaceSDataBar
-
setMinLength
public void setMinLength(int minLength)
-
getMaxLength
public int getMaxLength()
Description copied from interface:SDataBar
Returns the maximum length in percentage of this data bar; default to 90- Specified by:
getMaxLength
in interfaceSDataBar
-
setMaxLength
public void setMaxLength(int maxLength)
-
isShowValue
public boolean isShowValue()
Description copied from interface:SDataBar
Returns whether show the value in the data bar- Specified by:
isShowValue
in interfaceSDataBar
-
setShowValue
public void setShowValue(boolean b)
-
getBorderColor
public SColor getBorderColor()
Description copied from interface:SDataBar
Return the border color of the bar in extLst. since 5.9.0- Specified by:
getBorderColor
in interfaceSDataBar
- Returns:
-
setBorderColor
public void setBorderColor(SColor borderColor)
-
getNegativeBorderColor
public SColor getNegativeBorderColor()
Description copied from interface:SDataBar
Return the negative border color of the bar in extLst. since 5.9.0- Specified by:
getNegativeBorderColor
in interfaceSDataBar
- Returns:
-
setNegativeBorderColor
public void setNegativeBorderColor(SColor negativeBorderColor)
-
getNegativeFillColor
public SColor getNegativeFillColor()
Description copied from interface:SDataBar
Return the negative fill color of the bar in extLst. since 5.9.0- Specified by:
getNegativeFillColor
in interfaceSDataBar
- Returns:
-
setNegativeFillColor
public void setNegativeFillColor(SColor negativeFillColor)
-
getAxisColor
public SColor getAxisColor()
Description copied from interface:SDataBar
Return the axis color of the bar in extLst. since 5.9.0- Specified by:
getAxisColor
in interfaceSDataBar
- Returns:
-
setAxisColor
public void setAxisColor(SColor axisColor)
-
isBorder
public boolean isBorder()
Description copied from interface:SDataBar
Return whether enables border or not in extLst. Default: false since 5.9.0
-
setBorder
public void setBorder(boolean border)
-
isGradient
public boolean isGradient()
Description copied from interface:SDataBar
Return whether enables gradient or not in extLst. Default: true since 5.9.0- Specified by:
isGradient
in interfaceSDataBar
- Returns:
-
setGradient
public void setGradient(boolean gradient)
-
isNegativeBarColorSameAsPositive
public boolean isNegativeBarColorSameAsPositive()
Description copied from interface:SDataBar
Return whether enables negativeBarColorSameAsPositive in extLst. Default: true since 5.9.0- Specified by:
isNegativeBarColorSameAsPositive
in interfaceSDataBar
- Returns:
-
setNegativeBarColorSameAsPositive
public void setNegativeBarColorSameAsPositive(boolean negativeBarColorSameAsPositive)
-
isNegativeBarBorderColorSameAsPositive
public boolean isNegativeBarBorderColorSameAsPositive()
Description copied from interface:SDataBar
Return whether enables negativeBarBorderColorSameAsPositive in extLst. Default: true since 5.9.0- Specified by:
isNegativeBarBorderColorSameAsPositive
in interfaceSDataBar
- Returns:
-
setNegativeBarBorderColorSameAsPositive
public void setNegativeBarBorderColorSameAsPositive(boolean negativeBarBorderColorSameAsPositive)
-
getAxisPosition
public String getAxisPosition()
Description copied from interface:SDataBar
Return the axisPosition of this bar in extLst. Default: "auto" since 5.9.0- Specified by:
getAxisPosition
in interfaceSDataBar
- Returns:
-
setAxisPosition
public void setAxisPosition(String axisPosition)
-
getDirection
public String getDirection()
Description copied from interface:SDataBar
Return the direction of this bar in extLst. Default: "leftToRight" since 5.9.0- Specified by:
getDirection
in interfaceSDataBar
- Returns:
-
setDirection
public void setDirection(String direction)
-
cloneDataBar
public DataBarImpl cloneDataBar(SBook book)
-
-