Package org.apache.poi.ss.util
Class PaneInformation
- java.lang.Object
-
- org.apache.poi.ss.util.PaneInformation
-
public class PaneInformation extends java.lang.Object
Holds information regarding a split plane or freeze plane for a sheet.
-
-
Field Summary
Fields Modifier and Type Field Description static byte
PANE_LOWER_LEFT
Constant for active pane being the lower leftstatic byte
PANE_LOWER_RIGHT
Constant for active pane being the lower rightstatic byte
PANE_UPPER_LEFT
Constant for active pane being the upper leftstatic byte
PANE_UPPER_RIGHT
Constant for active pane being the upper right
-
Constructor Summary
Constructors Constructor Description PaneInformation(short x, short y, short top, short left, byte active, boolean frozen)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getActivePane()
Returns the active paneshort
getHorizontalSplitPosition()
Returns the horizontal position of the split.short
getHorizontalSplitTopRow()
For a horizontal split returns the top row in the BOTTOM pane.short
getVerticalSplitLeftColumn()
For a vertical split returns the left column in the RIGHT pane.short
getVerticalSplitPosition()
Returns the vertical position of the split.boolean
isFreezePane()
Returns true if this is a Freeze pane, false if it is a split pane.
-
-
-
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
-
-
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.
-
getActivePane
public byte getActivePane()
Returns the active pane- Returns:
- the active pane.
- See Also:
PANE_LOWER_RIGHT
,PANE_UPPER_RIGHT
,PANE_LOWER_LEFT
,PANE_UPPER_LEFT
-
isFreezePane
public boolean isFreezePane()
Returns true if this is a Freeze pane, false if it is a split pane.
-
-