Class ButtonRenderer

All Implemented Interfaces:
IPropertyContainer, IRenderer

public class ButtonRenderer extends AbstractOneLineTextFieldRenderer
The AbstractTextFieldRenderer implementation for buttons.
  • Field Details

    • DEFAULT_Y_OFFSET

      private static final float DEFAULT_Y_OFFSET
      Default padding Y offset for an input button.
      See Also:
    • RELATIVE_PADDING_FOR_SMALL_SIZES

      private static final float RELATIVE_PADDING_FOR_SMALL_SIZES
      Relative value is quite big in order to preserve visible padding on small field sizes. This constant is taken arbitrary, based on visual similarity to Acrobat behaviour.
      See Also:
    • isSplit

      private boolean isSplit
      Indicates if the one line caption was split.
  • Constructor Details

    • ButtonRenderer

      public ButtonRenderer(Button modelElement)
      Creates a new ButtonRenderer instance.
      Parameters:
      modelElement - the model element
  • Method Details