org.jfree.pixie.wmf

Class MfLogPen

Implemented Interfaces:
PenConstants, WmfObject

public class MfLogPen
extends java.lang.Object
implements WmfObject, PenConstants

A Windows metafile logical pen object.

Fields inherited from interface org.jfree.pixie.wmf.PenConstants

DASH_DASH, DASH_DASHDOT, DASH_DASHDOTDOT, DASH_DOT, PS_ALTERNATE, PS_COSMETIC, PS_DASH, PS_DASHDOT, PS_DASHDOTDOT, PS_DOT, PS_ENDCAP_FLAT, PS_ENDCAP_MASK, PS_ENDCAP_ROUND, PS_ENDCAP_SQUARE, PS_GEOMETRIC, PS_INSIDEFRAME, PS_JOIN_BEVEL, PS_JOIN_MASK, PS_JOIN_MITER, PS_JOIN_ROUND, PS_NULL, PS_SOLID, PS_STYLE_MASK, PS_TYPE_MASK, PS_USERSTYLE

Fields inherited from interface org.jfree.pixie.wmf.WmfObject

OBJ_BRUSH, OBJ_FONT, OBJ_PALETTE, OBJ_PEN, OBJ_REGION

Constructor Summary

MfLogPen()
The default pen for a new DC.

Method Summary

Color
getColor()
Return color of the current pen, or null.
Stroke
getStroke()
int
getStyle()
Return one of the PS_ styles.
int
getType()
int
getWidth()
Return width.
boolean
isSimpleStyle()
True if not a dashed or dotted style.
boolean
isVisible()
void
setColor(Color color)
void
setStyle(int style)
void
setWidth(int width)
String
toString()

Constructor Details

MfLogPen

public MfLogPen()
The default pen for a new DC.

Method Details

getColor

public Color getColor()
Return color of the current pen, or null.

getStroke

public Stroke getStroke()

getStyle

public int getStyle()
Return one of the PS_ styles.

getType

public int getType()
Specified by:
getType in interface WmfObject

getWidth

public int getWidth()
Return width.

isSimpleStyle

public boolean isSimpleStyle()
True if not a dashed or dotted style.

isVisible

public boolean isVisible()

setColor

public void setColor(Color color)

setStyle

public void setStyle(int style)

setWidth

public void setWidth(int width)

toString

public String toString()