public class MultiRowResizeCommand extends AbstractMultiRowCommand
Modifier and Type | Field and Description |
---|---|
protected Map<RowPositionCoordinate,Integer> |
rowPositionToHeight |
Modifier | Constructor and Description |
---|---|
|
MultiRowResizeCommand(ILayer layer,
int[] rowPositions,
int commonRowHeight)
All rows are being resized to the same height e.g.
|
|
MultiRowResizeCommand(ILayer layer,
int[] rowPositions,
int[] rowHeights)
Each row is being resized to a different size e.g.
|
protected |
MultiRowResizeCommand(MultiRowResizeCommand command) |
Modifier and Type | Method and Description |
---|---|
MultiRowResizeCommand |
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 row/column coordinates the command might be carrying from the source layer
to the destination (target) layer.
|
int |
getCommonRowHeight() |
int |
getRowHeight(int rowPosition) |
getRowPositions, setRowPositions
protected Map<RowPositionCoordinate,Integer> rowPositionToHeight
public MultiRowResizeCommand(ILayer layer, int[] rowPositions, int commonRowHeight)
public MultiRowResizeCommand(ILayer layer, int[] rowPositions, int[] rowHeights)
protected MultiRowResizeCommand(MultiRowResizeCommand command)
public int getCommonRowHeight()
public int getRowHeight(int rowPosition)
public boolean convertToTargetLayer(ILayer targetLayer)
ILayerCommand
convertToTargetLayer
in interface ILayerCommand
convertToTargetLayer
in class AbstractMultiRowCommand
targetLayer
- the target layerpublic MultiRowResizeCommand cloneCommand()
ILayerCommand
Object.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.