net.sf.latexdraw.glib.models.interfaces
Enum IAxes.PlottingStyle
java.lang.Object
java.lang.Enum<IAxes.PlottingStyle>
net.sf.latexdraw.glib.models.interfaces.IAxes.PlottingStyle
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<IAxes.PlottingStyle>
- Enclosing interface:
- IAxes
public static enum IAxes.PlottingStyle
- extends java.lang.Enum<IAxes.PlottingStyle>
Defines the different style of labels.
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
ALL
public static final IAxes.PlottingStyle ALL
X
public static final IAxes.PlottingStyle X
Y
public static final IAxes.PlottingStyle Y
NONE
public static final IAxes.PlottingStyle NONE
values
public static IAxes.PlottingStyle[] 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.PlottingStyle c : IAxes.PlottingStyle.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.PlottingStyle 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
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Enum<IAxes.PlottingStyle>
getPSTToken
public abstract java.lang.String getPSTToken()
- Returns:
- The PST token corresponding to the labels style.
- Since:
- 3.0
isX
public abstract boolean isX()
- Returns:
- True if the current style supports the X-axis.
- Since:
- 3.0
isY
public abstract boolean isY()
- Returns:
- True if the current style supports the Y-axis.
- Since:
- 3.0
getStyle
public static IAxes.PlottingStyle getStyle(java.lang.String style)
- The style that corresponds to the given string.
- Parameters:
style
- The style to check.
- Returns:
- The corresponding style or null.
- Since:
- 3.0