de.infinityloop.util.style
Class PropertyTraits

java.lang.Object
  extended by de.infinityloop.util.style.PropertyTraits

public class PropertyTraits
extends java.lang.Object

Property Traits descriptor. This "structure" defines how this property is inherited (and whether it is at all), and which property percentage values refer to.


Field Summary
static int kComputedValue
           
static int kNotInherited
           
static int kSame
           
static int kSpecifiedValue
           
 
Constructor Summary
PropertyTraits()
           
PropertyTraits(int behav)
          Constructor
PropertyTraits(int behav, boolean parent, int refid)
          Constructor
 
Method Summary
 int getInheritanceBehaviour()
          Retrieves inheritance behaviour
 int getPercentageRef()
          Retrieves percentage reference property id
 int getPercentageRef(int ownProperty)
          Retrieves percentage reference property id
 boolean isPercentageParentRef()
          Retrieves percentage parent or self reference type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kNotInherited

public static final int kNotInherited
See Also:
Constant Field Values

kComputedValue

public static final int kComputedValue
See Also:
Constant Field Values

kSpecifiedValue

public static final int kSpecifiedValue
See Also:
Constant Field Values

kSame

public static final int kSame
See Also:
Constant Field Values
Constructor Detail

PropertyTraits

public PropertyTraits(int behav,
                      boolean parent,
                      int refid)
Constructor


PropertyTraits

public PropertyTraits(int behav)
Constructor


PropertyTraits

public PropertyTraits()
Method Detail

getInheritanceBehaviour

public int getInheritanceBehaviour()
Retrieves inheritance behaviour


getPercentageRef

public int getPercentageRef()
Retrieves percentage reference property id


getPercentageRef

public int getPercentageRef(int ownProperty)
Retrieves percentage reference property id

Parameters:
ownProperty - this property's id. Used to already resolve the special value kSame.
Returns:
percentage reference property id

isPercentageParentRef

public boolean isPercentageParentRef()
Retrieves percentage parent or self reference type