Package org.apache.poi.hwmf.record
Class HwmfPenStyle
java.lang.Object
org.apache.poi.hwmf.record.HwmfPenStyle
- All Implemented Interfaces:
org.apache.poi.common.Duplicatable
,GenericRecord
- Direct Known Subclasses:
HemfPenStyle
public class HwmfPenStyle
extends Object
implements org.apache.poi.common.Duplicatable, GenericRecord
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
static enum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
float[]
Convienence method which should be used instead of accessingHwmfPenStyle.HwmfLineDash.dashes
directly, so an subclass can provide user-style dashesboolean
The pen sets every other pixel (this style is applicable only for cosmetic pens).boolean
A pen type that specifies a line with a width that is measured in logical units and a style that can contain any of the attributes of a brush.toString()
static HwmfPenStyle
valueOf
(int flag) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
Constructor Details
-
HwmfPenStyle
public HwmfPenStyle(int flag) -
HwmfPenStyle
-
-
Method Details
-
valueOf
-
getLineCap
-
getLineJoin
-
getLineDash
-
getLineDashes
public float[] getLineDashes()Convienence method which should be used instead of accessingHwmfPenStyle.HwmfLineDash.dashes
directly, so an subclass can provide user-style dashes- Returns:
- the dash pattern
-
isAlternateDash
public boolean isAlternateDash()The pen sets every other pixel (this style is applicable only for cosmetic pens). -
isGeometric
public boolean isGeometric()A pen type that specifies a line with a width that is measured in logical units and a style that can contain any of the attributes of a brush. -
copy
- Specified by:
copy
in interfaceorg.apache.poi.common.Duplicatable
-
toString
-
getGenericProperties
- Specified by:
getGenericProperties
in interfaceGenericRecord
-