org.jfree.pixie.wmf
Class MfLogBrush

java.lang.Object
  |
  +--org.jfree.pixie.wmf.MfLogBrush
All Implemented Interfaces:
WmfObject

public class MfLogBrush
extends java.lang.Object
implements WmfObject

A Windows metafile logical brush object.


Field Summary
static int BS_DIBPATTERN
           
static int BS_HATCHED
           
static int BS_INDEXED
           
static int BS_NULL
           
static int BS_PATTERN
           
static int BS_SOLID
           
static int COLOR_FULL_ALPHA
           
static int HS_BDIAGONAL
           
static int HS_CROSS
           
static int HS_DIAGCROSS
           
static int HS_FDIAGONAL
           
static int HS_HORIZONTAL
           
static int HS_VERTICAL
           
 
Fields inherited from interface org.jfree.pixie.wmf.WmfObject
OBJ_BRUSH, OBJ_FONT, OBJ_PALETTE, OBJ_PEN, OBJ_REGION
 
Constructor Summary
MfLogBrush()
          The default brush for a new DC.
 
Method Summary
 java.awt.Color getBackgroundColor()
           
 java.awt.Color getColor()
          Return the color of the current brush, or null.
 int getHatchedStyle()
          The hatch style of this brush.
 java.awt.Paint getPaint()
           
 int getStyle()
          The style of this brush.
 int getType()
           
 boolean isVisible()
           
 void setBackgroundColor(java.awt.Color bg)
           
 void setBitmap(java.awt.image.BufferedImage bitmap)
           
 void setColor(java.awt.Color color)
           
 void setHatchedStyle(int hstyle)
           
 void setStyle(int style)
           
 int[] transform(boolean[] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLOR_FULL_ALPHA

public static final int COLOR_FULL_ALPHA
See Also:
Constant Field Values

BS_SOLID

public static final int BS_SOLID
See Also:
Constant Field Values

BS_NULL

public static final int BS_NULL
See Also:
Constant Field Values

BS_HATCHED

public static final int BS_HATCHED
See Also:
Constant Field Values

BS_PATTERN

public static final int BS_PATTERN
See Also:
Constant Field Values

BS_INDEXED

public static final int BS_INDEXED
See Also:
Constant Field Values

BS_DIBPATTERN

public static final int BS_DIBPATTERN
See Also:
Constant Field Values

HS_HORIZONTAL

public static final int HS_HORIZONTAL
See Also:
Constant Field Values

HS_VERTICAL

public static final int HS_VERTICAL
See Also:
Constant Field Values

HS_FDIAGONAL

public static final int HS_FDIAGONAL
See Also:
Constant Field Values

HS_BDIAGONAL

public static final int HS_BDIAGONAL
See Also:
Constant Field Values

HS_CROSS

public static final int HS_CROSS
See Also:
Constant Field Values

HS_DIAGCROSS

public static final int HS_DIAGCROSS
See Also:
Constant Field Values
Constructor Detail

MfLogBrush

public MfLogBrush()
The default brush for a new DC.

Method Detail

isVisible

public boolean isVisible()

getType

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

getStyle

public int getStyle()
The style of this brush.


setStyle

public void setStyle(int style)

getColor

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


setColor

public void setColor(java.awt.Color color)

getHatchedStyle

public int getHatchedStyle()
The hatch style of this brush.


setHatchedStyle

public void setHatchedStyle(int hstyle)

getPaint

public java.awt.Paint getPaint()

transform

public int[] transform(boolean[] data)

setBackgroundColor

public void setBackgroundColor(java.awt.Color bg)

getBackgroundColor

public java.awt.Color getBackgroundColor()

setBitmap

public void setBitmap(java.awt.image.BufferedImage bitmap)