本文整理汇总了Java中org.jfree.chart.axis.CyclicNumberAxis.setAdvanceLineStroke方法的典型用法代码示例。如果您正苦于以下问题:Java CyclicNumberAxis.setAdvanceLineStroke方法的具体用法?Java CyclicNumberAxis.setAdvanceLineStroke怎么用?Java CyclicNumberAxis.setAdvanceLineStroke使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.chart.axis.CyclicNumberAxis
的用法示例。
在下文中一共展示了CyclicNumberAxis.setAdvanceLineStroke方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testEquals
import org.jfree.chart.axis.CyclicNumberAxis; //导入方法依赖的package包/类
/**
* Confirm that the equals method can distinguish all the required fields.
*/
public void testEquals() {
// Test the overloading didn't mess with parent
super.testEquals();
CyclicNumberAxis a1 = new CyclicNumberAxis(10, 0, "Test");
CyclicNumberAxis a2 = new CyclicNumberAxis(10, 0, "Test");
assertTrue(a1.equals(a2));
// period
a1.setPeriod(5);
assertFalse(a1.equals(a2));
a2.setPeriod(5);
assertTrue(a1.equals(a2));
// offset
a1.setOffset(2.0);
assertFalse(a1.equals(a2));
a2.setOffset(2.0);
assertTrue(a1.equals(a2));
// advance line Paint
a1.setAdvanceLinePaint(Color.cyan);
assertFalse(a1.equals(a2));
a2.setAdvanceLinePaint(Color.cyan);
assertTrue(a1.equals(a2));
// advance line Stroke
Stroke stroke = new BasicStroke(0.2f);
a1.setAdvanceLineStroke(stroke);
assertFalse(a1.equals(a2));
a2.setAdvanceLineStroke(stroke);
assertTrue(a1.equals(a2));
// advance line Visible
a1.setAdvanceLineVisible(!a1.isAdvanceLineVisible());
assertFalse(a1.equals(a2));
a2.setAdvanceLineVisible(a1.isAdvanceLineVisible());
assertTrue(a1.equals(a2));
// cycle bound mapping
a1.setBoundMappedToLastCycle(!a1.isBoundMappedToLastCycle());
assertFalse(a1.equals(a2));
a2.setBoundMappedToLastCycle(a1.isBoundMappedToLastCycle());
assertTrue(a1.equals(a2));
}
示例2: testEquals
import org.jfree.chart.axis.CyclicNumberAxis; //导入方法依赖的package包/类
/**
* Confirm that the equals method can distinguish all the required fields.
*/
public void testEquals() {
CyclicNumberAxis a1 = new CyclicNumberAxis(10, 0, "Test");
CyclicNumberAxis a2 = new CyclicNumberAxis(10, 0, "Test");
assertTrue(a1.equals(a2));
// period
a1.setPeriod(5);
assertFalse(a1.equals(a2));
a2.setPeriod(5);
assertTrue(a1.equals(a2));
// offset
a1.setOffset(2.0);
assertFalse(a1.equals(a2));
a2.setOffset(2.0);
assertTrue(a1.equals(a2));
// advance line Paint
a1.setAdvanceLinePaint(new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.black));
assertFalse(a1.equals(a2));
a2.setAdvanceLinePaint(new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.black));
assertTrue(a1.equals(a2));
// advance line Stroke
Stroke stroke = new BasicStroke(0.2f);
a1.setAdvanceLineStroke(stroke);
assertFalse(a1.equals(a2));
a2.setAdvanceLineStroke(stroke);
assertTrue(a1.equals(a2));
// advance line Visible
a1.setAdvanceLineVisible(!a1.isAdvanceLineVisible());
assertFalse(a1.equals(a2));
a2.setAdvanceLineVisible(a1.isAdvanceLineVisible());
assertTrue(a1.equals(a2));
// cycle bound mapping
a1.setBoundMappedToLastCycle(!a1.isBoundMappedToLastCycle());
assertFalse(a1.equals(a2));
a2.setBoundMappedToLastCycle(a1.isBoundMappedToLastCycle());
assertTrue(a1.equals(a2));
}
示例3: testEquals
import org.jfree.chart.axis.CyclicNumberAxis; //导入方法依赖的package包/类
/**
* Confirm that the equals method can distinguish all the required fields.
*/
public void testEquals() {
CyclicNumberAxis a1 = new CyclicNumberAxis(10, 0, "Test");
CyclicNumberAxis a2 = new CyclicNumberAxis(10, 0, "Test");
assertTrue(a1.equals(a2));
// period
a1.setPeriod(5);
assertFalse(a1.equals(a2));
a2.setPeriod(5);
assertTrue(a1.equals(a2));
// offset
a1.setOffset(2.0);
assertFalse(a1.equals(a2));
a2.setOffset(2.0);
assertTrue(a1.equals(a2));
// advance line Paint
a1.setAdvanceLinePaint(new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.black));
assertFalse(a1.equals(a2));
a2.setAdvanceLinePaint(new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.black));
assertTrue(a1.equals(a2));
// advance line Stroke
Stroke stroke = new BasicStroke(0.2f);
a1.setAdvanceLineStroke(stroke);
assertFalse(a1.equals(a2));
a2.setAdvanceLineStroke(stroke);
assertTrue(a1.equals(a2));
// advance line Visible
a1.setAdvanceLineVisible(!a1.isAdvanceLineVisible());
assertFalse(a1.equals(a2));
a2.setAdvanceLineVisible(a1.isAdvanceLineVisible());
assertTrue(a1.equals(a2));
// cycle bound mapping
a1.setBoundMappedToLastCycle(!a1.isBoundMappedToLastCycle());
assertFalse(a1.equals(a2));
a2.setBoundMappedToLastCycle(a1.isBoundMappedToLastCycle());
assertTrue(a1.equals(a2));
}