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 java.lang.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 Classes Modifier and Type Class Description static class
HwmfPenStyle.HwmfLineCap
static class
HwmfPenStyle.HwmfLineDash
static class
HwmfPenStyle.HwmfLineJoin
-
Constructor Summary
Constructors Constructor Description HwmfPenStyle(int flag)
HwmfPenStyle(HwmfPenStyle other)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HwmfPenStyle
copy()
java.util.Map<java.lang.String,java.util.function.Supplier<?>>
getGenericProperties()
HwmfPenStyle.HwmfLineCap
getLineCap()
HwmfPenStyle.HwmfLineDash
getLineDash()
float[]
getLineDashes()
Convienence method which should be used instead of accessingHwmfPenStyle.HwmfLineDash.dashes
directly, so an subclass can provide user-style dashesHwmfPenStyle.HwmfLineJoin
getLineJoin()
boolean
isAlternateDash()
The pen sets every other pixel (this style is applicable only for cosmetic pens).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.java.lang.String
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 Detail
-
HwmfPenStyle
public HwmfPenStyle(int flag)
-
HwmfPenStyle
public HwmfPenStyle(HwmfPenStyle other)
-
-
Method Detail
-
valueOf
public static HwmfPenStyle valueOf(int flag)
-
getLineCap
public HwmfPenStyle.HwmfLineCap getLineCap()
-
getLineJoin
public HwmfPenStyle.HwmfLineJoin getLineJoin()
-
getLineDash
public HwmfPenStyle.HwmfLineDash 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
public HwmfPenStyle copy()
- Specified by:
copy
in interfaceorg.apache.poi.common.Duplicatable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getGenericProperties
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
- Specified by:
getGenericProperties
in interfaceGenericRecord
-
-