Package de.hsh.graja.util.comment.grid
Class GridCellMulti
- java.lang.Object
-
- de.hsh.graja.util.comment.grid.GridCell
-
- de.hsh.graja.util.comment.grid.GridCellMulti
-
- All Implemented Interfaces:
Serializable
,Comparable<GridCell>
public class GridCellMulti extends GridCell
A multi cell of a grid may span several rows or columns.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hsh.graja.util.comment.grid.GridCell
GridCell.PosProcessor
-
-
Constructor Summary
Constructors Constructor Description GridCellMulti(GridCellPos pos, GridCellDim dim, Content content, GridCellType type, GridCellAlignment align, GridCellShowMode showMode, Double brightness, GridCellWidth width, GridCellPadding padding, String id)
Create
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
implements the contract ofObject.equals(Object)
.void
forEach(GridCell.PosProcessor p)
Execute a method for each positionGridCellDim
getDim()
int
hashCode()
implements the contract ofObject.hashCode()
.String
toString(String prefix)
-
Methods inherited from class de.hsh.graja.util.comment.grid.GridCell
colsSet, compareTo, getAlign, getBrightness, getContent, getId, getPadding, getPos, getShowMode, getShrinkWidthMode, getType, hasColsInExcept, hasColsPassing, hasRowsInExcept, hasRowsPassing, rowsSet, setBrightness, setId, setShrinkWidthMode
-
-
-
-
Constructor Detail
-
GridCellMulti
public GridCellMulti(GridCellPos pos, GridCellDim dim, Content content, GridCellType type, GridCellAlignment align, GridCellShowMode showMode, Double brightness, GridCellWidth width, GridCellPadding padding, String id)
Create- Parameters:
pos
-dim
- width and heightcontent
-type
-align
-showMode
-brightness
-width
-padding
-id
-
-
-
Method Detail
-
toString
public String toString(String prefix)
- Overrides:
toString
in classGridCell
- See Also:
Content.toString(java.lang.String)
-
getDim
public GridCellDim getDim()
-
forEach
public void forEach(GridCell.PosProcessor p)
Description copied from class:GridCell
Execute a method for each position- Specified by:
forEach
in classGridCell
- Parameters:
p
- the processor- See Also:
GridCell.forEach(PosProcessor)
-
hashCode
public int hashCode()
implements the contract ofObject.hashCode()
.
-
equals
public boolean equals(Object obj)
implements the contract ofObject.equals(Object)
.
-
-