public abstract class AbstractRowHideShowLayer extends AbstractLayerTransform implements IUniqueIndexLayer
underlyingLayer
layerPainter
DOT, VALUE_SEPARATOR
Constructor and Description |
---|
AbstractRowHideShowLayer(IUniqueIndexLayer underlyingLayer) |
Modifier and Type | Method and Description |
---|---|
protected void |
cacheVisibleRowIndexes() |
int |
getColumnPositionByIndex(int columnIndex) |
int |
getHeight()
Returns the total height in pixels of this layer.
|
abstract Collection<Integer> |
getHiddenRowIndexes()
Will collect and return all indexes of the rows that are hidden in this layer.
|
int |
getRowCount() |
int |
getRowIndexByPosition(int rowPosition)
Gets the underlying non-transformed row index for the given row position.
|
int |
getRowPositionByIndex(int rowIndex) |
int |
getRowPositionByY(int y)
Returns the row position that contains the given y coordinate.
|
Collection<Integer> |
getRowPositionsByIndexes(Collection<Integer> rowIndexes) |
int |
getStartYOfRowPosition(int localRowPosition)
Returns the y offset in pixels of the given row.
|
void |
handleLayerEvent(ILayerEvent event)
Handle layer event notification.
|
protected void |
invalidateCache()
Invalidate the cache to ensure that information is rebuild.
|
abstract boolean |
isRowIndexHidden(int rowIndex)
Will check if the row at the specified index is hidden or not.
|
int |
localToUnderlyingRowPosition(int localRowPosition) |
int |
underlyingToLocalRowPosition(ILayer sourceUnderlyingLayer,
int underlyingRowPosition) |
Collection<Range> |
underlyingToLocalRowPositions(ILayer sourceUnderlyingLayer,
Collection<Range> underlyingRowPositionRanges) |
configure, dispose, doCommand, getCellByPosition, getCellPainter, getColumnCount, getColumnIndexByPosition, getColumnPositionByX, getColumnWidthByPosition, getConfigLabelsByPosition, getDataValueByPosition, getDisplayModeByPosition, getLayerPainter, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getRegionLabelsByXY, getRowHeightByPosition, getStartXOfColumnPosition, getUnderlyingLayer, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, getWidth, isColumnPositionResizable, isRowPositionResizable, loadState, localToUnderlyingColumnPosition, saveState, setClientAreaProvider, setUnderlyingLayer, underlyingToLocalColumnPosition, underlyingToLocalColumnPositions
addConfiguration, addLayerListener, clearConfiguration, fireLayerEvent, getBoundsByPosition, getClientAreaProvider, getConfigLabelAccumulator, getRegionName, hasLayerListener, registerCommandHandler, registerCommandHandlers, registerEventHandler, registerPersistable, removeLayerListener, setConfigLabelAccumulator, setLayerPainter, setRegionName, toString, unregisterCommandHandler, unregisterPersistable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addLayerListener, configure, dispose, doCommand, fireLayerEvent, getBoundsByPosition, getCellByPosition, getCellPainter, getClientAreaProvider, getColumnCount, getColumnIndexByPosition, getColumnPositionByX, getColumnWidthByPosition, getConfigLabelsByPosition, getDataValueByPosition, getDisplayModeByPosition, getLayerPainter, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getRegionLabelsByXY, getRowHeightByPosition, getStartXOfColumnPosition, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, getWidth, hasLayerListener, isColumnPositionResizable, isRowPositionResizable, localToUnderlyingColumnPosition, registerCommandHandler, registerPersistable, removeLayerListener, setClientAreaProvider, underlyingToLocalColumnPosition, underlyingToLocalColumnPositions, unregisterCommandHandler, unregisterPersistable
loadState, saveState
public AbstractRowHideShowLayer(IUniqueIndexLayer underlyingLayer)
public void handleLayerEvent(ILayerEvent event)
AbstractLayer
super.fireLayerEvent(event)
- unless you plan to eat the event yourself.handleLayerEvent
in interface ILayerListener
handleLayerEvent
in class AbstractLayer
event
- the eventpublic int getColumnPositionByIndex(int columnIndex)
getColumnPositionByIndex
in interface IUniqueIndexLayer
public int getRowCount()
getRowCount
in interface ILayer
getRowCount
in class AbstractLayerTransform
public int getRowIndexByPosition(int rowPosition)
ILayer
getRowIndexByPosition
in interface ILayer
getRowIndexByPosition
in class AbstractLayerTransform
rowPosition
- a row position relative to this coordinate modelpublic int getRowPositionByIndex(int rowIndex)
getRowPositionByIndex
in interface IUniqueIndexLayer
public Collection<Integer> getRowPositionsByIndexes(Collection<Integer> rowIndexes)
public int localToUnderlyingRowPosition(int localRowPosition)
localToUnderlyingRowPosition
in interface ILayer
localToUnderlyingRowPosition
in class AbstractLayerTransform
public int underlyingToLocalRowPosition(ILayer sourceUnderlyingLayer, int underlyingRowPosition)
underlyingToLocalRowPosition
in interface ILayer
underlyingToLocalRowPosition
in class AbstractLayerTransform
public Collection<Range> underlyingToLocalRowPositions(ILayer sourceUnderlyingLayer, Collection<Range> underlyingRowPositionRanges)
underlyingToLocalRowPositions
in interface ILayer
underlyingToLocalRowPositions
in class AbstractLayerTransform
public int getHeight()
ILayer
getHeight
in interface ILayer
getHeight
in class AbstractLayerTransform
public int getRowPositionByY(int y)
ILayer
getRowPositionByY
in interface ILayer
getRowPositionByY
in class AbstractLayerTransform
y
- a vertical pixel location relative to the pixel boundary of this layerpublic int getStartYOfRowPosition(int localRowPosition)
ILayer
getStartYOfRowPosition
in interface ILayer
getStartYOfRowPosition
in class AbstractLayerTransform
localRowPosition
- the row position in this layerpublic abstract boolean isRowIndexHidden(int rowIndex)
rowIndex
- The row index of the row whose visibility state
should be checked.true
if the row at the specified index is hidden,
false
if it is visible.public abstract Collection<Integer> getHiddenRowIndexes()
protected void invalidateCache()
protected void cacheVisibleRowIndexes()
Copyright © 2013. All Rights Reserved.