Package io.keikai.ui.impl
Class HeaderPositionHelper
- java.lang.Object
-
- io.keikai.ui.impl.HeaderPositionHelper
-
- All Implemented Interfaces:
Serializable
public class HeaderPositionHelper extends Object implements Serializable
A utility class for calculating position of header. Each non-default size of a row or column header is stored as aHeaderPositionHelper.HeaderPositionInfo
in this helper.- Author:
- Dennis.Chen
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HeaderPositionHelper.HeaderPositionInfo
-
Constructor Summary
Constructors Constructor Description HeaderPositionHelper(int defaultSize, List<HeaderPositionHelper.HeaderPositionInfo> infos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCellIndex(int px)
int
getDefaultSize()
HeaderPositionHelper.HeaderPositionInfo
getInfo(int cellIndex)
List<HeaderPositionHelper.HeaderPositionInfo>
getInfos()
int
getNextNonHidden(int cellIndex)
int
getPrevNonHidden(int cellIndex)
int
getSize(int cellIndex)
int
getStartPixel(int cellIndex)
boolean
isHidden(int cellIndex)
void
removeInfo(int cellIndex)
void
setInfoValues(int cellIndex, int size, int id, boolean hidden, boolean isCustom, boolean hasSizeInfo)
void
shiftMeta(int cellIndex, int offset)
String
toString()
void
unshiftMeta(int cellIndex, int offset)
-
-
-
Constructor Detail
-
HeaderPositionHelper
public HeaderPositionHelper(int defaultSize, List<HeaderPositionHelper.HeaderPositionInfo> infos)
-
-
Method Detail
-
getDefaultSize
public int getDefaultSize()
-
getInfos
public List<HeaderPositionHelper.HeaderPositionInfo> getInfos()
-
isHidden
public boolean isHidden(int cellIndex)
-
getPrevNonHidden
public int getPrevNonHidden(int cellIndex)
-
getNextNonHidden
public int getNextNonHidden(int cellIndex)
-
getSize
public int getSize(int cellIndex)
-
shiftMeta
public void shiftMeta(int cellIndex, int offset)
-
unshiftMeta
public void unshiftMeta(int cellIndex, int offset)
-
getInfo
public HeaderPositionHelper.HeaderPositionInfo getInfo(int cellIndex)
-
setInfoValues
public void setInfoValues(int cellIndex, int size, int id, boolean hidden, boolean isCustom, boolean hasSizeInfo)
-
removeInfo
public void removeInfo(int cellIndex)
-
getCellIndex
public int getCellIndex(int px)
-
getStartPixel
public int getStartPixel(int cellIndex)
-
-