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


Java StandardXYSeriesLabelGenerator类代码示例

本文整理汇总了Java中org.jfree.chart.labels.StandardXYSeriesLabelGenerator的典型用法代码示例。如果您正苦于以下问题:Java StandardXYSeriesLabelGenerator类的具体用法?Java StandardXYSeriesLabelGenerator怎么用?Java StandardXYSeriesLabelGenerator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: testCloning_LegendItemLabelGenerator

import org.jfree.chart.labels.StandardXYSeriesLabelGenerator; //导入依赖的package包/类
/**
 * Check that the legendItemLabelGenerator is cloned.
 */
@Test
public void testCloning_LegendItemLabelGenerator() throws CloneNotSupportedException {
    StandardXYSeriesLabelGenerator generator
            = new StandardXYSeriesLabelGenerator("Series {0}");
    XYBarRenderer r1 = new XYBarRenderer();
    r1.setLegendItemLabelGenerator(generator);
    XYBarRenderer r2 = (XYBarRenderer) r1.clone();
    assertTrue(r1 != r2);
    assertTrue(r1.getClass() == r2.getClass());
    assertTrue(r1.equals(r2));

    // check that the generator has been cloned
    assertTrue(r1.getLegendItemLabelGenerator()
            != r2.getLegendItemLabelGenerator());
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:19,代码来源:AbstractXYItemRendererTest.java

示例2: testCloning_LegendItemToolTipGenerator

import org.jfree.chart.labels.StandardXYSeriesLabelGenerator; //导入依赖的package包/类
/**
 * Check that the legendItemToolTipGenerator is cloned.
 */
@Test
public void testCloning_LegendItemToolTipGenerator() 
        throws CloneNotSupportedException {
    StandardXYSeriesLabelGenerator generator
            = new StandardXYSeriesLabelGenerator("Series {0}");
    XYBarRenderer r1 = new XYBarRenderer();
    r1.setLegendItemToolTipGenerator(generator);
    XYBarRenderer r2 = (XYBarRenderer) r1.clone();

    assertTrue(r1 != r2);
    assertTrue(r1.getClass() == r2.getClass());
    assertTrue(r1.equals(r2));

    // check that the generator has been cloned
    assertTrue(r1.getLegendItemToolTipGenerator()
            != r2.getLegendItemToolTipGenerator());
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:21,代码来源:AbstractXYItemRendererTest.java

示例3: testCloning_LegendItemURLGenerator

import org.jfree.chart.labels.StandardXYSeriesLabelGenerator; //导入依赖的package包/类
/**
 * Check that the legendItemURLGenerator is cloned.
 */
@Test
public void testCloning_LegendItemURLGenerator() 
        throws CloneNotSupportedException {
    StandardXYSeriesLabelGenerator generator
            = new StandardXYSeriesLabelGenerator("Series {0}");
    XYBarRenderer r1 = new XYBarRenderer();
    r1.setLegendItemURLGenerator(generator);
    XYBarRenderer r2 = (XYBarRenderer) r1.clone();
    assertTrue(r1 != r2);
    assertTrue(r1.getClass() == r2.getClass());
    assertTrue(r1.equals(r2));

    // check that the generator has been cloned
    assertTrue(r1.getLegendItemURLGenerator()
            != r2.getLegendItemURLGenerator());
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:20,代码来源:AbstractXYItemRendererTest.java

示例4: testGenerateLabel

import org.jfree.chart.labels.StandardXYSeriesLabelGenerator; //导入依赖的package包/类
/**
 * Some checks for the generalLabel() method.
 */
public void testGenerateLabel() {
    StandardXYSeriesLabelGenerator g 
        = new StandardXYSeriesLabelGenerator("Series {0}");
    XYSeriesCollection dataset = new XYSeriesCollection();
    dataset.addSeries(new XYSeries("1"));
    dataset.addSeries(new XYSeries("2"));
    assertEquals("Series 1", g.generateLabel(dataset, 0));
    assertEquals("Series 2", g.generateLabel(dataset, 1));
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:13,代码来源:StandardXYSeriesLabelGeneratorTests.java

示例5: AbstractXYItemRenderer

import org.jfree.chart.labels.StandardXYSeriesLabelGenerator; //导入依赖的package包/类
/**
 * Creates a renderer where the tooltip generator and the URL generator are
 * both <code>null</code>.
 */
protected AbstractXYItemRenderer() {
    this.itemLabelGenerator = null;
    this.itemLabelGeneratorList = new ObjectList();
    this.toolTipGenerator = null;
    this.toolTipGeneratorList = new ObjectList();
    this.urlGenerator = null;
    this.backgroundAnnotations = new java.util.ArrayList();
    this.foregroundAnnotations = new java.util.ArrayList();
    this.defaultEntityRadius = 3;
    this.legendItemLabelGenerator = new StandardXYSeriesLabelGenerator(
            "{0}");
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:17,代码来源:AbstractXYItemRenderer.java

示例6: AbstractXYItemRenderer

import org.jfree.chart.labels.StandardXYSeriesLabelGenerator; //导入依赖的package包/类
/**
 * Creates a renderer where the tooltip generator and the URL generator are
 * both <code>null</code>.
 */
protected AbstractXYItemRenderer() {
    super();
    this.itemLabelGenerator = null;
    this.itemLabelGeneratorMap 
            = new HashMap<Integer, XYItemLabelGenerator>();
    this.toolTipGenerator = null;
    this.toolTipGeneratorMap = new HashMap<Integer, XYToolTipGenerator>();
    this.urlGenerator = null;
    this.backgroundAnnotations = new java.util.ArrayList();
    this.foregroundAnnotations = new java.util.ArrayList();
    this.legendItemLabelGenerator = new StandardXYSeriesLabelGenerator(
            "{0}");
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:18,代码来源:AbstractXYItemRenderer.java

示例7: AbstractXYItemRenderer

import org.jfree.chart.labels.StandardXYSeriesLabelGenerator; //导入依赖的package包/类
/**
 * Creates a renderer where the tooltip generator and the URL generator are
 * both {@code null}.
 */
protected AbstractXYItemRenderer() {
    super();
    this.itemLabelGeneratorMap 
            = new HashMap<Integer, XYItemLabelGenerator>();
    this.toolTipGeneratorMap = new HashMap<Integer, XYToolTipGenerator>();
    this.urlGenerator = null;
    this.backgroundAnnotations = new java.util.ArrayList();
    this.foregroundAnnotations = new java.util.ArrayList();
    this.legendItemLabelGenerator = new StandardXYSeriesLabelGenerator(
            "{0}");
}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:16,代码来源:AbstractXYItemRenderer.java

示例8: AbstractXYItemRenderer

import org.jfree.chart.labels.StandardXYSeriesLabelGenerator; //导入依赖的package包/类
/**
 * Creates a renderer where the tooltip generator and the URL generator are
 * both <code>null</code>.
 */
protected AbstractXYItemRenderer() {
    super();
    this.itemLabelGenerator = null;
    this.itemLabelGeneratorList = new ObjectList();
    this.toolTipGenerator = null;
    this.toolTipGeneratorList = new ObjectList();
    this.urlGenerator = null;
    this.backgroundAnnotations = new java.util.ArrayList();
    this.foregroundAnnotations = new java.util.ArrayList();
    this.defaultEntityRadius = 3;
    this.legendItemLabelGenerator = new StandardXYSeriesLabelGenerator(
            "{0}");
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:18,代码来源:AbstractXYItemRenderer.java

示例9: AbstractXYItemRenderer

import org.jfree.chart.labels.StandardXYSeriesLabelGenerator; //导入依赖的package包/类
/**
 * Creates a renderer where the tooltip generator and the URL generator are
 * both <code>null</code>.
 */
protected AbstractXYItemRenderer() {
    super();
    this.itemLabelGenerator = null;
    this.itemLabelGeneratorList = new ObjectList();
    this.toolTipGenerator = null;
    this.toolTipGeneratorList = new ObjectList();
    this.urlGenerator = null;
    this.backgroundAnnotations = new java.util.ArrayList();
    this.foregroundAnnotations = new java.util.ArrayList();
    this.legendItemLabelGenerator = new StandardXYSeriesLabelGenerator(
            "{0}");
}
 
开发者ID:lulab,项目名称:PI,代码行数:17,代码来源:AbstractXYItemRenderer.java

示例10: testGenerateLabel

import org.jfree.chart.labels.StandardXYSeriesLabelGenerator; //导入依赖的package包/类
/**
 * Some checks for the generalLabel() method.
 */
public void testGenerateLabel() {
    StandardXYSeriesLabelGenerator g
            = new StandardXYSeriesLabelGenerator("Series {0}");
    XYSeriesCollection dataset = new XYSeriesCollection();
    dataset.addSeries(new XYSeries("1"));
    dataset.addSeries(new XYSeries("2"));
    assertEquals("Series 1", g.generateLabel(dataset, 0));
    assertEquals("Series 2", g.generateLabel(dataset, 1));
}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:13,代码来源:StandardXYSeriesLabelGeneratorTests.java

示例11: testHashCode

import org.jfree.chart.labels.StandardXYSeriesLabelGenerator; //导入依赖的package包/类
/**
 * Simple check that hashCode is implemented.
 */
public void testHashCode() {
    StandardXYSeriesLabelGenerator g1
            = new StandardXYSeriesLabelGenerator();
    StandardXYSeriesLabelGenerator g2
            = new StandardXYSeriesLabelGenerator();
    assertTrue(g1.equals(g2));
    assertTrue(g1.hashCode() == g2.hashCode());
}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:12,代码来源:StandardXYSeriesLabelGeneratorTests.java

示例12: AbstractXYItemRenderer

import org.jfree.chart.labels.StandardXYSeriesLabelGenerator; //导入依赖的package包/类
/**
 * Creates a renderer where the tooltip generator and the URL generator are
 * both <code>null</code>.
 */
protected AbstractXYItemRenderer() {
    super();
    this.itemLabelGeneratorList = new ObjectList();
    this.toolTipGeneratorList = new ObjectList();
    this.urlGeneratorList = new ObjectList();
    this.baseURLGenerator = null;
    this.backgroundAnnotations = new java.util.ArrayList();
    this.foregroundAnnotations = new java.util.ArrayList();
    this.legendItemLabelGenerator = new StandardXYSeriesLabelGenerator(
            "{0}");
}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:16,代码来源:AbstractXYItemRenderer.java

示例13: AbstractXYItemRenderer

import org.jfree.chart.labels.StandardXYSeriesLabelGenerator; //导入依赖的package包/类
/**
 * Creates a renderer where the tooltip generator and the URL generator are
 * both <code>null</code>.
 */
protected AbstractXYItemRenderer() {
    this.itemLabelGenerator = null;
    this.itemLabelGeneratorList = new ObjectList();
    this.toolTipGenerator = null;
    this.toolTipGeneratorList = new ObjectList();
    this.urlGenerator = null;
    this.backgroundAnnotations = new java.util.ArrayList();
    this.foregroundAnnotations = new java.util.ArrayList();
    this.defaultEntityRadius = 3;
    this.legendItemLabelGenerator 
        = new StandardXYSeriesLabelGenerator("{0}");
}
 
开发者ID:opensim-org,项目名称:opensim-gui,代码行数:17,代码来源:AbstractXYItemRenderer.java


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