net.sourceforge.plantuml.salt.Cell Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.salt;
public class Cell {
// ::remove folder when __HAXE__
private int minRow;
private int maxRow;
private int minCol;
private int maxCol;
public Cell(int row, int col) {
minRow = row;
maxRow = row;
minCol = col;
maxCol = col;
}
public void mergeLeft() {
maxCol++;
}
public int getMinRow() {
return minRow;
}
public int getMaxRow() {
return maxRow;
}
public int getMinCol() {
return minCol;
}
public int getMaxCol() {
return maxCol;
}
public int getNbRows() {
return maxRow - minRow + 1;
}
public int getNbCols() {
return maxCol - minCol + 1;
}
@Override
public String toString() {
return "(" + minRow + "," + minCol + ")-(" + maxRow + "," + maxCol + ")";
}
}