Class Legend_HeatMap<ST extends HeatMapStyler,S extends HeatMapSeries>
- java.lang.Object
-
- org.knowm.xchart.internal.chartpart.Legend_<ST,S>
-
- org.knowm.xchart.internal.chartpart.Legend_HeatMap<ST,S>
-
- All Implemented Interfaces:
ChartPart
public class Legend_HeatMap<ST extends HeatMapStyler,S extends HeatMapSeries> extends Legend_<ST,S>
-
-
Field Summary
Fields Modifier and Type Field Description private java.text.Formatformatprivate static intLEGEND_MARGINprivate static java.lang.StringSPLIT-
Fields inherited from class org.knowm.xchart.internal.chartpart.Legend_
BOX_OUTLINE_WIDTH, BOX_SIZE, chart, xOffset, yOffset
-
Fields inherited from interface org.knowm.xchart.internal.chartpart.ChartPart
SOLID_STROKE
-
-
Constructor Summary
Constructors Constructor Description Legend_HeatMap(Chart<ST,S> chart)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidapplyFormatting()voiddoPaint(java.awt.Graphics2D g)java.awt.geom.Rectangle2DgetBounds()doublegetSeriesLegendRenderGraphicHeight(S series)voidpaint(java.awt.Graphics2D g)private voidpaintGradient(java.awt.Graphics2D g, double startx, double starty, java.awt.Color[] rangeColors, HeatMapSeries heatMapSeries)private voidpaintPiecewise(java.awt.Graphics2D g, double startx, double starty, java.awt.Color[] rangeColors, HeatMapSeries heatMapSeries)-
Methods inherited from class org.knowm.xchart.internal.chartpart.Legend_
getLegendEntryHeight, getLegendEntryWidth, getSeriesTextBounds, paintSeriesText
-
-
-
-
Field Detail
-
LEGEND_MARGIN
private static final int LEGEND_MARGIN
- See Also:
- Constant Field Values
-
SPLIT
private static final java.lang.String SPLIT
- See Also:
- Constant Field Values
-
format
private java.text.Format format
-
-
Method Detail
-
paint
public void paint(java.awt.Graphics2D g)
- Specified by:
paintin interfaceChartPart- Overrides:
paintin classLegend_<ST extends HeatMapStyler,S extends HeatMapSeries>
-
doPaint
public void doPaint(java.awt.Graphics2D g)
- Specified by:
doPaintin classLegend_<ST extends HeatMapStyler,S extends HeatMapSeries>
-
getSeriesLegendRenderGraphicHeight
public double getSeriesLegendRenderGraphicHeight(S series)
- Specified by:
getSeriesLegendRenderGraphicHeightin classLegend_<ST extends HeatMapStyler,S extends HeatMapSeries>
-
getBounds
public java.awt.geom.Rectangle2D getBounds()
- Specified by:
getBoundsin interfaceChartPart- Overrides:
getBoundsin classLegend_<ST extends HeatMapStyler,S extends HeatMapSeries>
-
paintPiecewise
private void paintPiecewise(java.awt.Graphics2D g, double startx, double starty, java.awt.Color[] rangeColors, HeatMapSeries heatMapSeries)
-
paintGradient
private void paintGradient(java.awt.Graphics2D g, double startx, double starty, java.awt.Color[] rangeColors, HeatMapSeries heatMapSeries)
-
applyFormatting
private void applyFormatting()
-
-