Enum SizeMode

  • All Implemented Interfaces:

    
    public enum SizeMode
    
                        

    Algorithms available for calculating an arbitrary dimension of a widget. Each algorithm also takes a single value called "val" in this doc. ABSOLUTE - Val is treated as absolute. If val is 5 then the size of the widget along the associated axis is 5 pixels. RELATIVE - Val represents the percentage of the display that the widget should fill along the associated axis. For example, if the total size of the owning plot is 120 pixels and val is set to 50 then the size of the widget along the associated axis is 60; 50% of 120 = 60. FILL - Widget completely fills along the associated axis, minus the input size value

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Method Summary

      Modifier and Type Method Description
      static Array<SizeMode> values() Returns an array containing the constants of this enum type, in the order they're declared.
      static SizeMode valueOf(String name) Returns the enum constant of this type with the specified name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • values

         static Array<SizeMode> values()

        Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

        Returns:

        an array containing the constants of this enum type, in the order they're declared

      • valueOf

         static SizeMode 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.)

        Returns:

        the enum constant with the specified name