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 intBS_DIBPATTERNstatic intBS_HATCHEDstatic intBS_NULLstatic intBS_PATTERNstatic intBS_SOLID(package private) Colorcolor(package private) inthatchstatic intHS_BDIAGONALstatic intHS_CROSSstatic intHS_DIAGCROSSstatic intHS_FDIAGONALstatic intHS_HORIZONTALstatic intHS_VERTICAL(package private) intstyle-
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 ColorgetColor()Get the color of the MetaBrush.intgetHatch()Get the hatch pattern of the MetaBrushintgetStyle()Get the style of the MetaBrush.voidinit(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
-
-