Java 类org.jfree.chart.labels.StandardXYSeriesLabelGenerator 实例源码

项目:ccu-historian    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:ccu-historian    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:ccu-historian    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:jfreechart    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:jfreechart    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:jfreechart    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:aya-lang    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:aya-lang    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:aya-lang    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:ECG-Viewer    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:ECG-Viewer    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:ECG-Viewer    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:group-five    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:group-five    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:group-five    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:buffer_bci    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:buffer_bci    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:buffer_bci    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:proyecto-teoria-control-utn-frro    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:proyecto-teoria-control-utn-frro    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:proyecto-teoria-control-utn-frro    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:Memetic-Algorithm-for-TSP    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:Memetic-Algorithm-for-TSP    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:Memetic-Algorithm-for-TSP    文件:AbstractXYItemRendererTest.java   
/**
 * 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());
}
项目:parabuild-ci    文件:StandardXYSeriesLabelGeneratorTests.java   
/**
 * 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));
}
项目:parabuild-ci    文件:AbstractXYItemRenderer.java   
/**
 * 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}");
}
项目:ccu-historian    文件:AbstractXYItemRenderer.java   
/**
 * 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}");
}
项目:jfreechart    文件:AbstractXYItemRenderer.java   
/**
 * 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}");
}
项目:aya-lang    文件:AbstractXYItemRenderer.java   
/**
 * 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}");
}
项目:HTML5_WebSite    文件:AbstractXYItemRenderer.java   
/**
 * 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}");
}
项目:populus    文件:AbstractXYItemRenderer.java   
/**
 * 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}");
}
项目:PI    文件:AbstractXYItemRenderer.java   
/**
 * 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}");
}
项目:nabs    文件:StandardXYSeriesLabelGeneratorTests.java   
/**
 * 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));
}
项目:nabs    文件:AbstractXYItemRenderer.java   
/**
 * 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}");
}
项目:ECG-Viewer    文件:AbstractXYItemRenderer.java   
/**
 * 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}");
}
项目:astor    文件:StandardXYSeriesLabelGeneratorTests.java   
/**
 * 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));
}
项目:astor    文件:StandardXYSeriesLabelGeneratorTests.java   
/**
 * 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());
}
项目:astor    文件:AbstractXYItemRenderer.java   
/**
 * 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}");
}
项目:opensim-gui    文件:AbstractXYItemRenderer.java   
/**
 * 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}");
}
项目:group-five    文件:AbstractXYItemRenderer.java   
/**
 * 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}");
}