Class Pc


public class Pc extends Units
CSS pc (pica) unit value.

The pc unit is an absolute-length unit equal to one pica, a traditional printing unit. In CSS, 1pc equals 1/6th of an inch or 16px. Picas are primarily used in print design and typography.

Usage:


 Units size = new Pc(6);
 element.setWidth(new Pc(30));
 element.setMargin(new Pc(2));
 
Since:
2016
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • Pc

      public Pc(float value)
      Constructs a Pc unit with the specified value.
      Parameters:
      value - the pica value
  • Method Details

    • sizeToString

      public String sizeToString()
      Returns the CSS string representation of this pica value.
      Specified by:
      sizeToString in class Units
      Returns:
      the CSS value string (e.g., "6pc")