org.apache.poi.hwmf.record
Class HwmfPenStyle

java.lang.Object
  extended by 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.


Nested Class Summary
static class HwmfPenStyle.HwmfLineCap
           
static class HwmfPenStyle.HwmfLineDash
           
static class HwmfPenStyle.HwmfLineJoin
           
 
Constructor Summary
HwmfPenStyle()
           
 
Method Summary
 HwmfPenStyle clone()
          Creates a new object of the same class and with the same contents as this object.
 HwmfPenStyle.HwmfLineCap getLineCap()
           
 HwmfPenStyle.HwmfLineDash getLineDash()
           
 HwmfPenStyle.HwmfLineJoin getLineJoin()
           
 boolean isAlternateDash()
          The pen sets every other pixel (this style is applicable only for cosmetic pens).
static HwmfPenStyle valueOf(int flag)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HwmfPenStyle

public HwmfPenStyle()
Method Detail

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.