Class ButtonRenderer

    • Field Detail

      • DEFAULT_Y_OFFSET

        private static final float DEFAULT_Y_OFFSET
        Default padding Y offset for an input button.
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • isSplit

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

      • ButtonRenderer

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