throw new RuntimeException(ex);
}
}
private void setOptions(AbstractGraphPanelVisualizer gui) {
GraphPanelChart graph = gui.getGraphPanelChart();
if (aggregate >= 0) {
gui.switchModel(aggregate > 0);
}
if (granulation >= 0) {
gui.setGranulation(granulation);
}
if (relativeTimes >= 0) {
graph.setUseRelativeTime(relativeTimes > 0);
}
if (lineWeight >= 0) {
graph.getChartSettings().setLineWidth(lineWeight);
}
if (gradient >= 0) {
graph.getChartSettings().setDrawGradient(gradient > 0);
}
if (zeroing >= 0) {
graph.getChartSettings().setDrawFinalZeroingLines(zeroing > 0);
}
if (rowsLimit >= 0) {
graph.getChartSettings().setMaxPointPerRow(rowsLimit);
}
if (preventOutliers >= 0) {
graph.getChartSettings().setPreventXAxisOverScaling(preventOutliers > 0);
}
if (lowCounts >= 0) {
graph.getChartSettings().setHideNonRepValLimit(lowCounts);
}
if (forceY >= 0) {
graph.getChartSettings().setForcedMaxY(forceY);
}
if (autoScaleRows >= 0) {
graph.getChartSettings().setExpendRows(autoScaleRows > 0);
}
if (markers >= 0) {
graph.getChartSettings().setChartMarkers(markers > 0 ? ChartSettings.CHART_MARKERS_YES : ChartSettings.CHART_MARKERS_NO);
}
}