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()
Displayable
String
that will help the user
identify this item when choosing from a list.getListLabel
in interface Displayable
public java.lang.String toString()
Enumeration
String
that will be helpful to the user
when choosing this as an option from a list.toString
in interface Enumeration
toString
in class java.lang.Object
public javax.swing.Icon getListIcon()
Displayable
null
if there
is no icon available, or a roughly 16x16 pixel icon.getListIcon
in interface Displayable
getListIcon
in interface Enumeration
public void drawListIcon(java.awt.Graphics2D g, int x, int y)
Displayable
drawListIcon
in interface Displayable
g
- the graphics context.x
- the x position, typically 0.y
- the y position, typically 0.