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) Colorcolor(package private) intpenWidthstatic intPS_DASHstatic intPS_DASHDOTstatic intPS_DASHDOTDOTstatic intPS_DOTstatic intPS_INSIDEFRAMEstatic intPS_NULLstatic intPS_SOLID(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 MetaPen()Creates a MetaPen object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorgetColor()Get the color of the MetaPen.intgetPenWidth()Get the width of the MetaPen.intgetStyle()Get the style of the MetaPen.voidinit(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
-
-