org.jfree.util.PublicCloneable Java Examples

The following examples show how to use org.jfree.util.PublicCloneable. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StatisticalLineAndShapeRendererTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Check that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    StatisticalLineAndShapeRenderer r1
            = new StatisticalLineAndShapeRenderer();
    assertTrue(r1 instanceof PublicCloneable);
}
 
Example #2
Source File: StandardPieSectionLabelGeneratorTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Check to ensure that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    StandardPieSectionLabelGenerator g1
            = new StandardPieSectionLabelGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #3
Source File: CategoryTextAnnotationTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Checks that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    CategoryTextAnnotation a1 = new CategoryTextAnnotation(
            "Test", "Category", 1.0);
    assertTrue(a1 instanceof PublicCloneable);
}
 
Example #4
Source File: IntervalCategoryItemLabelGeneratorTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Check to ensure that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    IntervalCategoryItemLabelGenerator g1
            = new IntervalCategoryItemLabelGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #5
Source File: BoxAndWhiskerXYToolTipGeneratorTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Check to ensure that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    BoxAndWhiskerXYToolTipGenerator g1
            = new BoxAndWhiskerXYToolTipGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #6
Source File: StandardCategorySeriesLabelGeneratorTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Check to ensure that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    StandardCategorySeriesLabelGenerator g1
            = new StandardCategorySeriesLabelGenerator("{1}");
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #7
Source File: DefaultHighLowDatasetTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 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);
}
 
Example #8
Source File: MultipleXYSeriesLabelGeneratorTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Check to ensure that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    MultipleXYSeriesLabelGenerator g1
            = new MultipleXYSeriesLabelGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #9
Source File: CategoryPointerAnnotationTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Checks that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    CategoryPointerAnnotation a1 = new CategoryPointerAnnotation("Label",
            "A", 20.0, Math.PI);
    assertTrue(a1 instanceof PublicCloneable);
}
 
Example #10
Source File: XYLineAnnotationTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Checks that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    Stroke stroke = new BasicStroke(2.0f);
    XYLineAnnotation a1 = new XYLineAnnotation(10.0, 20.0, 100.0, 200.0,
            stroke, Color.blue);
    assertTrue(a1 instanceof PublicCloneable);
}
 
Example #11
Source File: XYPointerAnnotationTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Checks that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    XYPointerAnnotation a1 = new XYPointerAnnotation("Label", 10.0, 20.0,
            Math.PI);
    assertTrue(a1 instanceof PublicCloneable);
}
 
Example #12
Source File: XYShapeAnnotationTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 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);
}
 
Example #13
Source File: StandardXYBarPainterTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 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);
}
 
Example #14
Source File: XYDrawableAnnotationTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 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);
}
 
Example #15
Source File: XYPolygonAnnotationTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 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);
}
 
Example #16
Source File: XYImageAnnotationTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 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);
}
 
Example #17
Source File: DefaultOHLCDatasetTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Verify that this class implements {@link PublicCloneable}.
 */
@Test
public void testPublicCloneable() {
    DefaultOHLCDataset d1 = new DefaultOHLCDataset("Series 1",
            new OHLCDataItem[0]);
    assertTrue(d1 instanceof PublicCloneable);
}
 
Example #18
Source File: StandardCategoryItemLabelGeneratorTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Check to ensure that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    StandardCategoryItemLabelGenerator g1
            = new StandardCategoryItemLabelGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #19
Source File: IntervalCategoryToolTipGeneratorTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Check to ensure that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    IntervalCategoryToolTipGenerator g1
            = new IntervalCategoryToolTipGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #20
Source File: XYBarDatasetTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Verify that this class implements {@link PublicCloneable}.
 */
@Test
public void testPublicCloneable() {
    DefaultXYDataset d1 = new DefaultXYDataset();
    double[] x1 = new double[] {1.0, 2.0, 3.0};
    double[] y1 = new double[] {4.0, 5.0, 6.0};
    double[][] data1 = new double[][] {x1, y1};
    d1.addSeries("S1", data1);
    XYBarDataset bd1 = new XYBarDataset(d1, 5.0);
    assertTrue(bd1 instanceof PublicCloneable);
}
 
Example #21
Source File: StandardBarPainterTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 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);
}
 
Example #22
Source File: StandardXYSeriesLabelGeneratorTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Check to ensure that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    StandardXYSeriesLabelGenerator g1
            = new StandardXYSeriesLabelGenerator("Series {0}");
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #23
Source File: CategoryTableXYDatasetTest.java    From openstock with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Verify that this class implements {@link PublicCloneable}.
 */
@Test
public void testPublicCloneable() {
    CategoryTableXYDataset d1 = new CategoryTableXYDataset();
    assertTrue(d1 instanceof PublicCloneable);
}
 
Example #24
Source File: StackedAreaRendererTest.java    From openstock with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Check that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    StackedAreaRenderer r1 = new StackedAreaRenderer();
    assertTrue(r1 instanceof PublicCloneable);
}
 
Example #25
Source File: LineRenderer3DTest.java    From openstock with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Check that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    LineRenderer3D r1 = new LineRenderer3D();
    assertTrue(r1 instanceof PublicCloneable);
}
 
Example #26
Source File: DefaultXYDatasetTest.java    From openstock with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Verify that this class implements {@link PublicCloneable}.
 */
@Test
public void testPublicCloneable() {
    DefaultXYDataset d1 = new DefaultXYDataset();
    assertTrue(d1 instanceof PublicCloneable);
}
 
Example #27
Source File: DefaultCategoryDatasetTest.java    From openstock with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Check that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    DefaultCategoryDataset d = new DefaultCategoryDataset();
    assertTrue(d instanceof PublicCloneable);
}
 
Example #28
Source File: BubbleXYItemLabelGeneratorTest.java    From openstock with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Check to ensure that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    BubbleXYItemLabelGenerator g1 = new BubbleXYItemLabelGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #29
Source File: CustomCategoryURLGeneratorTest.java    From openstock with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Checks that the class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    CustomCategoryURLGenerator g1 = new CustomCategoryURLGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #30
Source File: GanttRendererTest.java    From openstock with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Check that this class implements PublicCloneable.
 */
@Test
public void testPublicCloneable() {
    GanttRenderer r1 = new GanttRenderer();
    assertTrue(r1 instanceof PublicCloneable);
}