Package org.apache.poi.hssf.usermodel
Class HSSFDataBarFormatting
- java.lang.Object
-
- org.apache.poi.hssf.usermodel.HSSFDataBarFormatting
-
- All Implemented Interfaces:
DataBarFormatting
public final class HSSFDataBarFormatting extends Object implements DataBarFormatting
High level representation for DataBar / Data-Bar Formatting component of Conditional Formatting settings
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHSSFDataBarFormatting(CFRule12Record cfRule12Record, HSSFSheet sheet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HSSFConditionalFormattingThresholdcreateThreshold()HSSFExtendedColorgetColor()HSSFConditionalFormattingThresholdgetMaxThreshold()The threshold that defines "everything from here up is maximum"HSSFConditionalFormattingThresholdgetMinThreshold()The threshold that defines "everything from here down is minimum"intgetWidthMax()How much of the cell width, in %, should be given to the max value?intgetWidthMin()How much of the cell width, in %, should be given to the min value?booleanisIconOnly()Should Icon + Value be displayed, or only the Icon?booleanisLeftToRight()Is the bar drawn from Left-to-Right, or from Right-to-LeftvoidsetColor(Color color)voidsetIconOnly(boolean only)Control if only the Icon is shown, or Icon + ValuevoidsetLeftToRight(boolean ltr)Control if the bar is drawn from Left-to-Right, or from Right-to-LeftvoidsetWidthMax(int width)voidsetWidthMin(int width)
-
-
-
Constructor Detail
-
HSSFDataBarFormatting
protected HSSFDataBarFormatting(CFRule12Record cfRule12Record, HSSFSheet sheet)
-
-
Method Detail
-
isLeftToRight
public boolean isLeftToRight()
Description copied from interface:DataBarFormattingIs the bar drawn from Left-to-Right, or from Right-to-Left- Specified by:
isLeftToRightin interfaceDataBarFormatting
-
setLeftToRight
public void setLeftToRight(boolean ltr)
Description copied from interface:DataBarFormattingControl if the bar is drawn from Left-to-Right, or from Right-to-Left- Specified by:
setLeftToRightin interfaceDataBarFormatting
-
getWidthMin
public int getWidthMin()
Description copied from interface:DataBarFormattingHow much of the cell width, in %, should be given to the min value?- Specified by:
getWidthMinin interfaceDataBarFormatting
-
setWidthMin
public void setWidthMin(int width)
- Specified by:
setWidthMinin interfaceDataBarFormatting
-
getWidthMax
public int getWidthMax()
Description copied from interface:DataBarFormattingHow much of the cell width, in %, should be given to the max value?- Specified by:
getWidthMaxin interfaceDataBarFormatting
-
setWidthMax
public void setWidthMax(int width)
- Specified by:
setWidthMaxin interfaceDataBarFormatting
-
getColor
public HSSFExtendedColor getColor()
- Specified by:
getColorin interfaceDataBarFormatting
-
setColor
public void setColor(Color color)
- Specified by:
setColorin interfaceDataBarFormatting
-
getMinThreshold
public HSSFConditionalFormattingThreshold getMinThreshold()
Description copied from interface:DataBarFormattingThe threshold that defines "everything from here down is minimum"- Specified by:
getMinThresholdin interfaceDataBarFormatting
-
getMaxThreshold
public HSSFConditionalFormattingThreshold getMaxThreshold()
Description copied from interface:DataBarFormattingThe threshold that defines "everything from here up is maximum"- Specified by:
getMaxThresholdin interfaceDataBarFormatting
-
isIconOnly
public boolean isIconOnly()
Description copied from interface:DataBarFormattingShould Icon + Value be displayed, or only the Icon?- Specified by:
isIconOnlyin interfaceDataBarFormatting
-
setIconOnly
public void setIconOnly(boolean only)
Description copied from interface:DataBarFormattingControl if only the Icon is shown, or Icon + Value- Specified by:
setIconOnlyin interfaceDataBarFormatting
-
createThreshold
public HSSFConditionalFormattingThreshold createThreshold()
-
-