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 shortWide dotsstatic final shortLarge spotsstatic final shortBrick-like layoutstatic final shortDiamondsstatic final shortSmall fine dotsstatic final shortLeast Dotsstatic final shortLess Dotsstatic final shortNo backgroundstatic final shortSolidly filledstatic final shortSparse dotsstatic final shortSquaresstatic final shortThick backward facing diagonalsstatic final shortThick forward facing diagonalsstatic final shortThick horizontal bandsstatic final shortThick vertical bandsstatic final shortThin backward diagonalstatic final shortThin forward diagonalstatic final shortThin horizontal bandsstatic final shortThin vertical bands -
Constructor Summary
ConstructorsConstructorDescriptionCreates new FontFormatting -
Method Summary
Modifier and TypeMethodDescriptionclone()intintintintvoidvoidsetFillBackgroundColor(int bg) set the background fill color.voidsetFillForegroundColor(int fg) set the foreground fill colorvoidsetFillPattern(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
-