当前位置: 首页>>代码示例>>Java>>正文


Java PublicCloneable类代码示例

本文整理汇总了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;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:23,代码来源:XYBarRenderer.java

示例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);
}
 
开发者ID:nick-paul,项目名称:aya-lang,代码行数:10,代码来源:MultipleXYSeriesLabelGeneratorTest.java

示例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);
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:11,代码来源:GradientXYBarPainterTest.java

示例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);
}
 
开发者ID:nick-paul,项目名称:aya-lang,代码行数:11,代码来源:StandardXYBarPainterTest.java

示例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);
}
 
开发者ID:nick-paul,项目名称:aya-lang,代码行数:10,代码来源:IntervalCategoryToolTipGeneratorTest.java

示例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);
}
 
开发者ID:nick-paul,项目名称:aya-lang,代码行数:11,代码来源:XYPolygonAnnotationTest.java

示例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);
}
 
开发者ID:nick-paul,项目名称:aya-lang,代码行数:11,代码来源:StandardBarPainterTest.java

示例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);
}
 
开发者ID:nick-paul,项目名称:aya-lang,代码行数:10,代码来源:DefaultOHLCDatasetTest.java

示例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);
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:11,代码来源:DefaultHighLowDatasetTest.java

示例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);
}
 
开发者ID:nick-paul,项目名称:aya-lang,代码行数:10,代码来源:CategoryTextAnnotationTest.java

示例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);
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:10,代码来源:StatisticalLineAndShapeRendererTest.java

示例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);
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:11,代码来源:GradientBarPainterTest.java

示例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);
}
 
开发者ID:nick-paul,项目名称:aya-lang,代码行数:10,代码来源:XYDrawableAnnotationTest.java

示例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);
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:10,代码来源:XYImageAnnotationTest.java

示例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);
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:11,代码来源:XYShapeAnnotationTest.java


注:本文中的org.jfree.util.PublicCloneable类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。