When using CSS you have a whole bunch of units to define borders and sizes. These are pixel, percentages, ems and many more. In Java we only have primitives that can't be used for every unit. Thus the {@link Unit} type is anabstraction for units that will be used within Passe-Partout.
By default Passe-Partout knows 3 units. These are pixel, percentage and the em. These units can be created using the px
, em
and percentage
methods in the {@link PassePartout} class.
|
|
|
|