Package com.treemap.swing.voronoi.debug
Class Debugger
java.lang.Object
com.treemap.swing.voronoi.debug.Debugger
Just a singleton style debugger object for everything.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Debugger.DataEntry dataEntry, boolean printInfos) void
addError
(double errorAbsolute) void
static void
draw
(VoronoiOutputRaster voronoiOutput, String str1, Color color1, String str2, Color color2, String str3, Color color3, File file) void
exportTimeDataToCsv
(String path) double
double
getRms()
int
void
static Debugger
instance()
load
(String dirPath, String name, VoronoiCell[] cells) void
print()
void
void
save
(VoronoiOutputRaster raster, String dirPath, String name, VoronoiCell[] cells) void
setActualPixelCells
(int actualPixelCells) void
setEstimatedPixelXells
(int estimatedPixelXells) void
setInterrestingChild
(MutableTreeMapNode interrestingChild) void
setMaxErrorCell
(VoronoiCell maxErrorCell) void
setTotalAlgorithmDuration
(double totalAlgorithmDuration) void
setZeroAreaCellsCount
(int zeroAreaCellsCount) static void
showCellOutlines
(List<Vertex> vertexes, VoronoiCell[] cells, MutableTreeMapNode parent, boolean drawCellNames, String fillName) toString()
-
Method Details
-
instance
-
setEstimatedPixelXells
public void setEstimatedPixelXells(int estimatedPixelXells) -
setActualPixelCells
public void setActualPixelCells(int actualPixelCells) -
print
public void print() -
toString
-
add
-
setTotalAlgorithmDuration
public void setTotalAlgorithmDuration(double totalAlgorithmDuration) -
exportTimeDataToCsv
-
setZeroAreaCellsCount
public void setZeroAreaCellsCount(int zeroAreaCellsCount) -
incZeroAreaCellsCount
public void incZeroAreaCellsCount() -
getZeroAreaCellsCount
public int getZeroAreaCellsCount() -
addError
public void addError(double errorAbsolute) -
printErrors
public void printErrors() -
getRms
public double getRms() -
clearErrorValues
public void clearErrorValues() -
getMaxError
public double getMaxError() -
setMaxErrorCell
-
getMaxErrorCell
-
showCellOutlines
public static void showCellOutlines(List<Vertex> vertexes, VoronoiCell[] cells, MutableTreeMapNode parent, boolean drawCellNames, String fillName) -
setInterrestingChild
-
getInterrestingChild
-
draw
-
save
-
load
-