org.jfree.chart.util.PublicCloneable Java Examples

The following examples show how to use org.jfree.chart.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: XYPolygonAnnotationTests.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Checks that this class implements PublicCloneable.
 */
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 #2
Source File: XYLineAnnotationTests.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Checks that this class implements PublicCloneable.
 */
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 #3
Source File: XYBarDatasetTests.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Verify that this class implements {@link PublicCloneable}.
 */
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 #4
Source File: XYShapeAnnotationTests.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Checks that this class implements PublicCloneable.
 */
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 #5
Source File: CategoryLineAnnotationTests.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Checks that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    CategoryLineAnnotation a1 = new CategoryLineAnnotation(
            "Category 1", 1.0, "Category 2", 2.0, Color.red,
            new BasicStroke(1.0f));
    assertTrue(a1 instanceof PublicCloneable);
}
 
Example #6
Source File: CustomXYItemLabelGeneratorTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Check to ensure that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    CustomXYToolTipGenerator g1 = new CustomXYToolTipGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #7
Source File: CustomXYURLGeneratorTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Checks that the class implements PublicCloneable.
 */
public void testPublicCloneable() {
    CustomXYURLGenerator g1 = new CustomXYURLGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #8
Source File: CustomCategoryURLGeneratorTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Checks that the class implements PublicCloneable.
 */
public void testPublicCloneable() {
    CustomCategoryURLGenerator g1 = new CustomCategoryURLGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #9
Source File: StandardCategoryURLGeneratorTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Checks that the class does not implement PublicCloneable (the generator
 * is immutable, so cloning is not necessary).
 */
public void testPublicCloneable() {
    StandardCategoryURLGenerator g1 = new StandardCategoryURLGenerator();
    assertFalse(g1 instanceof PublicCloneable);
}
 
Example #10
Source File: XYPointerAnnotationTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Checks that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    XYPointerAnnotation a1 = new XYPointerAnnotation("Label", 10.0, 20.0,
            Math.PI);
    assertTrue(a1 instanceof PublicCloneable);
}
 
Example #11
Source File: StandardPieURLGeneratorTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Checks that the class does not implement PublicCloneable (the generator
 * is immutable).
 */
public void testPublicCloneable() {
    StandardPieURLGenerator g1 = new StandardPieURLGenerator(
            "index.html?", "cat");
    assertFalse(g1 instanceof PublicCloneable);
}
 
Example #12
Source File: StandardXYSeriesLabelGeneratorTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Check to ensure that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    StandardXYSeriesLabelGenerator g1
            = new StandardXYSeriesLabelGenerator("Series {0}");
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #13
Source File: StandardPieSectionLabelGeneratorTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Check to ensure that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    StandardPieSectionLabelGenerator g1
            = new StandardPieSectionLabelGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #14
Source File: HighLowItemLabelGeneratorTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Check to ensure that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    HighLowItemLabelGenerator g1 = new HighLowItemLabelGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #15
Source File: StandardCategoryItemLabelGeneratorTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Check to ensure that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    StandardCategoryItemLabelGenerator g1
            = new StandardCategoryItemLabelGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #16
Source File: IntervalCategoryItemLabelGeneratorTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Check to ensure that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    IntervalCategoryItemLabelGenerator g1
            = new IntervalCategoryItemLabelGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #17
Source File: StandardPieToolTipGeneratorTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Check to ensure that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    StandardPieToolTipGenerator g1 = new StandardPieToolTipGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #18
Source File: TimeSeriesURLGeneratorTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Checks that the class does not implement PublicCloneable (the generator
 * is immutable).
 */
public void testPublicCloneable() {
    TimeSeriesURLGenerator g1 = new TimeSeriesURLGenerator();
    assertFalse(g1 instanceof PublicCloneable);
}
 
Example #19
Source File: BarRenderer3DTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Check that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    BarRenderer3D r1 = new BarRenderer3D();
    assertTrue(r1 instanceof PublicCloneable);
}
 
Example #20
Source File: CustomPieURLGeneratorTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Checks that the class implements PublicCloneable.
 */
public void testPublicCloneable() {
    CustomPieURLGenerator g1 = new CustomPieURLGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}
 
Example #21
Source File: StandardXYURLGeneratorTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Checks that the class does not implement PublicCloneable (the generator
 * is immutable).
 */
public void testPublicCloneable() {
    StandardXYURLGenerator g1 = new StandardXYURLGenerator("index.html?");
    assertFalse(g1 instanceof PublicCloneable);
}
 
Example #22
Source File: LayeredBarRendererTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Check that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    LayeredBarRenderer r1 = new LayeredBarRenderer();
    assertTrue(r1 instanceof PublicCloneable);
}
 
Example #23
Source File: AreaRendererTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Check that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    AreaRenderer r1 = new AreaRenderer();
    assertTrue(r1 instanceof PublicCloneable);
}
 
Example #24
Source File: MinMaxCategoryRendererTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Check that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    MinMaxCategoryRenderer r1 = new MinMaxCategoryRenderer();
    assertTrue(r1 instanceof PublicCloneable);
}
 
Example #25
Source File: StandardBarPainterTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Confirm that cloning isn't implemented (it isn't required, because
 * instances of the class are immutable).
 */
public void testCloning() {
    StandardBarPainter p1 = new StandardBarPainter();
    assertFalse(p1 instanceof Cloneable);
    assertFalse(p1 instanceof PublicCloneable);
}
 
Example #26
Source File: IntervalBarRendererTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Check that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    IntervalBarRenderer r1 = new IntervalBarRenderer();
    assertTrue(r1 instanceof PublicCloneable);
}
 
Example #27
Source File: WaterfallBarRendererTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Check that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    WaterfallBarRenderer r1 = new WaterfallBarRenderer();
    assertTrue(r1 instanceof PublicCloneable);
}
 
Example #28
Source File: GradientBarPainterTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Confirm that cloning isn't implemented (it isn't required, because
 * instances of the class are immutable).
 */
public void testCloning() {
    GradientBarPainter p1 = new GradientBarPainter(0.1, 0.2, 0.3);
    assertFalse(p1 instanceof Cloneable);
    assertFalse(p1 instanceof PublicCloneable);
}
 
Example #29
Source File: ScatterRendererTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Check that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    ScatterRenderer r1 = new ScatterRenderer();
    assertTrue(r1 instanceof PublicCloneable);
}
 
Example #30
Source File: DefaultCategoryDatasetTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Check that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    DefaultCategoryDataset d = new DefaultCategoryDataset();
    assertTrue(d instanceof PublicCloneable);
}