本文整理汇总了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());
}
示例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());
}
示例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());
}
示例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));
}
示例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}");
}
示例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}");
}
示例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}");
}
示例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}");
}
示例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}");
}
示例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));
}
示例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());
}
示例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}");
}
示例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}");
}