public class FreezeLayer extends AbstractIndexLayerTransform
Modifier and Type | Field and Description |
---|---|
static String |
PERSISTENCE_BOTTOM_RIGHT_POSITION |
static String |
PERSISTENCE_TOP_LEFT_POSITION |
layerPainter
DOT, VALUE_SEPARATOR
Constructor and Description |
---|
FreezeLayer(IUniqueIndexLayer underlyingLayer) |
Modifier and Type | Method and Description |
---|---|
PositionCoordinate |
getBottomRightPosition() |
int |
getColumnCount() |
int |
getColumnPositionByX(int x)
Returns the column position that contains the given x coordinate.
|
int |
getHeight()
Returns the total height in pixels of this layer.
|
int |
getPreferredColumnCount() |
int |
getPreferredHeight() |
int |
getPreferredRowCount() |
int |
getPreferredWidth() |
int |
getRowCount() |
int |
getRowPositionByY(int y)
Returns the row position that contains the given y coordinate.
|
int |
getStartXOfColumnPosition(int columnPosition)
Returns the x offset in pixels of the given column.
|
int |
getStartYOfRowPosition(int rowPosition)
Returns the y offset in pixels of the given row.
|
PositionCoordinate |
getTopLeftPosition() |
int |
getWidth()
Returns the total width in pixels of this layer.
|
boolean |
isFrozen() |
int |
localToUnderlyingColumnPosition(int localColumnPosition)
Convert a column position to the coordinates of the underlying layer.
|
int |
localToUnderlyingRowPosition(int localRowPosition) |
void |
setBottomRightPosition(int rightColumnPosition,
int bottomRowPosition) |
void |
setTopLeftPosition(int leftColumnPosition,
int topRowPosition) |
int |
underlyingToLocalColumnPosition(ILayer sourceUnderlyingLayer,
int underlyingColumnPosition) |
int |
underlyingToLocalRowPosition(ILayer sourceUnderlyingLayer,
int underlyingRowPosition) |
configure, dispose, doCommand, getCellByPosition, getCellPainter, getColumnIndexByPosition, getColumnPositionByIndex, getColumnWidthByPosition, getConfigLabelsByPosition, getDataValueByPosition, getDisplayModeByPosition, getLayerPainter, getRegionLabelsByXY, getRowHeightByPosition, getRowIndexByPosition, getRowPositionByIndex, getUnderlyingLayer, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, isColumnPositionResizable, isRowPositionResizable, loadState, saveState, setClientAreaProvider, setUnderlyingLayer, underlyingToLocalColumnPositions, underlyingToLocalRowPositions
addConfiguration, addLayerListener, clearConfiguration, fireLayerEvent, getBoundsByPosition, getClientAreaProvider, getConfigLabelAccumulator, getRegionName, handleLayerEvent, hasLayerListener, registerCommandHandler, registerCommandHandlers, registerEventHandler, registerPersistable, removeLayerListener, setConfigLabelAccumulator, setLayerPainter, setRegionName, toString, unregisterCommandHandler, unregisterPersistable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addLayerListener, fireLayerEvent, getBoundsByPosition, getClientAreaProvider, hasLayerListener, registerCommandHandler, registerPersistable, removeLayerListener, unregisterCommandHandler, unregisterPersistable
handleLayerEvent
public static final String PERSISTENCE_TOP_LEFT_POSITION
public static final String PERSISTENCE_BOTTOM_RIGHT_POSITION
public FreezeLayer(IUniqueIndexLayer underlyingLayer)
public boolean isFrozen()
public PositionCoordinate getTopLeftPosition()
public void setTopLeftPosition(int leftColumnPosition, int topRowPosition)
public PositionCoordinate getBottomRightPosition()
public void setBottomRightPosition(int rightColumnPosition, int bottomRowPosition)
public int getColumnCount()
getColumnCount
in interface ILayer
getColumnCount
in class AbstractIndexLayerTransform
public int getPreferredColumnCount()
getPreferredColumnCount
in interface ILayer
getPreferredColumnCount
in class AbstractIndexLayerTransform
public int localToUnderlyingColumnPosition(int localColumnPosition)
ILayer
localToUnderlyingColumnPosition
in interface ILayer
localToUnderlyingColumnPosition
in class AbstractIndexLayerTransform
localColumnPosition
- column position in local (the layer's own) coordinatespublic int underlyingToLocalColumnPosition(ILayer sourceUnderlyingLayer, int underlyingColumnPosition)
underlyingToLocalColumnPosition
in interface ILayer
underlyingToLocalColumnPosition
in class AbstractIndexLayerTransform
public int getWidth()
ILayer
getWidth
in interface ILayer
getWidth
in class AbstractIndexLayerTransform
public int getPreferredWidth()
getPreferredWidth
in interface ILayer
getPreferredWidth
in class AbstractIndexLayerTransform
public int getColumnPositionByX(int x)
ILayer
getColumnPositionByX
in interface ILayer
getColumnPositionByX
in class AbstractIndexLayerTransform
x
- a horizontal pixel location relative to the pixel boundary of this layerpublic int getStartXOfColumnPosition(int columnPosition)
ILayer
getStartXOfColumnPosition
in interface ILayer
getStartXOfColumnPosition
in class AbstractIndexLayerTransform
columnPosition
- the column position in this layerpublic int getRowCount()
getRowCount
in interface ILayer
getRowCount
in class AbstractIndexLayerTransform
public int getPreferredRowCount()
getPreferredRowCount
in interface ILayer
getPreferredRowCount
in class AbstractIndexLayerTransform
public int localToUnderlyingRowPosition(int localRowPosition)
localToUnderlyingRowPosition
in interface ILayer
localToUnderlyingRowPosition
in class AbstractIndexLayerTransform
public int underlyingToLocalRowPosition(ILayer sourceUnderlyingLayer, int underlyingRowPosition)
underlyingToLocalRowPosition
in interface ILayer
underlyingToLocalRowPosition
in class AbstractIndexLayerTransform
public int getHeight()
ILayer
getHeight
in interface ILayer
getHeight
in class AbstractIndexLayerTransform
public int getPreferredHeight()
getPreferredHeight
in interface ILayer
getPreferredHeight
in class AbstractIndexLayerTransform
public int getRowPositionByY(int y)
ILayer
getRowPositionByY
in interface ILayer
getRowPositionByY
in class AbstractIndexLayerTransform
y
- a vertical pixel location relative to the pixel boundary of this layerpublic int getStartYOfRowPosition(int rowPosition)
ILayer
getStartYOfRowPosition
in interface ILayer
getStartYOfRowPosition
in class AbstractIndexLayerTransform
rowPosition
- the row position in this layerCopyright © 2013. All Rights Reserved.