Interface HTML
public interface HTML
The HTML interface provides utility methods for creating HTML components such
as tables, charts, text blocks, headers, links, and images.
- Author:
- Alexey Glazyrin
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic HTMLBarChartbarChart(IBarChartVisualSet... visualSets) Creates an HTML bar chart from the specified visual sets.static <T> HTMLChartboxAndWhiskerChart(BoxAndWhiskerVisualSet<T> visualSet) Creates an HTML box-and-whisker chart showing statistical distributions.static HTMLFragmentfragment(List<HTMLConvertable> children) Creates an HTML fragment containing multiple HTML components.static HTMLHeaderCreates an HTML header with the specified text and level.static HTMLHeatmapChartheatmapChart(HeatmapVisualSet visualSet) Creates an HTML heatmap chart.static <T extends HistogramDataAggregator<C,?>.HistogramDataGroup, C>
HTMLHistogramCharthistogramChart(HistogramVisualSet<T, C> visualSet) Creates an HTML histogram chart with optional CDF visualization.static HTMLLineChartlineChart(ILineChartVisualSet... visualSets) Creates an HTML line chart from the specified visual sets.static HTMLLinkCreates an HTML link with the specified text and URL.static HTMLLinkActionlinkAction(String text, Runnable action) Creates an HTML link that triggers an action when clicked.static HTMLLinkActionlinkOpenInBrowser(String text, String link) Creates an HTML link that opens the specified URL in the browser when clicked.static HTMLPagepage()Creates a new HTML page.static <T> HTMLTable<T> Creates an HTML table from a list of data values.static HTMLTextBlockCreates an HTML text block from the given objects.static HTMLTimeLineCharttimeLineChart(Timeable timeable, ILineChartVisualSet... visualSets) Creates an HTML timeline chart with temporal X-axis.static HTMLPageCreates a new HTML page for tooltips.static <T> HTMLBarChartwaterfallChart(WaterfallVisualSet<T> visualSet) Creates an HTML waterfall chart showing cumulative value progression.
-
Method Details
-
page
Creates a new HTML page.- Returns:
- a new
HTMLPageinstance
-
tooltipPage
Creates a new HTML page for tooltips.- Returns:
- a new
HTMLPageinstance
-
table
Creates an HTML table from a list of data values.- Type Parameters:
T- the type of data elements in the list- Parameters:
dataValues- the list of data values to convert to HTML- Returns:
- a new
HTMLTableinstance
-
lineChart
Creates an HTML line chart from the specified visual sets. SupportsLineVisualSet,PointsVisualSet,PolylineVisualSetvisual sets for line visualization.
- Parameters:
visualSets- the visual sets defining line chart data and appearance- Returns:
- a new
HTMLLineChartinstance
-
timeLineChart
Creates an HTML timeline chart with temporal X-axis. SupportsLineVisualSet,PointsVisualSet,PolylineVisualSetvisual sets for time-based visualization.
- Parameters:
timeable- the time reference for the chartvisualSets- the visual sets defining timeline data- Returns:
- a new
HTMLTimeLineChartinstance
-
heatmapChart
Creates an HTML heatmap chart.- Parameters:
visualSet- the visual set defining heatmap data- Returns:
- a new
HTMLHeatmapChartinstance
-
barChart
Creates an HTML bar chart from the specified visual sets. SupportsBarVisualSetandHistogramVisualSetvisual sets for bar visualization.
- Parameters:
visualSets- the visual sets defining bar chart data and appearance- Returns:
- a new
HTMLBarChartinstance
-
waterfallChart
Creates an HTML waterfall chart showing cumulative value progression.
- Type Parameters:
T- the type of data elements in the visual set- Parameters:
visualSet- the waterfall visual set containing data segments- Returns:
- a new
HTMLBarChartconfigured for waterfall visualization
-
boxAndWhiskerChart
Creates an HTML box-and-whisker chart showing statistical distributions.
- Type Parameters:
T- the type of data elements in the visual set- Parameters:
visualSet- the box-and-whisker visual set containing data points- Returns:
- a new
HTMLChartinstance configured for box plots
-
histogramChart
static <T extends HistogramDataAggregator<C,?>.HistogramDataGroup, HTMLHistogramChart histogramChartC> (HistogramVisualSet<T, C> visualSet) Creates an HTML histogram chart with optional CDF visualization.
- Type Parameters:
T- the type of data elementsC- the type of category- Parameters:
visualSet- the histogram visual set containing distribution data- Returns:
- a new
HTMLHistogramChartinstance
-
textBlock
Creates an HTML text block from the given objects.- Parameters:
objects- the objects to include in the text block- Returns:
- a new
HTMLTextBlockinstance
-
header
Creates an HTML header with the specified text and level.- Parameters:
text- the text of the headerlevel- the level of the header (1 to 7 inclusive, 1 being the highest header and 7 being the lowest header level). Correspond to H1,...,H7 HTML tags.- Returns:
- a new
HTMLHeaderinstance
-
link
Creates an HTML link with the specified text and URL.- Parameters:
text- the text of the linkurl- the URL to link to- Returns:
- a new
HTMLLinkinstance
-
linkAction
Creates an HTML link that triggers an action when clicked. The action will only be handled correctly when shown in theBrowserdesktop UI component of the same application.- Parameters:
text- the text of the linkaction- the action to perform when the link is clicked- Returns:
- a new
HTMLLinkActioninstance
-
linkOpenInBrowser
Creates an HTML link that opens the specified URL in the browser when clicked. This is a convenience method for creating links that navigate to external URLs.- Parameters:
text- the display text of the linklink- the URL to open in the browser when the link is clicked- Returns:
- a new
HTMLLinkActioninstance configured to open the URL
-
fragment
Creates an HTML fragment containing multiple HTML components.- Parameters:
children- list of HTML components to include in the fragment- Returns:
- a new
HTMLFragmentcontaining the specified children
-