当前位置: 首页>>代码示例>>Java>>正文


Java IAxis.setPaintScale方法代码示例

本文整理汇总了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);
}
 
开发者ID:heig-iict-ida,项目名称:shimmer_move_analyzer,代码行数:23,代码来源:ChartsDrawer.java

示例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;
}
 
开发者ID:mediathekview,项目名称:MediathekView,代码行数:31,代码来源:MVBandwidthMonitorOSX.java

示例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);
}
 
开发者ID:heig-iict-ida,项目名称:ardrone_gesture,代码行数:31,代码来源:TimeseriesChartPanel.java


注:本文中的info.monitorenter.gui.chart.IAxis.setPaintScale方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。