public class MultiColumnResizeCommand extends AbstractMultiColumnCommand
| Modifier and Type | Field and Description |
|---|---|
protected Map<ColumnPositionCoordinate,Integer> |
colPositionToWidth |
columnPositionCoordinates| Modifier | Constructor and Description |
|---|---|
|
MultiColumnResizeCommand(ILayer layer,
int[] columnPositions,
int commonColumnWidth)
All columns are being resized to the same size e.g.
|
|
MultiColumnResizeCommand(ILayer layer,
int[] columnPositions,
int[] columnWidths)
Each column is being resized to a different size e.g.
|
protected |
MultiColumnResizeCommand(MultiColumnResizeCommand command) |
| Modifier and Type | Method and Description |
|---|---|
MultiColumnResizeCommand |
cloneCommand()
Same semantics as
Object.clone()
Used to make a copies of the command if has to passed to different layer stacks. |
boolean |
convertToTargetLayer(ILayer targetLayer)
Convert the column positions to the target layer.
|
int |
getColumnWidth(int columnPosition) |
int |
getCommonColumnWidth() |
getColumnPositions, setColumnPositionsprotected Map<ColumnPositionCoordinate,Integer> colPositionToWidth
public MultiColumnResizeCommand(ILayer layer, int[] columnPositions, int commonColumnWidth)
public MultiColumnResizeCommand(ILayer layer, int[] columnPositions, int[] columnWidths)
protected MultiColumnResizeCommand(MultiColumnResizeCommand command)
public int getCommonColumnWidth()
public int getColumnWidth(int columnPosition)
public boolean convertToTargetLayer(ILayer targetLayer)
convertToTargetLayer in interface ILayerCommandconvertToTargetLayer in class AbstractMultiColumnCommandtargetLayer - the target layerpublic MultiColumnResizeCommand cloneCommand()
ILayerCommandObject.clone()
Used to make a copies of the command if has to passed to different layer stacks.GridLayer.doCommand(ILayerCommand)Copyright © 2013. All Rights Reserved.