本文整理汇总了Java中org.jfree.util.PublicCloneable类的典型用法代码示例。如果您正苦于以下问题:Java PublicCloneable类的具体用法?Java PublicCloneable怎么用?Java PublicCloneable使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PublicCloneable类属于org.jfree.util包,在下文中一共展示了PublicCloneable类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: clone
import org.jfree.util.PublicCloneable; //导入依赖的package包/类
/**
* Returns a clone of the renderer.
*
* @return A clone.
*
* @throws CloneNotSupportedException if the renderer cannot be cloned.
*/
public Object clone() throws CloneNotSupportedException {
XYBarRenderer result = (XYBarRenderer) super.clone();
if (this.gradientPaintTransformer != null) {
if (this.gradientPaintTransformer instanceof PublicCloneable) {
PublicCloneable pc = (PublicCloneable) this.gradientPaintTransformer;
result.gradientPaintTransformer = (GradientPaintTransformer) pc.clone();
}
else {
throw new CloneNotSupportedException(
"GradientPaintTransformer doesn't implement PublicCloneable"
);
}
}
return result;
}
示例2: testPublicCloneable
import org.jfree.util.PublicCloneable; //导入依赖的package包/类
/**
* Check to ensure that this class implements PublicCloneable.
*/
@Test
public void testPublicCloneable() {
MultipleXYSeriesLabelGenerator g1
= new MultipleXYSeriesLabelGenerator();
assertTrue(g1 instanceof PublicCloneable);
}
示例3: testCloning
import org.jfree.util.PublicCloneable; //导入依赖的package包/类
/**
* Confirm that cloning isn't implemented (it isn't required, because
* instances of the class are immutable).
*/
@Test
public void testCloning() {
GradientXYBarPainter p1 = new GradientXYBarPainter(0.1, 0.2, 0.3);
assertFalse(p1 instanceof Cloneable);
assertFalse(p1 instanceof PublicCloneable);
}
示例4: testCloning
import org.jfree.util.PublicCloneable; //导入依赖的package包/类
/**
* Confirm that cloning isn't implemented (it isn't required, because
* instances of the class are immutable).
*/
@Test
public void testCloning() {
StandardXYBarPainter p1 = new StandardXYBarPainter();
assertFalse(p1 instanceof Cloneable);
assertFalse(p1 instanceof PublicCloneable);
}
示例5: testPublicCloneable
import org.jfree.util.PublicCloneable; //导入依赖的package包/类
/**
* Check to ensure that this class implements PublicCloneable.
*/
@Test
public void testPublicCloneable() {
IntervalCategoryToolTipGenerator g1
= new IntervalCategoryToolTipGenerator();
assertTrue(g1 instanceof PublicCloneable);
}
示例6: testPublicCloneable
import org.jfree.util.PublicCloneable; //导入依赖的package包/类
/**
* Checks that this class implements PublicCloneable.
*/
@Test
public void testPublicCloneable() {
Stroke stroke1 = new BasicStroke(2.0f);
XYPolygonAnnotation a1 = new XYPolygonAnnotation(new double[] {1.0,
2.0, 3.0, 4.0, 5.0, 6.0}, stroke1, Color.red, Color.blue);
assertTrue(a1 instanceof PublicCloneable);
}
示例7: testCloning
import org.jfree.util.PublicCloneable; //导入依赖的package包/类
/**
* Confirm that cloning isn't implemented (it isn't required, because
* instances of the class are immutable).
*/
@Test
public void testCloning() {
StandardBarPainter p1 = new StandardBarPainter();
assertFalse(p1 instanceof Cloneable);
assertFalse(p1 instanceof PublicCloneable);
}
示例8: testPublicCloneable
import org.jfree.util.PublicCloneable; //导入依赖的package包/类
/**
* Verify that this class implements {@link PublicCloneable}.
*/
@Test
public void testPublicCloneable() {
DefaultOHLCDataset d1 = new DefaultOHLCDataset("Series 1",
new OHLCDataItem[0]);
assertTrue(d1 instanceof PublicCloneable);
}
示例9: testPublicCloneable
import org.jfree.util.PublicCloneable; //导入依赖的package包/类
/**
* Verify that this class implements {@link PublicCloneable}.
*/
@Test
public void testPublicCloneable() {
DefaultHighLowDataset d1 = new DefaultHighLowDataset("Series 1",
new Date[0], new double[0], new double[0], new double[0],
new double[0], new double[0]);
assertTrue(d1 instanceof PublicCloneable);
}
示例10: testPublicCloneable
import org.jfree.util.PublicCloneable; //导入依赖的package包/类
/**
* Checks that this class implements PublicCloneable.
*/
@Test
public void testPublicCloneable() {
CategoryTextAnnotation a1 = new CategoryTextAnnotation(
"Test", "Category", 1.0);
assertTrue(a1 instanceof PublicCloneable);
}
示例11: testPublicCloneable
import org.jfree.util.PublicCloneable; //导入依赖的package包/类
/**
* Check that this class implements PublicCloneable.
*/
@Test
public void testPublicCloneable() {
StatisticalLineAndShapeRenderer r1
= new StatisticalLineAndShapeRenderer();
assertTrue(r1 instanceof PublicCloneable);
}
示例12: testCloning
import org.jfree.util.PublicCloneable; //导入依赖的package包/类
/**
* Confirm that cloning isn't implemented (it isn't required, because
* instances of the class are immutable).
*/
@Test
public void testCloning() {
GradientBarPainter p1 = new GradientBarPainter(0.1, 0.2, 0.3);
assertFalse(p1 instanceof Cloneable);
assertFalse(p1 instanceof PublicCloneable);
}
示例13: testPublicCloneable
import org.jfree.util.PublicCloneable; //导入依赖的package包/类
/**
* Checks that this class implements PublicCloneable.
*/
@Test
public void testPublicCloneable() {
XYDrawableAnnotation a1 = new XYDrawableAnnotation(10.0, 20.0, 100.0,
200.0, new TestDrawable());
assertTrue(a1 instanceof PublicCloneable);
}
示例14: testPublicCloneable
import org.jfree.util.PublicCloneable; //导入依赖的package包/类
/**
* Checks that this class implements PublicCloneable.
*/
@Test
public void testPublicCloneable() {
XYImageAnnotation a1 = new XYImageAnnotation(10.0, 20.0,
JFreeChart.INFO.getLogo());
assertTrue(a1 instanceof PublicCloneable);
}
示例15: testPublicCloneable
import org.jfree.util.PublicCloneable; //导入依赖的package包/类
/**
* Checks that this class implements PublicCloneable.
*/
@Test
public void testPublicCloneable() {
XYShapeAnnotation a1 = new XYShapeAnnotation(
new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0),
new BasicStroke(1.2f), Color.red, Color.blue);
assertTrue(a1 instanceof PublicCloneable);
}