|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectCodeList<E>
SimpleEnumerationType<LineStyle>
LineStyle
public class LineStyle
Indicate the various enumerations of drawing a line. This class defines static constants for all of the standard choices. Depending on the choice of line style, the current foreground color, and background color may affect the appearance of an object.
An implementation is not required to implement the entire list of available line
styles. At runtime, the list of implemented line styles can be retrieved from a
DisplayCapabilities
object (that was itself retrieved
from a Canvas
). An implementation may also implement
other line styles not listed here.
NOTE: Two different implementations may have line styles with
the same name, but use different LineStyle
instances. If clients need to use the line style name to find a
line style they should search the array returned by
getSupportedLineStyles()
from the
DisplayCapabilities
instance associated with the
correct provider.
This list was compiled by examining the behavior of various software packages. Where possible, a reference document is given. For others, a description of the style or an indication of the software where the style can be seen is given.
Field Summary | |
---|---|
static LineStyle |
DOUBLE
The line should be drawn as double parallel lines. |
static LineStyle |
SINGLE
The line should be drawn as a single line. |
Constructor Summary | |
---|---|
protected |
LineStyle(String name,
String description)
Construct a new LineStyle with the give name and description. |
Method Summary | |
---|---|
CodeList[] |
family()
Returns the list of enumerations of the same kind than this enum. |
static LineStyle[] |
values()
Returns the list of LineStyle s. |
Methods inherited from class SimpleEnumerationType |
---|
getDescription, getIcon, getNullIcon, loadIconResource, toString |
Methods inherited from class CodeList |
---|
compareTo, name, ordinal, readResolve |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final LineStyle SINGLE
public static final LineStyle DOUBLE
Constructor Detail |
---|
protected LineStyle(String name, String description)
DisplayCapabilities.getSupportedLineStyles()
.
name
- a String defining the name of the fill pattern.description
- a String describing the pattern.Method Detail |
---|
public static LineStyle[] values()
LineStyle
s.
public CodeList[] family()
family
in class CodeList<LineStyle>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |