Class HTMLHeatmapChart
java.lang.Object
com.amalgamasimulation.desktop.html.HTMLTag
com.amalgamasimulation.desktop.html.charts.HTMLHeatmapChart
- All Implemented Interfaces:
HTMLConvertable
The HTMLHeatmapChart class represents an HTML-based heatmap chart.
- Author:
- Alexey Glazyrin
-
Constructor Summary
ConstructorsConstructorDescriptionHTMLHeatmapChart(HeatmapVisualSet visualSet) Constructs a new HTMLHeatmapChart instance with specified visual set. -
Method Summary
Modifier and TypeMethodDescriptionvoidcellHeightInPx(double height) Sets the height of each heatmap cell in pixels.voidcellWidthInPx(double width) Sets the width of each heatmap cell in pixels.Converts the object to an HTML string.xAxisTitle(String title) Sets the title for the X-axis.yAxisTitle(String title) Sets the title for the Y-axis.Methods inherited from class com.amalgamasimulation.desktop.html.HTMLTag
append, attr, backgroundColor, colorToRGBA, copy, fillCopy, font, fontColor, fontFamily, fontSizeInPx, fontStyle, fontWeight, getAttributes, getChildren, lineHeight, marginInPx, maxHeightInPx, maxWidthInPx, paddingInPx, relativeHeight, relativeWidth, removeChildren, style, tag, tag, textAlignment, toCSSMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.amalgamasimulation.desktop.html.HTMLConvertable
copy, toHTML
-
Constructor Details
-
HTMLHeatmapChart
Constructs a new HTMLHeatmapChart instance with specified visual set.- Parameters:
visualSet- heatmap chart visual set
-
-
Method Details
-
xAxisTitle
Sets the title for the X-axis.- Parameters:
title- axis label text- Returns:
- this HTMLChart instance for method chaining
-
yAxisTitle
Sets the title for the Y-axis.- Parameters:
title- axis label text- Returns:
- this HTMLChart instance for method chaining
-
cellHeightInPx
public void cellHeightInPx(double height) Sets the height of each heatmap cell in pixels.- Parameters:
height- the cell height in pixels
-
cellWidthInPx
public void cellWidthInPx(double width) Sets the width of each heatmap cell in pixels.- Parameters:
width- the cell width in pixels
-
toHTML
Description copied from interface:HTMLConvertableConverts the object to an HTML string.- Specified by:
toHTMLin interfaceHTMLConvertable- Overrides:
toHTMLin classHTMLTag- Parameters:
outStrings- set of unique strings of text content- Returns:
-