Package net.sourceforge.plantuml.nwdiag
Class GridTextBlockSimple
- java.lang.Object
-
- net.sourceforge.plantuml.nwdiag.GridTextBlockSimple
-
- Direct Known Subclasses:
GridTextBlockDecorated
public class GridTextBlockSimple extends java.lang.Object implements TextBlock
-
-
Field Summary
Fields Modifier and Type Field Description protected NwArray
data
protected ISkinParam
skinparam
-
Constructor Summary
Constructors Constructor Description GridTextBlockSimple(int lines, int cols, ISkinParam skinparam)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int i, int j, LinkedElement value)
java.awt.geom.Dimension2D
calculateDimension(StringBounder stringBounder)
protected double
colWidth(StringBounder stringBounder, int j)
protected void
drawGrid(UGraphic ug)
void
drawU(UGraphic ug)
Footprint
getFootprint(NwGroup group)
java.awt.geom.Rectangle2D
getInnerPosition(java.lang.String member, StringBounder stringBounder, InnerStrategy strategy)
MinMax
getMinMax(StringBounder stringBounder)
double
lineHeight(StringBounder stringBounder, int i)
-
-
-
Field Detail
-
data
protected final NwArray data
-
skinparam
protected final ISkinParam skinparam
-
-
Constructor Detail
-
GridTextBlockSimple
public GridTextBlockSimple(int lines, int cols, ISkinParam skinparam)
-
-
Method Detail
-
drawGrid
protected void drawGrid(UGraphic ug)
-
colWidth
protected double colWidth(StringBounder stringBounder, int j)
-
lineHeight
public double lineHeight(StringBounder stringBounder, int i)
-
calculateDimension
public java.awt.geom.Dimension2D calculateDimension(StringBounder stringBounder)
- Specified by:
calculateDimension
in interfaceTextBlock
-
getInnerPosition
public java.awt.geom.Rectangle2D getInnerPosition(java.lang.String member, StringBounder stringBounder, InnerStrategy strategy)
- Specified by:
getInnerPosition
in interfaceTextBlock
-
getMinMax
public MinMax getMinMax(StringBounder stringBounder)
-
add
public void add(int i, int j, LinkedElement value)
-
-