Package org.apache.poi.hssf.usermodel
Class HSSFDataBarFormatting
java.lang.Object
org.apache.poi.hssf.usermodel.HSSFDataBarFormatting
- All Implemented Interfaces:
DataBarFormatting
High level representation for DataBar / Data-Bar Formatting
component of Conditional Formatting settings
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
HSSFDataBarFormatting
(CFRule12Record cfRule12Record, HSSFSheet sheet) -
Method Summary
Modifier and TypeMethodDescriptiongetColor()
The threshold that defines "everything from here up is maximum"The threshold that defines "everything from here down is minimum"int
How much of the cell width, in %, should be given to the max value?int
How much of the cell width, in %, should be given to the min value?boolean
Should Icon + Value be displayed, or only the Icon?boolean
Is the bar drawn from Left-to-Right, or from Right-to-Leftvoid
void
setIconOnly
(boolean only) Control if only the Icon is shown, or Icon + Valuevoid
setLeftToRight
(boolean ltr) Control if the bar is drawn from Left-to-Right, or from Right-to-Leftvoid
setWidthMax
(int width) void
setWidthMin
(int width)
-
Constructor Details
-
HSSFDataBarFormatting
-
-
Method Details
-
isLeftToRight
public boolean isLeftToRight()Description copied from interface:DataBarFormatting
Is the bar drawn from Left-to-Right, or from Right-to-Left- Specified by:
isLeftToRight
in interfaceDataBarFormatting
-
setLeftToRight
public void setLeftToRight(boolean ltr) Description copied from interface:DataBarFormatting
Control if the bar is drawn from Left-to-Right, or from Right-to-Left- Specified by:
setLeftToRight
in interfaceDataBarFormatting
-
getWidthMin
public int getWidthMin()Description copied from interface:DataBarFormatting
How much of the cell width, in %, should be given to the min value?- Specified by:
getWidthMin
in interfaceDataBarFormatting
-
setWidthMin
public void setWidthMin(int width) - Specified by:
setWidthMin
in interfaceDataBarFormatting
-
getWidthMax
public int getWidthMax()Description copied from interface:DataBarFormatting
How much of the cell width, in %, should be given to the max value?- Specified by:
getWidthMax
in interfaceDataBarFormatting
-
setWidthMax
public void setWidthMax(int width) - Specified by:
setWidthMax
in interfaceDataBarFormatting
-
getColor
- Specified by:
getColor
in interfaceDataBarFormatting
-
setColor
- Specified by:
setColor
in interfaceDataBarFormatting
-
getMinThreshold
Description copied from interface:DataBarFormatting
The threshold that defines "everything from here down is minimum"- Specified by:
getMinThreshold
in interfaceDataBarFormatting
-
getMaxThreshold
Description copied from interface:DataBarFormatting
The threshold that defines "everything from here up is maximum"- Specified by:
getMaxThreshold
in interfaceDataBarFormatting
-
isIconOnly
public boolean isIconOnly()Description copied from interface:DataBarFormatting
Should Icon + Value be displayed, or only the Icon?- Specified by:
isIconOnly
in interfaceDataBarFormatting
-
setIconOnly
public void setIconOnly(boolean only) Description copied from interface:DataBarFormatting
Control if only the Icon is shown, or Icon + Value- Specified by:
setIconOnly
in interfaceDataBarFormatting
-
createThreshold
-