PatternType

Inheritance: java.lang.Object

public class PatternType

Specifies the fill pattern to be used to fill a shape.

Fields

FieldDescription
CROSSCross.
DARK_DOWNWARD_DIAGONALDark downward diagonal.
DARK_HORIZONTALDark horizontal.
DARK_UPWARD_DIAGONALDark upward diagonal.
DARK_VERTICALDark vertical.
DASHED_DOWNWARD_DIAGONALDashed downward diagonal.
DASHED_HORIZONTALDashed horizontal.
DASHED_UPWARD_DIAGONALDashed upward diagonal.
DASHED_VERTICALDashed vertical.
DIAGONAL_BRICKDiagonal brick.
DIAGONAL_CROSSDiagonal cross.
DIVOTPattern divot.
DOTTED_DIAMONDDotted diamond.
DOTTED_GRIDDotted grid.
DOWNWARD_DIAGONALDownward diagonal.
HORIZONTALHorizontal.
HORIZONTAL_BRICKHorizontal brick.
LARGE_CHECKER_BOARDLarge checker board.
LARGE_CONFETTILarge confetti.
LARGE_GRIDLarge grid.
LIGHT_DOWNWARD_DIAGONALLight downward diagonal.
LIGHT_HORIZONTALLight horizontal.
LIGHT_UPWARD_DIAGONALLight upward diagonal.
LIGHT_VERTICALLight vertical.
NARROW_HORIZONTALNarrow horizontal.
NARROW_VERTICALNarrow vertical.
NONENo pattern.
OUTLINED_DIAMONDOutlined diamond.
PERCENT_1010% of the foreground color.
PERCENT_2020% of the foreground color.
PERCENT_2525% of the foreground color.
PERCENT_3030% of the foreground color.
PERCENT_4040% of the foreground color
PERCENT_55% of the foreground color.
PERCENT_5050% of the foreground color
PERCENT_6060% of the foreground color.
PERCENT_7070% of the foreground color.
PERCENT_7575% of the foreground color.
PERCENT_8080% of the foreground color.
PERCENT_9090% of the foreground color.
PLAIDPlaid.
SHINGLEShingle.
SMALL_CHECKER_BOARDSmall checker board.
SMALL_CONFETTISmall confetti.
SMALL_GRIDSmall grid.
SOLID_DIAMONDSolid diamond.
SPHERESphere.
TRELLISTrellis.
UPWARD_DIAGONALUpward diagonal.
VERTICALVertical.
WAVEWave.
WEAVEWeave.
WIDE_DOWNWARD_DIAGONALWide downward diagonal.
WIDE_UPWARD_DIAGONALWide upward diagonal.
ZIG_ZAGZig zag.
length

Methods

MethodDescription
fromName(String patternTypeName)
getName(int patternType)
getValues()
toString(int patternType)

CROSS

public static int CROSS

Cross.

DARK_DOWNWARD_DIAGONAL

public static int DARK_DOWNWARD_DIAGONAL

Dark downward diagonal.

DARK_HORIZONTAL

public static int DARK_HORIZONTAL

Dark horizontal.

DARK_UPWARD_DIAGONAL

public static int DARK_UPWARD_DIAGONAL

Dark upward diagonal.

DARK_VERTICAL

public static int DARK_VERTICAL

Dark vertical.

DASHED_DOWNWARD_DIAGONAL

public static int DASHED_DOWNWARD_DIAGONAL

Dashed downward diagonal.

DASHED_HORIZONTAL

public static int DASHED_HORIZONTAL

Dashed horizontal.

DASHED_UPWARD_DIAGONAL

public static int DASHED_UPWARD_DIAGONAL

Dashed upward diagonal.

DASHED_VERTICAL

public static int DASHED_VERTICAL

Dashed vertical.

DIAGONAL_BRICK

public static int DIAGONAL_BRICK

Diagonal brick.

DIAGONAL_CROSS

public static int DIAGONAL_CROSS

Diagonal cross.

DIVOT

public static int DIVOT

Pattern divot.

DOTTED_DIAMOND

public static int DOTTED_DIAMOND

Dotted diamond.

DOTTED_GRID

public static int DOTTED_GRID

Dotted grid.

DOWNWARD_DIAGONAL

public static int DOWNWARD_DIAGONAL

Downward diagonal.

HORIZONTAL

public static int HORIZONTAL

Horizontal.

HORIZONTAL_BRICK

public static int HORIZONTAL_BRICK

Horizontal brick.

LARGE_CHECKER_BOARD

public static int LARGE_CHECKER_BOARD

Large checker board.

LARGE_CONFETTI

public static int LARGE_CONFETTI

Large confetti.

LARGE_GRID

public static int LARGE_GRID

Large grid.

LIGHT_DOWNWARD_DIAGONAL

public static int LIGHT_DOWNWARD_DIAGONAL

Light downward diagonal.

LIGHT_HORIZONTAL

public static int LIGHT_HORIZONTAL

Light horizontal.

LIGHT_UPWARD_DIAGONAL

public static int LIGHT_UPWARD_DIAGONAL

Light upward diagonal.

LIGHT_VERTICAL

public static int LIGHT_VERTICAL

Light vertical.

NARROW_HORIZONTAL

public static int NARROW_HORIZONTAL

Narrow horizontal.

NARROW_VERTICAL

public static int NARROW_VERTICAL

Narrow vertical.

NONE

public static int NONE

No pattern.

OUTLINED_DIAMOND

public static int OUTLINED_DIAMOND

Outlined diamond.

PERCENT_10

public static int PERCENT_10

10% of the foreground color.

PERCENT_20

public static int PERCENT_20

20% of the foreground color.

PERCENT_25

public static int PERCENT_25

25% of the foreground color.

PERCENT_30

public static int PERCENT_30

30% of the foreground color.

PERCENT_40

public static int PERCENT_40

40% of the foreground color

PERCENT_5

public static int PERCENT_5

5% of the foreground color.

PERCENT_50

public static int PERCENT_50

50% of the foreground color

PERCENT_60

public static int PERCENT_60

60% of the foreground color.

PERCENT_70

public static int PERCENT_70

70% of the foreground color.

PERCENT_75

public static int PERCENT_75

75% of the foreground color.

PERCENT_80

public static int PERCENT_80

80% of the foreground color.

PERCENT_90

public static int PERCENT_90

90% of the foreground color.

PLAID

public static int PLAID

Plaid.

SHINGLE

public static int SHINGLE

Shingle.

SMALL_CHECKER_BOARD

public static int SMALL_CHECKER_BOARD

Small checker board.

SMALL_CONFETTI

public static int SMALL_CONFETTI

Small confetti.

SMALL_GRID

public static int SMALL_GRID

Small grid.

SOLID_DIAMOND

public static int SOLID_DIAMOND

Solid diamond.

SPHERE

public static int SPHERE

Sphere.

TRELLIS

public static int TRELLIS

Trellis.

UPWARD_DIAGONAL

public static int UPWARD_DIAGONAL

Upward diagonal.

VERTICAL

public static int VERTICAL

Vertical.

WAVE

public static int WAVE

Wave.

WEAVE

public static int WEAVE

Weave.

WIDE_DOWNWARD_DIAGONAL

public static int WIDE_DOWNWARD_DIAGONAL

Wide downward diagonal.

WIDE_UPWARD_DIAGONAL

public static int WIDE_UPWARD_DIAGONAL

Wide upward diagonal.

ZIG_ZAG

public static int ZIG_ZAG

Zig zag.

length

public static int length

fromName(String patternTypeName)

public static int fromName(String patternTypeName)

Parameters:

ParameterTypeDescription
patternTypeNamejava.lang.String

Returns: int

getName(int patternType)

public static String getName(int patternType)

Parameters:

ParameterTypeDescription
patternTypeint

Returns: java.lang.String

getValues()

public static int[] getValues()

Returns: int[]

toString(int patternType)

public static String toString(int patternType)

Parameters:

ParameterTypeDescription
patternTypeint

Returns: java.lang.String