本文整理汇总了Java中info.monitorenter.gui.chart.IAxis.setPaintScale方法的典型用法代码示例。如果您正苦于以下问题:Java IAxis.setPaintScale方法的具体用法?Java IAxis.setPaintScale怎么用?Java IAxis.setPaintScale使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类info.monitorenter.gui.chart.IAxis
的用法示例。
在下文中一共展示了IAxis.setPaintScale方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createChart
import info.monitorenter.gui.chart.IAxis; //导入方法依赖的package包/类
private static void createChart(Chart2D chart, ITrace2D[] traces,
String name, String yAxisLabel) {
// Cleanup - necessary when we switch between calibrated and uncalibrated
chart.removeAllTraces();
final String[] axesNames = new String[]{"x", "y", "z"};
for (int i = 0; i < 3; ++i) {
chart.addTrace(traces[i]);
traces[i].setName(name + "_" + axesNames[i]);
traces[i].setColor(colors[i]);
traces[i].setStroke(strokes[i]);
}
IAxis yAxis = chart.getAxisY();
//yAxis.setAxisTitle(new AxisTitle(yAxisLabel));
yAxis.setPaintScale(true);
yAxis.getAxisTitle().setTitle(null);
yAxis.setRangePolicy(new RangePolicyMaxSeen());
IAxis xAxis = chart.getAxisX();
xAxis.setPaintScale(false);
xAxis.getAxisTitle().setTitle(null);
}
示例2: createChart
import info.monitorenter.gui.chart.IAxis; //导入方法依赖的package包/类
private Chart2D createChart() {
Chart2D chart = new Chart2D();
chart.setPaintLabels(true);
chart.setUseAntialiasing(true);
chart.setToolTipType(Chart2D.ToolTipType.VALUE_SNAP_TO_TRACEPOINTS);
x_achse = chart.getAxisX();
x_achse.getAxisTitle().setTitle("Minuten");
x_achse.setPaintScale(true);
x_achse.setVisible(true);
x_achse.setPaintGrid(false);
x_achse.setMajorTickSpacing(10);
x_achse.setMinorTickSpacing(1);
IAxis<?> y_achse = chart.getAxisY();
y_achse.getAxisTitle().setTitle("");
y_achse.setPaintScale(true);
y_achse.setVisible(true);
y_achse.setPaintGrid(true);
y_achse.setMajorTickSpacing(5);
y_achse.setMinorTickSpacing(1);
y_achse.setFormatter(new LabelFormatterAutoUnits());
y_achse.setRangePolicy(new RangePolicyForcedPoint());
m_trace.setName("");
m_trace.setColor(Color.RED);
chart.addTrace(m_trace);
return chart;
}
示例3: TimeseriesChartPanel
import info.monitorenter.gui.chart.IAxis; //导入方法依赖的package包/类
public TimeseriesChartPanel(String title,
String xAxisLabel, String yAxisLabel,
ImmutableSortedMap<Integer, String> seriesIDToName,
int numVisible,
float min, float max) {
super();
initComponents();
this.title = title;
for (Map.Entry<Integer, String> e : seriesIDToName.entrySet()) {
ITrace2D trace = new Trace2DLtd(numVisible);
trace.setName(e.getValue());
trace.setColor(ChartsDrawer.colors[e.getKey()]);
trace.setStroke(ChartsDrawer.strokes[e.getKey()]);
traces.put(e.getKey(), trace);
this.addTrace(trace);
}
IAxis yAxis = this.getAxisY();
//yAxis.setAxisTitle(new AxisTitle(yAxisLabel));
yAxis.setRangePolicy(new ChartsDrawer.RangePolicyMaxSeen(min, max));
yAxis.getAxisTitle().setTitle(null);
//yAxis.setVisible(false);
IAxis xAxis = this.getAxisX();
//xAxis.setAxisTitle(new AxisTitle(xAxisLabel));
//xAxis.setVisible(false);
xAxis.getAxisTitle().setTitle(null);
xAxis.setPaintScale(false);
}