Class LineBorder

java.lang.Object
vaadinx.swing.border.AbstractBorder
vaadinx.swing.border.LineBorder
All Implemented Interfaces:
Serializable, Border

public class LineBorder extends AbstractBorder
Port of LineBorder. Solid rectangular border around the component. Optional rounded corners.

CSS mapping: border: <thickness>px solid <color> plus a border-radius when rounded — close-enough to Swing's paint output for R_best_effort_behaviour best-effort. Thick line borders render identically in both stacks; the difference is inner-pixel-perfect anti-aliasing, which R_layouts_close_enough carves out.

See Also:
  • Field Details

    • lineColor

      protected final Color lineColor
    • thickness

      protected final int thickness
    • roundedCorners

      protected final boolean roundedCorners
  • Constructor Details

    • LineBorder

      public LineBorder(Color color)
    • LineBorder

      public LineBorder(Color color, int thickness)
    • LineBorder

      public LineBorder(Color color, int thickness, boolean roundedCorners)
  • Method Details