예제 #1
0
  @Override
  public void initializeFigure() {
    fig = new HeatMapFigure();
    HeatMapFigure heatMapFig = (HeatMapFigure) fig;

    heatMapFig.setYAxisLabel("Time in past (subs./ site)");
    heatMapFig.setXAxisLabel("Site");
  }
예제 #2
0
  public void setData(
      double[][] matrix, double xMin, double xMax, double yMin, double yMax, double maxDensity) {

    HeatMapFigure heatMapFig = (HeatMapFigure) fig;

    heatMapFig.setXMax(xMax);
    heatMapFig.setXMin(xMin);
    heatMapFig.setYMax(yMax);
    heatMapFig.setYMin(yMin);
    heatMapFig.setData(matrix);
    heatMapFig.setHeatMax(maxDensity);
    heatMapFig.setHeatMin(0);
    repaint();
  }