Class PaneInformation


  • public class PaneInformation
    extends Object
    Holds information regarding a split plane or freeze plane for a sheet.
    • Field Detail

      • PANE_LOWER_RIGHT

        public static final byte PANE_LOWER_RIGHT
        Constant for active pane being the lower right
        See Also:
        Constant Field Values
      • PANE_UPPER_RIGHT

        public static final byte PANE_UPPER_RIGHT
        Constant for active pane being the upper right
        See Also:
        Constant Field Values
      • PANE_LOWER_LEFT

        public static final byte PANE_LOWER_LEFT
        Constant for active pane being the lower left
        See Also:
        Constant Field Values
      • PANE_UPPER_LEFT

        public static final byte PANE_UPPER_LEFT
        Constant for active pane being the upper left
        See Also:
        Constant Field Values
    • Constructor Detail

      • PaneInformation

        public PaneInformation​(short x,
                               short y,
                               short top,
                               short left,
                               byte active,
                               boolean frozen)
    • Method Detail

      • getVerticalSplitPosition

        public short getVerticalSplitPosition()
        Returns the vertical position of the split.
        Returns:
        0 if there is no vertical spilt, or for a freeze pane the number of columns in the TOP pane, or for a split plane the position of the split in 1/20th of a point.
      • getHorizontalSplitPosition

        public short getHorizontalSplitPosition()
        Returns the horizontal position of the split.
        Returns:
        0 if there is no horizontal spilt, or for a freeze pane the number of rows in the LEFT pane, or for a split plane the position of the split in 1/20th of a point.
      • getHorizontalSplitTopRow

        public short getHorizontalSplitTopRow()
        For a horizontal split returns the top row in the BOTTOM pane.
        Returns:
        0 if there is no horizontal split, or the top row of the bottom pane.
      • getVerticalSplitLeftColumn

        public short getVerticalSplitLeftColumn()
        For a vertical split returns the left column in the RIGHT pane.
        Returns:
        0 if there is no vertical split, or the left column in the RIGHT pane.
      • getActivePaneType

        public PaneType getActivePaneType()
        Returns:
        the active pane type - can return null if no active pane type is set
        Since:
        POI 5.2.3
      • isFreezePane

        public boolean isFreezePane()
        Returns true if this is a Freeze pane, false if it is a split pane.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object