Package de.hsh.graja.util.comment.grid
Class GridCellSingle
- java.lang.Object
-
- de.hsh.graja.util.comment.grid.GridCell
-
- de.hsh.graja.util.comment.grid.GridCellSingle
-
- All Implemented Interfaces:
Serializable
,Comparable<GridCell>
public class GridCellSingle extends GridCell
A single cell of a grid spans a single row and column.- 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 GridCellSingle(GridCellPos pos, 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 void
forEach(GridCell.PosProcessor p)
Execute a method for each positionGridCellDim
getDim()
String
toString(String prefix)
-
Methods inherited from class de.hsh.graja.util.comment.grid.GridCell
colsSet, compareTo, equals, getAlign, getBrightness, getContent, getId, getPadding, getPos, getShowMode, getShrinkWidthMode, getType, hasColsInExcept, hasColsPassing, hashCode, hasRowsInExcept, hasRowsPassing, rowsSet, setBrightness, setId, setShrinkWidthMode
-
-
-
-
Constructor Detail
-
GridCellSingle
public GridCellSingle(GridCellPos pos, Content content, GridCellType type, GridCellAlignment align, GridCellShowMode showMode, Double brightness, GridCellWidth width, GridCellPadding padding, String id)
Create- Parameters:
pos
-content
-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)
-
-