|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.hssf.record.RecordBase
org.apache.poi.hssf.record.Record
org.apache.poi.hssf.record.StandardRecord
org.apache.poi.hssf.record.CFRuleBase
org.apache.poi.hssf.record.CFRule12Record
public final class CFRule12Record
Conditional Formatting v12 Rule Record (0x087A).
This is for newer-style Excel conditional formattings, from Excel 2007 onwards.
CFRuleRecord is used where the condition type is
CFRuleBase.CONDITION_TYPE_CELL_VALUE_IS or CFRuleBase.CONDITION_TYPE_FORMULA,
this is only used for the other types
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.poi.hssf.record.CFRuleBase |
|---|
CFRuleBase.ComparisonOperator |
| Field Summary | |
|---|---|
static short |
sid
|
| Constructor Summary | |
|---|---|
CFRule12Record(RecordInputStream in)
|
|
| Method Summary | |
|---|---|
CFRule12Record |
clone()
|
boolean |
containsColorGradientBlock()
|
boolean |
containsDataBarBlock()
|
boolean |
containsMultiStateBlock()
|
static CFRule12Record |
create(HSSFSheet sheet,
byte comparisonOperation,
java.lang.String formulaText1,
java.lang.String formulaText2)
Creates a new comparison operation rule |
static CFRule12Record |
create(HSSFSheet sheet,
byte comparisonOperation,
java.lang.String formulaText1,
java.lang.String formulaText2,
java.lang.String formulaTextScale)
Creates a new comparison operation rule |
static CFRule12Record |
create(HSSFSheet sheet,
ExtendedColor color)
Creates a new Data Bar formatting |
static CFRule12Record |
create(HSSFSheet sheet,
IconMultiStateFormatting.IconSet iconSet)
Creates a new Icon Set / Multi-State formatting |
static CFRule12Record |
create(HSSFSheet sheet,
java.lang.String formulaText)
Creates a new comparison operation rule |
ColorGradientFormatting |
createColorGradientFormatting()
|
static CFRule12Record |
createColorScale(HSSFSheet sheet)
Creates a new Color Scale / Color Gradient formatting |
DataBarFormatting |
createDataBarFormatting()
|
IconMultiStateFormatting |
createMultiStateFormatting()
|
CellRangeAddress |
getAssociatedRange()
|
ColorGradientFormatting |
getColorGradientFormatting()
|
DataBarFormatting |
getDataBarFormatting()
|
protected int |
getDataSize()
|
FtrHeader |
getFutureHeader()
|
short |
getFutureRecordType()
|
IconMultiStateFormatting |
getMultiStateFormatting()
|
Ptg[] |
getParsedExpressionScale()
get the stack of the scale expression as a list |
int |
getPriority()
|
short |
getSid()
return the non static version of the id for this record. |
void |
serialize(LittleEndianOutput out)
called by the class that is responsible for writing this sucker. |
void |
setParsedExpressionScale(Ptg[] ptgs)
|
void |
setPriority(int priority)
|
java.lang.String |
toString()
get a string representation of the record (for biffview/debugging) |
| Methods inherited from class org.apache.poi.hssf.record.StandardRecord |
|---|
getRecordSize, serialize |
| Methods inherited from class org.apache.poi.hssf.record.Record |
|---|
cloneViaReserialise, serialize |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final short sid
| Constructor Detail |
|---|
public CFRule12Record(RecordInputStream in)
| Method Detail |
|---|
public static CFRule12Record create(HSSFSheet sheet,
java.lang.String formulaText)
sheet - the sheetformulaText - the first formula text
public static CFRule12Record create(HSSFSheet sheet,
byte comparisonOperation,
java.lang.String formulaText1,
java.lang.String formulaText2)
sheet - the sheetcomparisonOperation - the comparison operationformulaText1 - the first formula textformulaText2 - the second formula text
public static CFRule12Record create(HSSFSheet sheet,
byte comparisonOperation,
java.lang.String formulaText1,
java.lang.String formulaText2,
java.lang.String formulaTextScale)
sheet - the sheetcomparisonOperation - the comparison operationformulaText1 - the first formula textformulaText2 - the second formula textformulaTextScale - the scale to apply for the comparison
public static CFRule12Record create(HSSFSheet sheet,
ExtendedColor color)
sheet - the sheetcolor - the data bar color
public static CFRule12Record create(HSSFSheet sheet,
IconMultiStateFormatting.IconSet iconSet)
sheet - the sheeticonSet - the icon set
public static CFRule12Record createColorScale(HSSFSheet sheet)
sheet - the sheet
public boolean containsDataBarBlock()
public DataBarFormatting getDataBarFormatting()
public DataBarFormatting createDataBarFormatting()
public boolean containsMultiStateBlock()
public IconMultiStateFormatting getMultiStateFormatting()
public IconMultiStateFormatting createMultiStateFormatting()
public boolean containsColorGradientBlock()
public ColorGradientFormatting getColorGradientFormatting()
public ColorGradientFormatting createColorGradientFormatting()
public Ptg[] getParsedExpressionScale()
public void setParsedExpressionScale(Ptg[] ptgs)
public int getPriority()
public void setPriority(int priority)
public short getSid()
Record
getSid in class Recordpublic void serialize(LittleEndianOutput out)
serialize in class StandardRecordout - the stream to write toprotected int getDataSize()
getDataSize in class StandardRecordpublic java.lang.String toString()
Record
toString in class Recordpublic CFRule12Record clone()
clone in class CFRuleBasepublic short getFutureRecordType()
getFutureRecordType in interface FutureRecordpublic FtrHeader getFutureHeader()
getFutureHeader in interface FutureRecordpublic CellRangeAddress getAssociatedRange()
getAssociatedRange in interface FutureRecord
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||