public class HwmfPenStyle extends java.lang.Object implements Duplicatable, GenericRecord
Modifier and Type | Class and Description |
---|---|
static class |
HwmfPenStyle.HwmfLineCap |
static class |
HwmfPenStyle.HwmfLineDash |
static class |
HwmfPenStyle.HwmfLineJoin |
Modifier and Type | Field and Description |
---|---|
protected int |
flag |
protected static BitField |
SUBSECTION_ALTERNATE |
protected static BitField |
SUBSECTION_DASH |
protected static BitField |
SUBSECTION_ENDCAP |
protected static BitField |
SUBSECTION_GEOMETRIC |
protected static BitField |
SUBSECTION_JOIN |
Constructor and Description |
---|
HwmfPenStyle(HwmfPenStyle other) |
HwmfPenStyle(int flag) |
Modifier and Type | Method and 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 accessing
HwmfPenStyle.HwmfLineDash.dashes
directly, so an subclass can provide user-style dashes |
HwmfPenStyle.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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren, getGenericRecordType
protected static final BitField SUBSECTION_DASH
protected static final BitField SUBSECTION_ALTERNATE
protected static final BitField SUBSECTION_ENDCAP
protected static final BitField SUBSECTION_JOIN
protected static final BitField SUBSECTION_GEOMETRIC
protected int flag
public HwmfPenStyle(int flag)
public HwmfPenStyle(HwmfPenStyle other)
public static HwmfPenStyle valueOf(int flag)
public HwmfPenStyle.HwmfLineCap getLineCap()
public HwmfPenStyle.HwmfLineJoin getLineJoin()
public HwmfPenStyle.HwmfLineDash getLineDash()
public float[] getLineDashes()
HwmfPenStyle.HwmfLineDash.dashes
directly, so an subclass can provide user-style dashespublic boolean isAlternateDash()
public boolean isGeometric()
public HwmfPenStyle copy()
copy
in interface Duplicatable
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.