public abstract class AbstractRowHideShowLayer extends AbstractLayerTransform implements IUniqueIndexLayer
underlyingLayercommandHandlers, eventHandlers, eventHelperLock, layerPainterDOT, 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, isDynamicSizeLayer, isRowPositionResizable, loadState, localToUnderlyingColumnPosition, saveState, setClientAreaProvider, setUnderlyingLayer, underlyingToLocalColumnPosition, underlyingToLocalColumnPositionsaddConfiguration, addLayerListener, clearConfiguration, fireLayerEvent, getBoundsByPosition, getClientAreaProvider, getConfigLabelAccumulator, getProvidedLabels, getRegionName, hasLayerListener, registerCommandHandler, registerCommandHandlers, registerEventHandler, registerPersistable, removeLayerListener, setConfigLabelAccumulator, setLayerPainter, setRegionName, toString, unregisterCommandHandler, unregisterEventHandler, unregisterPersistableclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddLayerListener, 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, unregisterPersistableloadState, saveStatepublic AbstractRowHideShowLayer(IUniqueIndexLayer underlyingLayer)
public void handleLayerEvent(ILayerEvent event)
AbstractLayersuper.fireLayerEvent(event) - unless you plan to eat the
event yourself.handleLayerEvent in interface ILayerListenerhandleLayerEvent in class AbstractLayerevent - the eventpublic int getColumnPositionByIndex(int columnIndex)
getColumnPositionByIndex in interface IUniqueIndexLayerpublic int getRowCount()
getRowCount in interface ILayergetRowCount in class AbstractLayerTransformpublic int getRowIndexByPosition(int rowPosition)
ILayergetRowIndexByPosition in interface ILayergetRowIndexByPosition in class AbstractLayerTransformrowPosition - a row position relative to this coordinate modelpublic int getRowPositionByIndex(int rowIndex)
getRowPositionByIndex in interface IUniqueIndexLayerpublic Collection<Integer> getRowPositionsByIndexes(Collection<Integer> rowIndexes)
public int localToUnderlyingRowPosition(int localRowPosition)
localToUnderlyingRowPosition in interface ILayerlocalToUnderlyingRowPosition in class AbstractLayerTransformpublic int underlyingToLocalRowPosition(ILayer sourceUnderlyingLayer, int underlyingRowPosition)
underlyingToLocalRowPosition in interface ILayerunderlyingToLocalRowPosition in class AbstractLayerTransformpublic Collection<Range> underlyingToLocalRowPositions(ILayer sourceUnderlyingLayer, Collection<Range> underlyingRowPositionRanges)
underlyingToLocalRowPositions in interface ILayerunderlyingToLocalRowPositions in class AbstractLayerTransformpublic int getHeight()
ILayergetHeight in interface ILayergetHeight in class AbstractLayerTransformpublic int getRowPositionByY(int y)
ILayergetRowPositionByY in interface ILayergetRowPositionByY in class AbstractLayerTransformy - a vertical pixel location relative to the pixel boundary of
this layerpublic int getStartYOfRowPosition(int localRowPosition)
ILayergetStartYOfRowPosition in interface ILayergetStartYOfRowPosition in class AbstractLayerTransformlocalRowPosition - 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 © 2016. All rights reserved.