Package org.apache.poi.hssf.record.cf
Class PatternFormatting
java.lang.Object
org.apache.poi.hssf.record.cf.PatternFormatting
- All Implemented Interfaces:
Cloneable
Pattern Formatting Block of the Conditional Formatting Rule Record.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final short
Wide dotsstatic final short
Large spotsstatic final short
Brick-like layoutstatic final short
Diamondsstatic final short
Small fine dotsstatic final short
Least Dotsstatic final short
Less Dotsstatic final short
No backgroundstatic final short
Solidly filledstatic final short
Sparse dotsstatic final short
Squaresstatic final short
Thick backward facing diagonalsstatic final short
Thick forward facing diagonalsstatic final short
Thick horizontal bandsstatic final short
Thick vertical bandsstatic final short
Thin backward diagonalstatic final short
Thin forward diagonalstatic final short
Thin horizontal bandsstatic final short
Thin vertical bands -
Constructor Summary
ConstructorsConstructorDescriptionCreates new FontFormatting -
Method Summary
Modifier and TypeMethodDescriptionclone()
int
int
int
int
void
void
setFillBackgroundColor
(int bg) set the background fill color.void
setFillForegroundColor
(int fg) set the foreground fill colorvoid
setFillPattern
(int fp) setting fill patterntoString()
-
Field Details
-
NO_FILL
public static final short NO_FILLNo background- See Also:
-
SOLID_FOREGROUND
public static final short SOLID_FOREGROUNDSolidly filled- See Also:
-
FINE_DOTS
public static final short FINE_DOTSSmall fine dots- See Also:
-
ALT_BARS
public static final short ALT_BARSWide dots- See Also:
-
SPARSE_DOTS
public static final short SPARSE_DOTSSparse dots- See Also:
-
THICK_HORZ_BANDS
public static final short THICK_HORZ_BANDSThick horizontal bands- See Also:
-
THICK_VERT_BANDS
public static final short THICK_VERT_BANDSThick vertical bands- See Also:
-
THICK_BACKWARD_DIAG
public static final short THICK_BACKWARD_DIAGThick backward facing diagonals- See Also:
-
THICK_FORWARD_DIAG
public static final short THICK_FORWARD_DIAGThick forward facing diagonals- See Also:
-
BIG_SPOTS
public static final short BIG_SPOTSLarge spots- See Also:
-
BRICKS
public static final short BRICKSBrick-like layout- See Also:
-
THIN_HORZ_BANDS
public static final short THIN_HORZ_BANDSThin horizontal bands- See Also:
-
THIN_VERT_BANDS
public static final short THIN_VERT_BANDSThin vertical bands- See Also:
-
THIN_BACKWARD_DIAG
public static final short THIN_BACKWARD_DIAGThin backward diagonal- See Also:
-
THIN_FORWARD_DIAG
public static final short THIN_FORWARD_DIAGThin forward diagonal- See Also:
-
SQUARES
public static final short SQUARESSquares- See Also:
-
DIAMONDS
public static final short DIAMONDSDiamonds- See Also:
-
LESS_DOTS
public static final short LESS_DOTSLess Dots- See Also:
-
LEAST_DOTS
public static final short LEAST_DOTSLeast Dots- See Also:
-
-
Constructor Details
-
PatternFormatting
public PatternFormatting() -
PatternFormatting
Creates new FontFormatting
-
-
Method Details
-
getDataLength
public int getDataLength() -
setFillPattern
public void setFillPattern(int fp) setting fill pattern- Parameters:
fp
- fill pattern- See Also:
-
getFillPattern
public int getFillPattern()- Returns:
- fill pattern
-
setFillBackgroundColor
public void setFillBackgroundColor(int bg) set the background fill color. -
getFillBackgroundColor
public int getFillBackgroundColor()- Returns:
- get the background fill color
- See Also:
-
setFillForegroundColor
public void setFillForegroundColor(int fg) set the foreground fill color -
getFillForegroundColor
public int getFillForegroundColor()- Returns:
- get the foreground fill color
- See Also:
-
toString
-
clone
-
serialize
-