Interface ColumnWidthMetrics

  • All Superinterfaces:
    org.refcodes.mixin.ColumnWidthAccessor, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<ColumnWidthMetrics>, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
    All Known Subinterfaces:
    ColumnFormatMetrics, ColumnSetupMetrics
    All Known Implementing Classes:
    ColumnFormatMetricsImpl, ColumnSetupMetricsImpl, ColumnWidthMetricsImpl

    public interface ColumnWidthMetrics
    extends org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<ColumnWidthMetrics>
    This interface specifies means to define a width either as percentage or absolute, e.g. in the number of chars.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.refcodes.mixin.ColumnWidthAccessor

        org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B extends org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B>>, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
    • Method Detail

      • getColumnWidthType

        ColumnWidthType getColumnWidthType()
        The type of the width being provided, either percent (%) or number of chars.
        Returns:
        The column's width type, either percent (%) or number of chars.
      • setColumnWidthType

        void setColumnWidthType​(ColumnWidthType aColumnWidthType)
        Sets the column width type.
        Parameters:
        aColumnWidthType - the new column width type
      • withColumnWidthType

        default ColumnWidthMetrics withColumnWidthType​(ColumnWidthType aColumnWidthType)
        With column width type.
        Parameters:
        aColumnWidthType - the column width type
        Returns:
        the column width metrics
      • fromColumnWidthMetrics

        default void fromColumnWidthMetrics​(ColumnWidthMetrics aColumnWidthMetrics)
        From column width metrics.
        Parameters:
        aColumnWidthMetrics - the column width metrics