Class MultiColumnText.ColumnDef

  • Enclosing class:
    MultiColumnText

    private class MultiColumnText.ColumnDef
    extends java.lang.Object
    Inner class used to define a column
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private float[] left  
      private float[] right  
    • Constructor Summary

      Constructors 
      Constructor Description
      ColumnDef​(float[] newLeft, float[] newRight)  
      ColumnDef​(float leftPosition, float rightPosition)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private boolean isSimple()
      Checks if column definition is a simple rectangle
      private float[] resolvePositions​(float[] positions)  
      (package private) float[] resolvePositions​(int side)
      Resolves the positions for the specified side of the column into real numbers once the top of the column is known.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • left

        private final float[] left
      • right

        private final float[] right
    • Constructor Detail

      • ColumnDef

        ColumnDef​(float[] newLeft,
                  float[] newRight)
      • ColumnDef

        ColumnDef​(float leftPosition,
                  float rightPosition)
    • Method Detail

      • resolvePositions

        float[] resolvePositions​(int side)
        Resolves the positions for the specified side of the column into real numbers once the top of the column is known.
        Parameters:
        side - either Rectangle.LEFT or Rectangle.RIGHT
        Returns:
        the array of floats for the side
      • resolvePositions

        private float[] resolvePositions​(float[] positions)
      • isSimple

        private boolean isSimple()
        Checks if column definition is a simple rectangle
        Returns:
        true if it is a simple column