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.HwmfLineDash.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 dashes
(应该使用的便捷方法,而不是直接访问 HwmfPenStyle.HwmfLineDash.dashes,因此子类可以提供用户样式的破折号)
public boolean isAlternateDash()
public boolean isGeometric()
public HwmfPenStyle copy()
copy
in interface
Duplicatable
(复制到界面 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
(接口 GenericRecord 中的 getGenericProperties)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.