本文整理汇总了Java中org.jfree.chart.plot.RingPlot.setSeparatorStroke方法的典型用法代码示例。如果您正苦于以下问题:Java RingPlot.setSeparatorStroke方法的具体用法?Java RingPlot.setSeparatorStroke怎么用?Java RingPlot.setSeparatorStroke使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.chart.plot.RingPlot
的用法示例。
在下文中一共展示了RingPlot.setSeparatorStroke方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testEquals
import org.jfree.chart.plot.RingPlot; //导入方法依赖的package包/类
/**
* Some checks for the equals() method.
*/
public void testEquals() {
RingPlot plot1 = new RingPlot(null);
RingPlot plot2 = new RingPlot(null);
assertTrue(plot1.equals(plot2));
assertTrue(plot2.equals(plot1));
// separatorsVisible
plot1.setSeparatorsVisible(false);
assertFalse(plot1.equals(plot2));
plot2.setSeparatorsVisible(false);
assertTrue(plot1.equals(plot2));
// separatorStroke
Stroke s = new BasicStroke(1.1f);
plot1.setSeparatorStroke(s);
assertFalse(plot1.equals(plot2));
plot2.setSeparatorStroke(s);
assertTrue(plot1.equals(plot2));
// separatorPaint
plot1.setSeparatorPaint(new GradientPaint(1.0f, 2.0f, Color.red,
2.0f, 1.0f, Color.blue));
assertFalse(plot1.equals(plot2));
plot2.setSeparatorPaint(new GradientPaint(1.0f, 2.0f, Color.red,
2.0f, 1.0f, Color.blue));
assertTrue(plot1.equals(plot2));
// innerSeparatorExtension
plot1.setInnerSeparatorExtension(0.01);
assertFalse(plot1.equals(plot2));
plot2.setInnerSeparatorExtension(0.01);
assertTrue(plot1.equals(plot2));
// outerSeparatorExtension
plot1.setOuterSeparatorExtension(0.02);
assertFalse(plot1.equals(plot2));
plot2.setOuterSeparatorExtension(0.02);
assertTrue(plot1.equals(plot2));
// sectionDepth
plot1.setSectionDepth(0.12);
assertFalse(plot1.equals(plot2));
plot2.setSectionDepth(0.12);
assertTrue(plot1.equals(plot2));
}
示例2: testEquals
import org.jfree.chart.plot.RingPlot; //导入方法依赖的package包/类
/**
* Some checks for the equals() method.
*/
public void testEquals() {
RingPlot plot1 = new RingPlot(null);
RingPlot plot2 = new RingPlot(null);
assertTrue(plot1.equals(plot2));
assertTrue(plot2.equals(plot1));
// separatorsVisible
plot1.setSeparatorsVisible(false);
assertFalse(plot1.equals(plot2));
plot2.setSeparatorsVisible(false);
assertTrue(plot1.equals(plot2));
// separatorStroke
Stroke s = new BasicStroke(1.1f);
plot1.setSeparatorStroke(s);
assertFalse(plot1.equals(plot2));
plot2.setSeparatorStroke(s);
assertTrue(plot1.equals(plot2));
// separatorPaint
plot1.setSeparatorPaint(new GradientPaint(1.0f, 2.0f, Color.red,
2.0f, 1.0f, Color.blue));
assertFalse(plot1.equals(plot2));
plot2.setSeparatorPaint(new GradientPaint(1.0f, 2.0f, Color.red,
2.0f, 1.0f, Color.blue));
assertTrue(plot1.equals(plot2));
// innerSeparatorExtension
plot1.setInnerSeparatorExtension(0.01);
assertFalse(plot1.equals(plot2));
plot2.setInnerSeparatorExtension(0.01);
assertTrue(plot1.equals(plot2));
// outerSeparatorExtension
plot1.setOuterSeparatorExtension(0.02);
assertFalse(plot1.equals(plot2));
plot2.setOuterSeparatorExtension(0.02);
assertTrue(plot1.equals(plot2));
// sectionDepth
plot1.setSectionDepth(0.12);
assertFalse(plot1.equals(plot2));
plot2.setSectionDepth(0.12);
assertTrue(plot1.equals(plot2));
}