public enum LengthProperty extends Enum<LengthProperty> implements SimpleDatatype<String>, CssProperty
Length values. Both
 value and string representation are the CSS property name.Length| Enum Constant and Description | 
|---|
| HEIGHTThe actual height (vertical length). | 
| MAX_HEIGHTThe maximum height (vertical length). | 
| MAX_WIDTHThe maximum width (horizontal length). | 
| MIN_HEIGHTThe minimum height (vertical length). | 
| MIN_WIDTHThe minimum width (horizontal length). | 
| WIDTHThe actual width (horizontal length). | 
| Modifier and Type | Field and Description | 
|---|---|
| private String | memberName | 
| private String | styleName | 
| Modifier and Type | Method and Description | 
|---|---|
| Length | getDefaultValue() | 
| double | getLengthInPixel(AttributeReadLengthProperty lengthSource,
                AttributeReadSizeInPixel basePixelSize) | 
| double | getLengthInPixel(AttributeReadLengthProperty lengthSource,
                double basePixelLength) | 
| String | getMemberName() | 
| String | getStyleName() | 
| String | getValue()This method returns the raw value of this datatype. | 
| boolean | isWidth() | 
| String | toString() | 
| static LengthProperty | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static LengthProperty[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final LengthProperty WIDTH
public static final LengthProperty MIN_WIDTH
public static final LengthProperty MAX_WIDTH
public static final LengthProperty HEIGHT
public static final LengthProperty MIN_HEIGHT
public static final LengthProperty MAX_HEIGHT
private final String styleName
getStyleName()private final String memberName
getMemberName()public static LengthProperty[] values()
for (LengthProperty c : LengthProperty.values()) System.out.println(c);
public static LengthProperty valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getStyleName()
getStyleName in interface CssPropertypublic String getMemberName()
getMemberName in interface CssPropertypublic String getValue()
String
 , Character, Boolean, any type of Number, any type of java.time.LocalDate, etc.).getValue in interface AttributeReadValue<String>getValue in interface SimpleDatatype<String>public double getLengthInPixel(AttributeReadLengthProperty lengthSource, double basePixelLength)
lengthSource - is the object to get the Length from.basePixelLength - - see Length#convertToPixel(double, LengthProperty)Length in LengthUnit.PIXEL.Length.convertToPixel(double, LengthProperty)public double getLengthInPixel(AttributeReadLengthProperty lengthSource, AttributeReadSizeInPixel basePixelSize)
lengthSource - is the object to get the Length from.basePixelSize - gives access to read the size of the base container (e.g. screen, parent panel,
        etc.).Length in LengthUnit.PIXEL.Length.convertToPixel(double, LengthProperty)public String toString()
String representation of this Datatype. While the general contract of
 Object.toString() is very weak and mainly used for debugging, the contract here is very strong. The
 returned String has to be suitable for end-users and official output to any kind of sink. NlsMessage for
 this purpose and implement NlsObject if you want to support I18N/L10N.public Length getDefaultValue()
LengthProperty. Will be Length.MAX for max properties
         and Length.ZERO otherwise.Copyright © 2001–2016 mmm-Team. All rights reserved.