Package org.apache.poi.hwmf.record
Class HwmfPenStyle
- java.lang.Object
-
- org.apache.poi.hwmf.record.HwmfPenStyle
-
- All Implemented Interfaces:
java.lang.Cloneable
public class HwmfPenStyle extends java.lang.Object implements java.lang.CloneableThe 16-bit PenStyle Enumeration is used to specify different types of pens that can be used in graphics operations. Various styles can be combined by using a logical OR statement, one from each subsection of Style, EndCap, Join, and Type (Cosmetic). The defaults in case the other values of the subsection aren't set are solid, round end caps, round joins and cosmetic type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHwmfPenStyle.HwmfLineCapstatic classHwmfPenStyle.HwmfLineDashstatic classHwmfPenStyle.HwmfLineJoin
-
Constructor Summary
Constructors Constructor Description HwmfPenStyle()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HwmfPenStyleclone()Creates a new object of the same class and with the same contents as this object.HwmfPenStyle.HwmfLineCapgetLineCap()HwmfPenStyle.HwmfLineDashgetLineDash()HwmfPenStyle.HwmfLineJoingetLineJoin()booleanisAlternateDash()The pen sets every other pixel (this style is applicable only for cosmetic pens).static HwmfPenStylevalueOf(int flag)
-
-
-
Method Detail
-
valueOf
public static HwmfPenStyle valueOf(int flag)
-
getLineCap
public HwmfPenStyle.HwmfLineCap getLineCap()
-
getLineJoin
public HwmfPenStyle.HwmfLineJoin getLineJoin()
-
getLineDash
public HwmfPenStyle.HwmfLineDash getLineDash()
-
isAlternateDash
public boolean isAlternateDash()
The pen sets every other pixel (this style is applicable only for cosmetic pens).
-
clone
public HwmfPenStyle clone()
Creates a new object of the same class and with the same contents as this object.- Returns:
- a clone of this instance.
- Throws:
java.lang.OutOfMemoryError- if there is not enough memory.- See Also:
Cloneable
-
-