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.Cloneable
The 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.
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HwmfPenStyle
public HwmfPenStyle()
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.
- Overrides:
clone
in class java.lang.Object
- Returns:
- a clone of this instance.
- Throws:
java.lang.OutOfMemoryError
- if there is not enough memory.- See Also:
Cloneable
Copyright 2017 The Apache Software Foundation or
its licensors, as applicable.