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


Java PolarItemRenderer.setPlot方法代码示例

本文整理汇总了Java中org.jfree.chart.renderer.PolarItemRenderer.setPlot方法的典型用法代码示例。如果您正苦于以下问题:Java PolarItemRenderer.setPlot方法的具体用法?Java PolarItemRenderer.setPlot怎么用?Java PolarItemRenderer.setPlot使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jfree.chart.renderer.PolarItemRenderer的用法示例。


在下文中一共展示了PolarItemRenderer.setPlot方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setRenderer

import org.jfree.chart.renderer.PolarItemRenderer; //导入方法依赖的package包/类
/**
 * Sets a renderer and, if requested, sends a {@link PlotChangeEvent} to
 * all registered listeners.
 *
 * @param index  the index.
 * @param renderer  the renderer.
 * @param notify  notify listeners?
 *
 * @see #getRenderer(int)
 *
 * @since 1.0.14
 */
public void setRenderer(int index, PolarItemRenderer renderer,
                        boolean notify) {
    PolarItemRenderer existing = getRenderer(index);
    if (existing != null) {
        existing.removeChangeListener(this);
    }
    this.renderers.set(index, renderer);
    if (renderer != null) {
        renderer.setPlot(this);
        renderer.addChangeListener(this);
    }
    if (notify) {
        fireChangeEvent();
    }
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:28,代码来源:PolarPlot.java

示例2: PolarPlot

import org.jfree.chart.renderer.PolarItemRenderer; //导入方法依赖的package包/类
/**
 * Creates a new plot.
 *
 * @param dataset  the dataset (<code>null</code> permitted).
 * @param radiusAxis  the radius axis (<code>null</code> permitted).
 * @param renderer  the renderer (<code>null</code> permitted).
 */
public PolarPlot(XYDataset dataset, ValueAxis radiusAxis,
            PolarItemRenderer renderer) {

    super();

    this.datasets = new ObjectList();
    this.datasets.set(0, dataset);
    if (dataset != null) {
        dataset.addChangeListener(this);
    }
    this.angleTickUnit = new NumberTickUnit(DEFAULT_ANGLE_TICK_UNIT_SIZE);

    this.axes = new ObjectList();
    this.datasetToAxesMap = new TreeMap();
    this.axes.set(0, radiusAxis);
    if (radiusAxis != null) {
        radiusAxis.setPlot(this);
        radiusAxis.addChangeListener(this);
    }

    // define the default locations for up to 8 axes...
    this.axisLocations = new ObjectList();
    this.axisLocations.set(0, PolarAxisLocation.EAST_ABOVE);
    this.axisLocations.set(1, PolarAxisLocation.NORTH_LEFT);
    this.axisLocations.set(2, PolarAxisLocation.WEST_BELOW);
    this.axisLocations.set(3, PolarAxisLocation.SOUTH_RIGHT);
    this.axisLocations.set(4, PolarAxisLocation.EAST_BELOW);
    this.axisLocations.set(5, PolarAxisLocation.NORTH_RIGHT);
    this.axisLocations.set(6, PolarAxisLocation.WEST_ABOVE);
    this.axisLocations.set(7, PolarAxisLocation.SOUTH_LEFT);

    this.renderers = new ObjectList();
    this.renderers.set(0, renderer);
    if (renderer != null) {
        renderer.setPlot(this);
        renderer.addChangeListener(this);
    }

    this.angleOffset = DEFAULT_ANGLE_OFFSET;
    this.counterClockwise = false;
    this.angleGridlinesVisible = true;
    this.angleGridlineStroke = DEFAULT_GRIDLINE_STROKE;
    this.angleGridlinePaint = DEFAULT_GRIDLINE_PAINT;

    this.radiusGridlinesVisible = true;
    this.radiusMinorGridlinesVisible = true;
    this.radiusGridlineStroke = DEFAULT_GRIDLINE_STROKE;
    this.radiusGridlinePaint = DEFAULT_GRIDLINE_PAINT;
    this.margin = DEFAULT_MARGIN;
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:58,代码来源:PolarPlot.java

示例3: PolarPlot

import org.jfree.chart.renderer.PolarItemRenderer; //导入方法依赖的package包/类
/**
 * Creates a new plot.
 *
 * @param dataset  the dataset ({@code null} permitted).
 * @param radiusAxis  the radius axis ({@code null} permitted).
 * @param renderer  the renderer ({@code null} permitted).
 */
public PolarPlot(XYDataset dataset, ValueAxis radiusAxis,
            PolarItemRenderer renderer) {

    super();

    this.datasets = new ObjectList();
    this.datasets.set(0, dataset);
    if (dataset != null) {
        dataset.addChangeListener(this);
    }
    this.angleTickUnit = new NumberTickUnit(DEFAULT_ANGLE_TICK_UNIT_SIZE);

    this.axes = new ObjectList();
    this.datasetToAxesMap = new TreeMap();
    this.axes.set(0, radiusAxis);
    if (radiusAxis != null) {
        radiusAxis.setPlot(this);
        radiusAxis.addChangeListener(this);
    }

    // define the default locations for up to 8 axes...
    this.axisLocations = new ObjectList();
    this.axisLocations.set(0, PolarAxisLocation.EAST_ABOVE);
    this.axisLocations.set(1, PolarAxisLocation.NORTH_LEFT);
    this.axisLocations.set(2, PolarAxisLocation.WEST_BELOW);
    this.axisLocations.set(3, PolarAxisLocation.SOUTH_RIGHT);
    this.axisLocations.set(4, PolarAxisLocation.EAST_BELOW);
    this.axisLocations.set(5, PolarAxisLocation.NORTH_RIGHT);
    this.axisLocations.set(6, PolarAxisLocation.WEST_ABOVE);
    this.axisLocations.set(7, PolarAxisLocation.SOUTH_LEFT);

    this.renderers = new ObjectList();
    this.renderers.set(0, renderer);
    if (renderer != null) {
        renderer.setPlot(this);
        renderer.addChangeListener(this);
    }

    this.angleOffset = DEFAULT_ANGLE_OFFSET;
    this.counterClockwise = false;
    this.angleGridlinesVisible = true;
    this.angleGridlineStroke = DEFAULT_GRIDLINE_STROKE;
    this.angleGridlinePaint = DEFAULT_GRIDLINE_PAINT;

    this.radiusGridlinesVisible = true;
    this.radiusMinorGridlinesVisible = true;
    this.radiusGridlineStroke = DEFAULT_GRIDLINE_STROKE;
    this.radiusGridlinePaint = DEFAULT_GRIDLINE_PAINT;
    this.margin = DEFAULT_MARGIN;
}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:58,代码来源:PolarPlot.java


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