Package com.oorian.css.units
Class Units
java.lang.Object
com.oorian.css.units.Units
Abstract base class for CSS unit value types.
This class provides the foundation for all CSS unit value classes such as
Px, Em, Rem, Percent, and viewport-relative units.
Each unit type extends this class and implements the sizeToString() method
to provide the appropriate CSS string representation.
Usage:
Units pixels = new Px(16);
Units ems = new Em(1.5f);
Units percent = new Percent(50);
element.setWidth(pixels);
element.setPadding(ems);
- Since:
- 2016
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also: