Class MetaBrush
java.lang.Object
com.itextpdf.kernel.pdf.canvas.wmf.MetaObject
com.itextpdf.kernel.pdf.canvas.wmf.MetaBrush
A Brush bject that holds information about the style, the hatch and the color of the brush.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.itextpdf.kernel.pdf.canvas.wmf.MetaObject
META_BRUSH, META_FONT, META_NOT_SUPPORTED, META_PEN
-
Constructor Summary
-
Method Summary
Methods inherited from class com.itextpdf.kernel.pdf.canvas.wmf.MetaObject
getType
-
Field Details
-
BS_SOLID
public static final int BS_SOLID- See Also:
-
BS_NULL
public static final int BS_NULL- See Also:
-
BS_HATCHED
public static final int BS_HATCHED- See Also:
-
BS_PATTERN
public static final int BS_PATTERN- See Also:
-
BS_DIBPATTERN
public static final int BS_DIBPATTERN- See Also:
-
HS_HORIZONTAL
public static final int HS_HORIZONTAL- See Also:
-
HS_VERTICAL
public static final int HS_VERTICAL- See Also:
-
HS_FDIAGONAL
public static final int HS_FDIAGONAL- See Also:
-
HS_BDIAGONAL
public static final int HS_BDIAGONAL- See Also:
-
HS_CROSS
public static final int HS_CROSS- See Also:
-
HS_DIAGCROSS
public static final int HS_DIAGCROSS- See Also:
-
-
Constructor Details
-
MetaBrush
public MetaBrush()Creates a MetaBrush object.
-
-
Method Details
-
init
Initializes this MetaBrush object.- Parameters:
-
in
- the InputMeta - Throws:
-
IOException
- anIOException
-
getStyle
public int getStyle()Get the style of the MetaBrush.- Returns:
- style of the brush
-
getHatch
public int getHatch()Get the hatch pattern of the MetaBrush- Returns:
- hatch of the brush
-
getColor
Get the color of the MetaBrush.- Returns:
- color of the brush
-