org.jplot2d.layout
Class GridCellGeom
- java.lang.Object
-
- org.jplot2d.layout.GridCellGeom
-
public class GridCellGeom extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description GridCellGeom(SparseDoubleArray colWidth, SparseDoubleArray rowHeight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetColNum()doublegetHeight(int row)intgetRowNum()doublegetSumHeight()doublegetSumHeightBelow(int row)Returns sum of height of all grid cells on left of the given columndoublegetSumWidth()doublegetSumWidthLeft(int col)Returns sum of width of all grid cells on left of the given columndoublegetWidth(int col)
-
-
-
Constructor Detail
-
GridCellGeom
public GridCellGeom(SparseDoubleArray colWidth, SparseDoubleArray rowHeight)
-
-
Method Detail
-
getWidth
public double getWidth(int col)
-
getHeight
public double getHeight(int row)
-
getSumWidthLeft
public double getSumWidthLeft(int col)
Returns sum of width of all grid cells on left of the given column- Parameters:
col-- Returns:
- the sum width
-
getSumHeightBelow
public double getSumHeightBelow(int row)
Returns sum of height of all grid cells on left of the given column- Parameters:
col- the column number form bottom to top- Returns:
- the sum height
-
getSumWidth
public double getSumWidth()
-
getSumHeight
public double getSumHeight()
-
getRowNum
public int getRowNum()
-
getColNum
public int getColNum()
-
-
DMelt 3.0 © DataMelt by jWork.ORG