Enum RenderingMode
- All Implemented Interfaces:
Serializable
,Comparable<RenderingMode>
,java.lang.constant.Constable
Text Rendering Mode.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFill text.Fill text and add to path for clipping.Fill, then stroke text.Fill, then stroke text and add to path for clipping.Neither fill nor stroke text (invisible)Add text to path for clipping.Stroke text.Stroke text and add to path for clipping. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderingMode
fromInt
(int value) int
intValue()
Returns the integer value of this mode, as used in a PDF file.boolean
isClip()
Returns true is this mode clips text.boolean
isFill()
Returns true is this mode fills text.boolean
isStroke()
Returns true is this mode strokes text.static RenderingMode
Returns the enum constant of this type with the specified name.static RenderingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FILL
Fill text. -
STROKE
Stroke text. -
FILL_STROKE
Fill, then stroke text. -
NEITHER
Neither fill nor stroke text (invisible) -
FILL_CLIP
Fill text and add to path for clipping. -
STROKE_CLIP
Stroke text and add to path for clipping. -
FILL_STROKE_CLIP
Fill, then stroke text and add to path for clipping. -
NEITHER_CLIP
Add text to path for clipping.
-
-
Field Details
-
VALUES
-
value
private final int value
-
-
Constructor Details
-
RenderingMode
private RenderingMode(int value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromInt
-
intValue
public int intValue()Returns the integer value of this mode, as used in a PDF file. -
isFill
public boolean isFill()Returns true is this mode fills text. -
isStroke
public boolean isStroke()Returns true is this mode strokes text. -
isClip
public boolean isClip()Returns true is this mode clips text.
-