com.threerings.cast
Class ComponentClass.PriorityOverride

java.lang.Object
  extended by com.threerings.cast.ComponentClass.PriorityOverride
All Implemented Interfaces:
Serializable, Comparable<ComponentClass.PriorityOverride>
Enclosing class:
ComponentClass

public static class ComponentClass.PriorityOverride
extends Object
implements Comparable<ComponentClass.PriorityOverride>, Serializable

Used to effect custom render orders for particular actions, orientations, etc.

See Also:
Serialized Form

Field Summary
 String action
          The action, if any, for which this override is appropriate.
 String component
          The component, if any, for which this override is appropriate.
 ArrayIntSet orients
          The orientations, if any, for which this override is appropriate.
 int renderPriority
          The overridden render priority value.
 
Constructor Summary
ComponentClass.PriorityOverride()
           
 
Method Summary
 int compareTo(ComponentClass.PriorityOverride po)
           
 boolean matches(String action, String component, int orient)
          Determines whether this priority override matches the specified action, orientation ant component combination.
protected  int priority()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

renderPriority

public int renderPriority
The overridden render priority value.


action

public String action
The action, if any, for which this override is appropriate.


component

public String component
The component, if any, for which this override is appropriate.


orients

public ArrayIntSet orients
The orientations, if any, for which this override is appropriate.

Constructor Detail

ComponentClass.PriorityOverride

public ComponentClass.PriorityOverride()
Method Detail

matches

public boolean matches(String action,
                       String component,
                       int orient)
Determines whether this priority override matches the specified action, orientation ant component combination.


compareTo

public int compareTo(ComponentClass.PriorityOverride po)
Specified by:
compareTo in interface Comparable<ComponentClass.PriorityOverride>

priority

protected int priority()

toString

public String toString()
Overrides:
toString in class Object