org.openpermis.editor.policy.gui.dock
Enum ToolLocationParser.Direction

java.lang.Object
  extended by java.lang.Enum<ToolLocationParser.Direction>
      extended by org.openpermis.editor.policy.gui.dock.ToolLocationParser.Direction
All Implemented Interfaces:
Serializable, Comparable<ToolLocationParser.Direction>
Enclosing class:
ToolLocationParser

protected static enum ToolLocationParser.Direction
extends Enum<ToolLocationParser.Direction>


Enum Constant Summary
EAST
          East direction.
MAXIMIZED
          Describes a maximized location.
NORTH
          North direction.
SOUTH
          South direction.
WEST
          West direction.
WORKING_AREA
          Describes a working area location.
 
Method Summary
protected abstract  bibliothek.gui.dock.common.location.AbstractTreeLocation baseLocation(bibliothek.gui.dock.common.location.CBaseLocation base, double weight)
          Determines the next location for a base location.
 String content(String spec)
          Determines the actual content for a specification.
 double getPriority()
          Returns the display priority.
 bibliothek.gui.dock.common.CLocation location(bibliothek.gui.dock.common.CLocation location, String content)
          Determines the next location based on this direction and the current location.
 boolean matches(String spec)
          Test if the form specified matches this direction.
 String next(String content)
          Determines the next element to be parsed.
protected abstract  bibliothek.gui.dock.common.location.AbstractTreeLocation treeLocation(bibliothek.gui.dock.common.location.AbstractTreeLocation root, double weight)
          Determines the next location for a tree location.
static ToolLocationParser.Direction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ToolLocationParser.Direction[] 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

WORKING_AREA

public static final ToolLocationParser.Direction WORKING_AREA
Describes a working area location.

Since:
0.9.0

MAXIMIZED

public static final ToolLocationParser.Direction MAXIMIZED
Describes a maximized location.

Since:
0.9.0

NORTH

public static final ToolLocationParser.Direction NORTH
North direction.

Since:
0.9.0

EAST

public static final ToolLocationParser.Direction EAST
East direction.

Since:
0.9.0

SOUTH

public static final ToolLocationParser.Direction SOUTH
South direction.

Since:
0.9.0

WEST

public static final ToolLocationParser.Direction WEST
West direction.

Since:
0.9.0
Method Detail

values

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

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

valueOf

public static ToolLocationParser.Direction valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getPriority

public double getPriority()
Returns the display priority.

Returns:
the display priority.
Since:
0.9.0

content

public String content(String spec)
Determines the actual content for a specification.

Parameters:
spec - the specification for which to determine the content.
Returns:
the content requested or null if the specification does not match this direction.
Since:
0.9.0

matches

public boolean matches(String spec)
Test if the form specified matches this direction.

Parameters:
spec - the specification to check.
Returns:
true if the specification matches this direction.
Since:
0.9.0

next

public String next(String content)
Determines the next element to be parsed.

Parameters:
content - the content for which to determine the next element.
Returns:
the next element to parse or null if finished.
Since:
0.9.0

location

public bibliothek.gui.dock.common.CLocation location(bibliothek.gui.dock.common.CLocation location,
                                                     String content)
Determines the next location based on this direction and the current location.

Parameters:
location - the location to base the location on.
content - the content that determines the next location.
Returns:
the next location.
Since:
0.9.0

baseLocation

protected abstract bibliothek.gui.dock.common.location.AbstractTreeLocation baseLocation(bibliothek.gui.dock.common.location.CBaseLocation base,
                                                                                         double weight)
Determines the next location for a base location.

Parameters:
base - the base location to use.
weight - the weight to apply.
Returns:
the next location.
Since:
0.9.0

treeLocation

protected abstract bibliothek.gui.dock.common.location.AbstractTreeLocation treeLocation(bibliothek.gui.dock.common.location.AbstractTreeLocation root,
                                                                                         double weight)
Determines the next location for a tree location.

Parameters:
root - the root tree location.
weight - the weight to apply.
Returns:
the next location.
Since:
0.9.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG