net.sf.latexdraw.glib.models.interfaces
Enum IAxes.TicksStyle

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

public static enum IAxes.TicksStyle
extends java.lang.Enum<IAxes.TicksStyle>

Defines the different kinds of ticks.


Enum Constant Summary
BOTTOM
           
FULL
           
TOP
           
 
Method Summary
abstract  java.lang.String getPSTToken()
           
static IAxes.TicksStyle getStyle(java.lang.String style)
           
abstract  boolean isBottom()
           
abstract  boolean isTop()
           
static IAxes.TicksStyle valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IAxes.TicksStyle[] 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

FULL

public static final IAxes.TicksStyle FULL

TOP

public static final IAxes.TicksStyle TOP

BOTTOM

public static final IAxes.TicksStyle BOTTOM
Method Detail

values

public static IAxes.TicksStyle[] 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 (IAxes.TicksStyle c : IAxes.TicksStyle.values())
    System.out.println(c);

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

valueOf

public static IAxes.TicksStyle 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

getPSTToken

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

isTop

public abstract boolean isTop()
Returns:
True if the current tick style considers the top ticks.
Since:
3.0

isBottom

public abstract boolean isBottom()
Returns:
True if the current tick style considers the bottom ticks.
Since:
3.0

getStyle

public static IAxes.TicksStyle getStyle(java.lang.String style)
Parameters:
style - The style to check. Can be the PST token or the name of the style (e.g. FULL.toString()).
Returns:
The corresponding style or null.
Since:
3.0