本文整理汇总了Java中org.jfree.chart.urls.TimeSeriesURLGenerator类的典型用法代码示例。如果您正苦于以下问题:Java TimeSeriesURLGenerator类的具体用法?Java TimeSeriesURLGenerator怎么用?Java TimeSeriesURLGenerator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TimeSeriesURLGenerator类属于org.jfree.chart.urls包,在下文中一共展示了TimeSeriesURLGenerator类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: testEquals2
import org.jfree.chart.urls.TimeSeriesURLGenerator; //导入依赖的package包/类
/**
* Test that the equals() method works for a TimeSeriesURLGenerator.
*/
@Test
public void testEquals2() {
XYLineAndShapeRenderer r1 = new XYLineAndShapeRenderer();
XYLineAndShapeRenderer r2 = new XYLineAndShapeRenderer();
assertEquals(r1, r2);
assertEquals(r2, r1);
r1.setURLGenerator(new TimeSeriesURLGenerator());
assertFalse(r1.equals(r2));
r2.setURLGenerator(new TimeSeriesURLGenerator());
assertTrue(r1.equals(r2));
}
开发者ID:mdzio,项目名称:ccu-historian,代码行数:16,代码来源:XYLineAndShapeRendererTest.java
示例2: testEquals2
import org.jfree.chart.urls.TimeSeriesURLGenerator; //导入依赖的package包/类
/**
* Test that the equals() method works for a TimeSeriesURLGenerator.
*/
public void testEquals2() {
XYLineAndShapeRenderer r1 = new XYLineAndShapeRenderer();
XYLineAndShapeRenderer r2 = new XYLineAndShapeRenderer();
assertEquals(r1, r2);
assertEquals(r2, r1);
r1.setBaseURLGenerator(new TimeSeriesURLGenerator());
assertFalse(r1.equals(r2));
r2.setBaseURLGenerator(new TimeSeriesURLGenerator());
assertTrue(r1.equals(r2));
}
开发者ID:SpoonLabs,项目名称:astor,代码行数:15,代码来源:XYLineAndShapeRendererTests.java
示例3: testGenerateURL
import org.jfree.chart.urls.TimeSeriesURLGenerator; //导入依赖的package包/类
/**
* A basic check for the generateURL() method.
*/
public void testGenerateURL() {
TimeSeriesURLGenerator g = new TimeSeriesURLGenerator();
DefaultXYDataset dataset = new DefaultXYDataset();
dataset.addSeries("Series '1'", new double[][] {{1.0, 2.0},
{3.0, 4.0}});
String s = g.generateURL(dataset, 0, 0);
assertTrue(s.startsWith("index.html?series=Series+%271%27&item="));
}
开发者ID:SpoonLabs,项目名称:astor,代码行数:12,代码来源:TimeSeriesURLGeneratorTests.java
示例4: testPublicCloneable
import org.jfree.chart.urls.TimeSeriesURLGenerator; //导入依赖的package包/类
/**
* Checks that the class does not implement PublicCloneable (the generator
* is immutable).
*/
public void testPublicCloneable() {
TimeSeriesURLGenerator g1 = new TimeSeriesURLGenerator();
assertFalse(g1 instanceof PublicCloneable);
}
开发者ID:SpoonLabs,项目名称:astor,代码行数:9,代码来源:TimeSeriesURLGeneratorTests.java
注:本文中的org.jfree.chart.urls.TimeSeriesURLGenerator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论