Top Description Fields Constructors Methods
org.apache.poi.hssf.record.cf

public final Class PatternFormatting

extends Object
implements Duplicatable, GenericRecord
Class Inheritance
All Implemented Interfaces
org.apache.poi.common.usermodel.GenericRecord, org.apache.poi.common.Duplicatable
Static Imports
org.apache.poi.util.GenericRecordUtil.getEnumBitsAsString

Pattern Formatting Block of the Conditional Formatting Rule Record.

Field Summary

Modifier and TypeField and Description
public static final short
ALT_BARS

Wide dots

public static final short
BIG_SPOTS

Large spots

public static final short
BRICKS

Brick-like layout

public static final short
DIAMONDS

Diamonds

private int
private int
private static final BitField
public static final short
FINE_DOTS

Small fine dots

public static final short
LEAST_DOTS

Least Dots

public static final short
LESS_DOTS

Less Dots

public static final short
NO_FILL

No background

private static final BitField
private static final BitField
public static final short
SOLID_FOREGROUND

Solidly filled

public static final short
SPARSE_DOTS

Sparse dots

public static final short
SQUARES

Squares

public static final short
THICK_BACKWARD_DIAG

Thick backward facing diagonals

public static final short
THICK_FORWARD_DIAG

Thick forward facing diagonals

public static final short
THICK_HORZ_BANDS

Thick horizontal bands

public static final short
THICK_VERT_BANDS

Thick vertical bands

public static final short
THIN_BACKWARD_DIAG

Thin backward diagonal

public static final short
THIN_FORWARD_DIAG

Thin forward diagonal

public static final short
THIN_HORZ_BANDS

Thin horizontal bands

public static final short
THIN_VERT_BANDS

Thin vertical bands

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public PatternFormatting
public int
public int

Returns:

get the background fill color
getFillBackgroundColor
()

public int

Returns:

get the foreground fill color
getFillForegroundColor
()

public int

Returns:

fill pattern
getFillPattern
()

public Map<String, Supplier<?>>
public void
public void
setFillBackgroundColor(int bg)

set the background fill color.

public void
setFillForegroundColor(int fg)

set the foreground fill color

public void
setFillPattern(int
fill pattern
fp
)

setting fill pattern

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

ALT_BARSback to summary
public static final short ALT_BARS

Wide dots

BIG_SPOTSback to summary
public static final short BIG_SPOTS

Large spots

BRICKSback to summary
public static final short BRICKS

Brick-like layout

DIAMONDSback to summary
public static final short DIAMONDS

Diamonds

field_15_pattern_styleback to summary
private int field_15_pattern_style
field_16_pattern_color_indexesback to summary
private int field_16_pattern_color_indexes
fillPatternStyleback to summary
private static final BitField fillPatternStyle
FINE_DOTSback to summary
public static final short FINE_DOTS

Small fine dots

LEAST_DOTSback to summary
public static final short LEAST_DOTS

Least Dots

LESS_DOTSback to summary
public static final short LESS_DOTS

Less Dots

NO_FILLback to summary
public static final short NO_FILL

No background

patternBackgroundColorIndexback to summary
private static final BitField patternBackgroundColorIndex
patternColorIndexback to summary
private static final BitField patternColorIndex
SOLID_FOREGROUNDback to summary
public static final short SOLID_FOREGROUND

Solidly filled

SPARSE_DOTSback to summary
public static final short SPARSE_DOTS

Sparse dots

SQUARESback to summary
public static final short SQUARES

Squares

THICK_BACKWARD_DIAGback to summary
public static final short THICK_BACKWARD_DIAG

Thick backward facing diagonals

THICK_FORWARD_DIAGback to summary
public static final short THICK_FORWARD_DIAG

Thick forward facing diagonals

THICK_HORZ_BANDSback to summary
public static final short THICK_HORZ_BANDS

Thick horizontal bands

THICK_VERT_BANDSback to summary
public static final short THICK_VERT_BANDS

Thick vertical bands

THIN_BACKWARD_DIAGback to summary
public static final short THIN_BACKWARD_DIAG

Thin backward diagonal

THIN_FORWARD_DIAGback to summary
public static final short THIN_FORWARD_DIAG

Thin forward diagonal

THIN_HORZ_BANDSback to summary
public static final short THIN_HORZ_BANDS

Thin horizontal bands

THIN_VERT_BANDSback to summary
public static final short THIN_VERT_BANDS

Thin vertical bands

Constructor Detail

PatternFormattingback to summary
public PatternFormatting()
PatternFormattingback to summary
public PatternFormatting(PatternFormatting other)
PatternFormattingback to summary
public PatternFormatting(LittleEndianInput in)

Method Detail

copyback to summary
public PatternFormatting copy()

Implements org.apache.poi.common.Duplicatable.copy.

Returns:PatternFormatting

Doc from org.apache.poi.common.Duplicatable.copy.

a deep copy of the implementing class / instance

getDataLengthback to summary
public int getDataLength()
getFillBackgroundColorback to summary
public int getFillBackgroundColor()
Returns:int

get the background fill color

See Also
org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short)
getFillForegroundColorback to summary
public int getFillForegroundColor()
Returns:int

get the foreground fill color

See Also
org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short)
getFillPatternback to summary
public int getFillPattern()
Returns:int

fill pattern

getGenericPropertiesback to summary
public Map<String, Supplier<?>> getGenericProperties()

Implements org.apache.poi.common.usermodel.GenericRecord.getGenericProperties.

Annotations
@Override
serializeback to summary
public void serialize(LittleEndianOutput out)
setFillBackgroundColorback to summary
public void setFillBackgroundColor(int bg)

set the background fill color.

setFillForegroundColorback to summary
public void setFillForegroundColor(int fg)

set the foreground fill color

setFillPatternback to summary
public void setFillPattern(int fp)

setting fill pattern

Parameters
fp:int

fill pattern

See Also
NO_FILL, SOLID_FOREGROUND, FINE_DOTS, ALT_BARS, SPARSE_DOTS, THICK_HORZ_BANDS, THICK_VERT_BANDS, THICK_BACKWARD_DIAG, THICK_FORWARD_DIAG, BIG_SPOTS, BRICKS, THIN_HORZ_BANDS, THIN_VERT_BANDS, THIN_BACKWARD_DIAG, THIN_FORWARD_DIAG, SQUARES, DIAMONDS
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object