com.realtime.crossfire.jxclient.gui.gauge
Class OrientationParser

java.lang.Object
  extended by com.realtime.crossfire.jxclient.gui.gauge.OrientationParser

public class OrientationParser
extends java.lang.Object

Utility class to parse orientation names.


Constructor Summary
private OrientationParser()
          Private constructor to prevent instantiation.
 
Method Summary
static Orientation parseOrientation(java.lang.String name)
          Converts an orientation name into an Orientation instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrientationParser

private OrientationParser()
Private constructor to prevent instantiation.

Method Detail

parseOrientation

public static Orientation parseOrientation(@NotNull
                                           java.lang.String name)
Converts an orientation name into an Orientation instance. Each parsing creates a new instance.

Parameters:
name - the orientation name
Returns:
the orientation instance
Throws:
java.lang.IllegalArgumentException - if the orientation name is undefined