net.sf.latexdraw.glib.models.interfaces
Enum IDot.DotStyle

java.lang.Object
  extended by java.lang.Enum<IDot.DotStyle>
      extended by net.sf.latexdraw.glib.models.interfaces.IDot.DotStyle
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IDot.DotStyle>
Enclosing interface:
IDot

public static enum IDot.DotStyle
extends java.lang.Enum<IDot.DotStyle>

The different styles of dot.


Enum Constant Summary
ASTERISK
           
BAR
           
DIAMOND
           
DOT
           
FDIAMOND
           
FPENTAGON
           
FSQUARE
           
FTRIANGLE
           
O
           
OPLUS
           
OTIMES
           
PENTAGON
           
PLUS
           
SQUARE
           
TRIANGLE
           
X
           
 
Method Summary
abstract  java.lang.String getPSTToken()
           
static IDot.DotStyle getStyle(java.lang.String styleName)
           
 boolean isFillable()
          Allows to know if the dot shape can be filled.
static IDot.DotStyle valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IDot.DotStyle[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ASTERISK

public static final IDot.DotStyle ASTERISK

BAR

public static final IDot.DotStyle BAR

OPLUS

public static final IDot.DotStyle OPLUS

OTIMES

public static final IDot.DotStyle OTIMES

PLUS

public static final IDot.DotStyle PLUS

DOT

public static final IDot.DotStyle DOT

X

public static final IDot.DotStyle X

FDIAMOND

public static final IDot.DotStyle FDIAMOND

FTRIANGLE

public static final IDot.DotStyle FTRIANGLE

FPENTAGON

public static final IDot.DotStyle FPENTAGON

DIAMOND

public static final IDot.DotStyle DIAMOND

O

public static final IDot.DotStyle O

TRIANGLE

public static final IDot.DotStyle TRIANGLE

PENTAGON

public static final IDot.DotStyle PENTAGON

SQUARE

public static final IDot.DotStyle SQUARE

FSQUARE

public static final IDot.DotStyle FSQUARE
Method Detail

values

public static IDot.DotStyle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (IDot.DotStyle c : IDot.DotStyle.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IDot.DotStyle valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isFillable

public boolean isFillable()
Allows to know if the dot shape can be filled.

Returns:
True if the dot can be filled.

getPSTToken

public abstract java.lang.String getPSTToken()
Returns:
The PSTricks token corresponding to the dot style.
Since:
3.0

getStyle

public static IDot.DotStyle getStyle(java.lang.String styleName)
Parameters:
styleName - The style to get (in PST or the name of the style, e.g. FSQUARE.toString())
Returns:
The style which name is the given name style or null.
Since:
3.0