java.lang.Object
org.teamapps.ux.component.absolutelayout.Length

public class Length
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    static Length AUTO  
  • Constructor Summary

    Constructors
    Constructor Description
    Length​(float size)  
    Length​(float size, SizeUnit unit)  
  • Method Summary

    Modifier and Type Method Description
    float getSize()  
    SizeUnit getUnit()  
    static Length ofPercent​(int percent)  
    static Length ofPixels​(int pixels)  
    java.lang.String toCssString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • AUTO

      public static final Length AUTO
  • Constructor Details

    • Length

      public Length​(float size)
    • Length

      public Length​(float size, SizeUnit unit)
  • Method Details

    • ofPixels

      public static Length ofPixels​(int pixels)
    • ofPercent

      public static Length ofPercent​(int percent)
    • toCssString

      public java.lang.String toCssString()
    • getSize

      public float getSize()
    • getUnit

      public SizeUnit getUnit()