本文整理汇总了Java中org.jfree.chart.renderer.AreaRendererEndType类的典型用法代码示例。如果您正苦于以下问题:Java AreaRendererEndType类的具体用法?Java AreaRendererEndType怎么用?Java AreaRendererEndType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AreaRendererEndType类属于org.jfree.chart.renderer包,在下文中一共展示了AreaRendererEndType类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testEquals
import org.jfree.chart.renderer.AreaRendererEndType; //导入依赖的package包/类
/**
* A test for the equals() method.
*/
public void testEquals() {
// test the tokens for equality...
assertEquals(AreaRendererEndType.LEVEL, AreaRendererEndType.LEVEL);
assertEquals(AreaRendererEndType.TAPER, AreaRendererEndType.TAPER);
assertEquals(AreaRendererEndType.TRUNCATE, AreaRendererEndType.TRUNCATE);
}
示例2: setEndType
import org.jfree.chart.renderer.AreaRendererEndType; //导入依赖的package包/类
/**
* Sets a token that controls how the renderer draws the end points, and sends
* a {@link RendererChangeEvent} to all registered listeners.
*
* @param type the end type (<code>null</code> not permitted).
*/
public void setEndType(AreaRendererEndType type) {
if (type == null) {
throw new IllegalArgumentException("Null 'type' argument.");
}
this.endType = type;
notifyListeners(new RendererChangeEvent(this));
}
示例3: testEquals
import org.jfree.chart.renderer.AreaRendererEndType; //导入依赖的package包/类
/**
* A test for the equals() method.
*/
public void testEquals() {
assertEquals(AreaRendererEndType.LEVEL, AreaRendererEndType.LEVEL);
assertEquals(AreaRendererEndType.TAPER, AreaRendererEndType.TAPER);
assertEquals(
AreaRendererEndType.TRUNCATE, AreaRendererEndType.TRUNCATE
);
}
示例4: testEquals
import org.jfree.chart.renderer.AreaRendererEndType; //导入依赖的package包/类
/**
* Check that the equals() method distinguishes all fields.
*/
public void testEquals() {
AreaRenderer r1 = new AreaRenderer();
AreaRenderer r2 = new AreaRenderer();
assertEquals(r1, r2);
r1.setEndType(AreaRendererEndType.LEVEL);
assertFalse(r1.equals(r2));
r2.setEndType(AreaRendererEndType.LEVEL);
assertTrue(r1.equals(r2));
}
示例5: testEquals
import org.jfree.chart.renderer.AreaRendererEndType; //导入依赖的package包/类
/**
* Check that the equals() method distinguishes all fields.
*/
@Test
public void testEquals() {
AreaRenderer r1 = new AreaRenderer();
AreaRenderer r2 = new AreaRenderer();
assertEquals(r1, r2);
r1.setEndType(AreaRendererEndType.LEVEL);
assertFalse(r1.equals(r2));
r2.setEndType(AreaRendererEndType.LEVEL);
assertTrue(r1.equals(r2));
}
示例6: testEquals
import org.jfree.chart.renderer.AreaRendererEndType; //导入依赖的package包/类
/**
* Check that the equals() method distinguishes all fields.
*/
public void testEquals() {
AreaRenderer r1 = new AreaRenderer();
AreaRenderer r2 = new AreaRenderer();
assertEquals(r1, r2);
r1.setEndType(AreaRendererEndType.LEVEL);
assertFalse(r1.equals(r2));
r2.setEndType(AreaRendererEndType.LEVEL);
assertTrue(r1.equals(r2));
}
示例7: AreaRenderer
import org.jfree.chart.renderer.AreaRendererEndType; //导入依赖的package包/类
/**
* Creates a new renderer.
*/
public AreaRenderer() {
super();
this.endType = AreaRendererEndType.TAPER;
}
示例8: AreaRenderer
import org.jfree.chart.renderer.AreaRendererEndType; //导入依赖的package包/类
/**
* Creates a new renderer.
*/
public AreaRenderer() {
super();
this.endType = AreaRendererEndType.TAPER;
setBaseLegendShape(new Rectangle2D.Double(-4.0, -4.0, 8.0, 8.0));
}
示例9: AreaRenderer
import org.jfree.chart.renderer.AreaRendererEndType; //导入依赖的package包/类
/**
* Creates a new renderer.
*/
public AreaRenderer() {
super();
this.endType = AreaRendererEndType.TAPER;
setDefaultLegendShape(new Rectangle2D.Double(-4.0, -4.0, 8.0, 8.0));
}
示例10: setEndType
import org.jfree.chart.renderer.AreaRendererEndType; //导入依赖的package包/类
/**
* Sets a token that controls how the renderer draws the end points, and
* sends a {@link RendererChangeEvent} to all registered listeners.
*
* @param type the end type (<code>null</code> not permitted).
*
* @see #getEndType()
*/
public void setEndType(AreaRendererEndType type) {
if (type == null) {
throw new IllegalArgumentException("Null 'type' argument.");
}
this.endType = type;
notifyListeners(new RendererChangeEvent(this));
}
示例11: setEndType
import org.jfree.chart.renderer.AreaRendererEndType; //导入依赖的package包/类
/**
* Sets a token that controls how the renderer draws the end points, and
* sends a {@link RendererChangeEvent} to all registered listeners.
*
* @param type the end type (<code>null</code> not permitted).
*
* @see #getEndType()
*/
public void setEndType(AreaRendererEndType type) {
if (type == null) {
throw new IllegalArgumentException("Null 'type' argument.");
}
this.endType = type;
fireChangeEvent();
}