public class FillStyle extends java.lang.Object implements Displayable, Enumeration
| Modifier and Type | Field and Description |
|---|---|
static FillStyle |
STYLE_DRAW
Deprecated.
use none
|
static FillStyle |
STYLE_FILL
Deprecated.
use solid
|
static FillStyle |
STYLE_NONE |
static FillStyle |
STYLE_OUTLINE |
static FillStyle |
STYLE_SOLID |
| Modifier and Type | Method and Description |
|---|---|
void |
drawListIcon(java.awt.Graphics2D g,
int x,
int y)
implement this to provide nice drawing of icon on printing graphics context.
|
javax.swing.Icon |
getListIcon()
An icon can be provided that will be shown in a list
along with the textual description of the element.
|
java.lang.String |
getListLabel()
return a
String that will help the user
identify this item when choosing from a list. |
java.lang.String |
toString()
Type-safe Enumerations implementing this interface
should override the toString() method to return a
String that will be helpful to the user
when choosing this as an option from a list. |
public static final FillStyle STYLE_FILL
public static final FillStyle STYLE_SOLID
public static final FillStyle STYLE_NONE
public static final FillStyle STYLE_DRAW
public static final FillStyle STYLE_OUTLINE
public java.lang.String getListLabel()
DisplayableString that will help the user
identify this item when choosing from a list.getListLabel in interface Displayablepublic java.lang.String toString()
EnumerationString that will be helpful to the user
when choosing this as an option from a list.toString in interface EnumerationtoString in class java.lang.Objectpublic javax.swing.Icon getListIcon()
Displayablenull if there
is no icon available, or a roughly 16x16 pixel icon.getListIcon in interface DisplayablegetListIcon in interface Enumerationpublic void drawListIcon(java.awt.Graphics2D g,
int x,
int y)
DisplayabledrawListIcon in interface Displayableg - the graphics context.x - the x position, typically 0.y - the y position, typically 0.