Class MetaBrush
- java.lang.Object
-
- com.itextpdf.kernel.pdf.canvas.wmf.MetaObject
-
- com.itextpdf.kernel.pdf.canvas.wmf.MetaBrush
-
public class MetaBrush extends MetaObject
A Brush bject that holds information about the style, the hatch and the color of the brush.
-
-
Field Summary
Fields Modifier and Type Field Description static int
BS_DIBPATTERN
static int
BS_HATCHED
static int
BS_NULL
static int
BS_PATTERN
static int
BS_SOLID
(package private) Color
color
(package private) int
hatch
static int
HS_BDIAGONAL
static int
HS_CROSS
static int
HS_DIAGCROSS
static int
HS_FDIAGONAL
static int
HS_HORIZONTAL
static int
HS_VERTICAL
(package private) int
style
-
Fields inherited from class com.itextpdf.kernel.pdf.canvas.wmf.MetaObject
META_BRUSH, META_FONT, META_NOT_SUPPORTED, META_PEN
-
-
Constructor Summary
Constructors Constructor Description MetaBrush()
Creates a MetaBrush object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
getColor()
Get the color of the MetaBrush.int
getHatch()
Get the hatch pattern of the MetaBrushint
getStyle()
Get the style of the MetaBrush.void
init(InputMeta in)
Initializes this MetaBrush object.-
Methods inherited from class com.itextpdf.kernel.pdf.canvas.wmf.MetaObject
getType
-
-
-
-
Field Detail
-
BS_SOLID
public static final int BS_SOLID
- See Also:
- Constant Field Values
-
BS_NULL
public static final int BS_NULL
- See Also:
- Constant Field Values
-
BS_HATCHED
public static final int BS_HATCHED
- See Also:
- Constant Field Values
-
BS_PATTERN
public static final int BS_PATTERN
- See Also:
- Constant Field Values
-
BS_DIBPATTERN
public static final int BS_DIBPATTERN
- See Also:
- Constant Field Values
-
HS_HORIZONTAL
public static final int HS_HORIZONTAL
- See Also:
- Constant Field Values
-
HS_VERTICAL
public static final int HS_VERTICAL
- See Also:
- Constant Field Values
-
HS_FDIAGONAL
public static final int HS_FDIAGONAL
- See Also:
- Constant Field Values
-
HS_BDIAGONAL
public static final int HS_BDIAGONAL
- See Also:
- Constant Field Values
-
HS_CROSS
public static final int HS_CROSS
- See Also:
- Constant Field Values
-
HS_DIAGCROSS
public static final int HS_DIAGCROSS
- See Also:
- Constant Field Values
-
style
int style
-
hatch
int hatch
-
color
Color color
-
-
Method Detail
-
init
public void init(InputMeta in) throws java.io.IOException
Initializes this MetaBrush object.- Parameters:
in
- the InputMeta- Throws:
java.io.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
public Color getColor()
Get the color of the MetaBrush.- Returns:
- color of the brush
-
-