本文整理匯總了Java中org.jfree.chart.plot.ValueMarker.setAlpha方法的典型用法代碼示例。如果您正苦於以下問題:Java ValueMarker.setAlpha方法的具體用法?Java ValueMarker.setAlpha怎麽用?Java ValueMarker.setAlpha使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.jfree.chart.plot.ValueMarker
的用法示例。
在下文中一共展示了ValueMarker.setAlpha方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: testGetSetAlpha
import org.jfree.chart.plot.ValueMarker; //導入方法依賴的package包/類
/**
* Some checks for the getAlpha() and setAlpha() methods.
*/
public void testGetSetAlpha() {
// we use ValueMarker for the tests, because we need a concrete
// subclass...
ValueMarker m = new ValueMarker(1.1);
m.addChangeListener(this);
this.lastEvent = null;
assertEquals(0.8f, m.getAlpha(), EPSILON);
m.setAlpha(0.5f);
assertEquals(0.5f, m.getAlpha(), EPSILON);
assertEquals(m, this.lastEvent.getMarker());
}
示例2: testGetSetAlpha
import org.jfree.chart.plot.ValueMarker; //導入方法依賴的package包/類
/**
* Some checks for the getAlpha() and setAlpha() methods.
*/
public void testGetSetAlpha() {
// we use ValueMarker for the tests, because we need a concrete
// subclass...
ValueMarker m = new ValueMarker(1.1);
m.addChangeListener(this);
this.lastEvent = null;
assertEquals(0.8f, m.getAlpha(), EPSILON);
m.setAlpha(0.5f);
assertEquals(0.5f, m.getAlpha(), EPSILON);
assertEquals(m, this.lastEvent.getMarker());
}