Class MetaPen
- java.lang.Object
-
- com.itextpdf.kernel.pdf.canvas.wmf.MetaObject
-
- com.itextpdf.kernel.pdf.canvas.wmf.MetaPen
-
public class MetaPen extends MetaObject
A Pen object of the WMF format. Holds the color, style and width information of the pen.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Color
color
(package private) int
penWidth
static int
PS_DASH
static int
PS_DASHDOT
static int
PS_DASHDOTDOT
static int
PS_DOT
static int
PS_INSIDEFRAME
static int
PS_NULL
static int
PS_SOLID
(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 MetaPen()
Creates a MetaPen object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
getColor()
Get the color of the MetaPen.int
getPenWidth()
Get the width of the MetaPen.int
getStyle()
Get the style of the MetaPen.void
init(InputMeta in)
Initializes a MetaPen object.-
Methods inherited from class com.itextpdf.kernel.pdf.canvas.wmf.MetaObject
getType
-
-
-
-
Field Detail
-
PS_SOLID
public static final int PS_SOLID
- See Also:
- Constant Field Values
-
PS_DASH
public static final int PS_DASH
- See Also:
- Constant Field Values
-
PS_DOT
public static final int PS_DOT
- See Also:
- Constant Field Values
-
PS_DASHDOT
public static final int PS_DASHDOT
- See Also:
- Constant Field Values
-
PS_DASHDOTDOT
public static final int PS_DASHDOTDOT
- See Also:
- Constant Field Values
-
PS_NULL
public static final int PS_NULL
- See Also:
- Constant Field Values
-
PS_INSIDEFRAME
public static final int PS_INSIDEFRAME
- See Also:
- Constant Field Values
-
style
int style
-
penWidth
int penWidth
-
color
Color color
-
-
Method Detail
-
init
public void init(InputMeta in) throws java.io.IOException
Initializes a MetaPen object.- Parameters:
in
- the InputMeta object that holds the inputstream of the WMF image- Throws:
java.io.IOException
- anIOException
-
getStyle
public int getStyle()
Get the style of the MetaPen.- Returns:
- style of the pen
-
getPenWidth
public int getPenWidth()
Get the width of the MetaPen.- Returns:
- width of the pen
-
getColor
public Color getColor()
Get the color of the MetaPen.- Returns:
- color of the pen
-
-