org.jfree.pixie.wmf
Class MfLogPen

java.lang.Object
  extended byorg.jfree.pixie.wmf.MfLogPen
All Implemented Interfaces:
PenConstants, WmfObject

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

A Windows metafile logical pen object.


Field Summary
 
Fields inherited from interface org.jfree.pixie.wmf.WmfObject
OBJ_BRUSH, OBJ_FONT, OBJ_PALETTE, OBJ_PEN, OBJ_REGION
 
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
 
Constructor Summary
MfLogPen()
          The default pen for a new DC.
 
Method Summary
 java.awt.Color getColor()
          Return color of the current pen, or null.
 java.awt.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(java.awt.Color color)
           
 void setStyle(int style)
           
 void setWidth(int width)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MfLogPen

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

Method Detail

getStyle

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


setStyle

public void setStyle(int style)

getWidth

public int getWidth()
Return width.


setWidth

public void setWidth(int width)

getColor

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


setColor

public void setColor(java.awt.Color color)

isSimpleStyle

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


isVisible

public boolean isVisible()

getType

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

getStroke

public java.awt.Stroke getStroke()

toString

public java.lang.String toString()