org.jfree.pixie.wmf

Class MfLogBrush

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

Color
getBackgroundColor()
Color
getColor()
Return the color of the current brush, or null.
int
getHatchedStyle()
The hatch style of this brush.
Paint
getPaint()
int
getStyle()
The style of this brush.
int
getType()
boolean
isVisible()
void
setBackgroundColor(Color bg)
void
setBitmap(BufferedImage bitmap)
void
setColor(Color color)
void
setHatchedStyle(int hstyle)
void
setStyle(int style)
int[]
transform(boolean[] data)

Field Details

BS_DIBPATTERN

public static final int BS_DIBPATTERN
Field Value:
5

BS_HATCHED

public static final int BS_HATCHED
Field Value:
2

BS_INDEXED

public static final int BS_INDEXED
Field Value:
4

BS_NULL

public static final int BS_NULL
Field Value:
1

BS_PATTERN

public static final int BS_PATTERN
Field Value:
3

BS_SOLID

public static final int BS_SOLID
Field Value:
0

COLOR_FULL_ALPHA

public static final int COLOR_FULL_ALPHA
Field Value:
16777215

HS_BDIAGONAL

public static final int HS_BDIAGONAL
Field Value:
3

HS_CROSS

public static final int HS_CROSS
Field Value:
4

HS_DIAGCROSS

public static final int HS_DIAGCROSS
Field Value:
5

HS_FDIAGONAL

public static final int HS_FDIAGONAL
Field Value:
2

HS_HORIZONTAL

public static final int HS_HORIZONTAL
Field Value:
0

HS_VERTICAL

public static final int HS_VERTICAL
Field Value:
1

Constructor Details

MfLogBrush

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

Method Details

getBackgroundColor

public Color getBackgroundColor()

getColor

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

getHatchedStyle

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

getPaint

public Paint getPaint()

getStyle

public int getStyle()
The style of this brush.

getType

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

isVisible

public boolean isVisible()

setBackgroundColor

public void setBackgroundColor(Color bg)

setBitmap

public void setBitmap(BufferedImage bitmap)

setColor

public void setColor(Color color)

setHatchedStyle

public void setHatchedStyle(int hstyle)

setStyle

public void setStyle(int style)

transform

public int[] transform(boolean[] data)