Examples of PaintList


Examples of org.jfree.util.PaintList

      this.seriesVisibleInLegend = null;
      this.seriesVisibleInLegendList = new BooleanList();
      this.baseSeriesVisibleInLegend = true;

      this.paint = null;
      this.paintList = new PaintList();
      this.basePaint = DEFAULT_PAINT;
      this.autoPopulateSeriesPaint = true;

      this.fillPaint = null;
      this.fillPaintList = new PaintList();
      this.baseFillPaint = Color.white;
      this.autoPopulateSeriesFillPaint = false;

      this.outlinePaint = null;
      this.outlinePaintList = new PaintList();
      this.baseOutlinePaint = DEFAULT_OUTLINE_PAINT;
      this.autoPopulateSeriesOutlinePaint = false;

      this.stroke = null;
      this.strokeList = new StrokeList();
      this.baseStroke = DEFAULT_STROKE;
      this.autoPopulateSeriesStroke = true;

      this.outlineStroke = null;
      this.outlineStrokeList = new StrokeList();
      this.baseOutlineStroke = DEFAULT_OUTLINE_STROKE;
      this.autoPopulateSeriesOutlineStroke = false;

      this.shape = null;
      this.shapeList = new ShapeList();
      this.baseShape = DEFAULT_SHAPE;
      this.autoPopulateSeriesShape = true;

      this.itemLabelsVisible = null;
      this.itemLabelsVisibleList = new BooleanList();
      this.baseItemLabelsVisible = Boolean.FALSE;

      this.itemLabelFont = null;
      this.itemLabelFontList = new ObjectList();
      this.baseItemLabelFont = new Font("SansSerif", Font.PLAIN, 10);

      this.itemLabelPaint = null;
      this.itemLabelPaintList = new PaintList();
      this.baseItemLabelPaint = Color.black;

      this.positiveItemLabelPosition = null;
      this.positiveItemLabelPositionList = new ObjectList();
      this.basePositiveItemLabelPosition = new ItemLabelPosition(
              ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER);

      this.negativeItemLabelPosition = null;
      this.negativeItemLabelPositionList = new ObjectList();
      this.baseNegativeItemLabelPosition = new ItemLabelPosition(
              ItemLabelAnchor.OUTSIDE6, TextAnchor.TOP_CENTER);

      this.createEntities = null;
      this.createEntitiesList = new BooleanList();
      this.baseCreateEntities = true;

      this.defaultEntityRadius = 3;

      this.legendShapeList = new ShapeList();
      this.baseLegendShape = null;

      this.treatLegendShapeAsLine = false;

      this.legendTextFont = new ObjectList();
      this.baseLegendTextFont = null;

      this.legendTextPaint = new PaintList();
      this.baseLegendTextPaint = null;

      this.listenerList = new EventListenerList();

   }
View Full Code Here

Examples of org.jfree.util.PaintList

    /**
     * Tests the equals() method.
     */
    public void testEquals() {
        final PaintList l1 = new PaintList();
        l1.setPaint(0, Color.red);
        l1.setPaint(1, Color.blue);
        l1.setPaint(2, null);
       
        final PaintList l2 = new PaintList();
        l2.setPaint(0, Color.red);
        l2.setPaint(1, Color.blue);
        l2.setPaint(2, null);
       
        assertTrue(l1.equals(l2));
        assertTrue(l2.equals(l2));

        assertFalse(l1.equals("XYZ"));
    }
View Full Code Here

Examples of org.jfree.util.PaintList

    /**
     * Tests the equals method.
     */
    public void testEquals2() {
        // check two separate (but equal) colors
        final PaintList l1 = new PaintList();
        final Color color1 = new Color(200, 200, 200);
        l1.setPaint(0, color1);
        final PaintList l2 = new PaintList();
        final Color color2 = new Color(200, 200, 200);
        l2.setPaint(0, color2);
        assertEquals(l1, l2);
    }
View Full Code Here

Examples of org.jfree.util.PaintList

     * Tests the equals() method when the list contains a GradientPaint
     * instance.
     */
    public void testEquals3() {
        // check two separate (but equal) colors
        PaintList l1 = new PaintList();
        Paint p1 = new GradientPaint(1.0f, 2.0f, Color.red,
                3.0f, 4.0f, Color.blue);
        l1.setPaint(0, p1);
        PaintList l2 = new PaintList();
        Paint p2 = new GradientPaint(1.0f, 2.0f, Color.red,
                3.0f, 4.0f, Color.blue);
        l2.setPaint(0, p2);
        assertEquals(l1, l2);
    }
View Full Code Here

Examples of org.jfree.util.PaintList

    /**
     * Confirm that cloning works.
     */
    public void testCloning() {
       
        final PaintList l1 = new PaintList();
        l1.setPaint(0, Color.red);
        l1.setPaint(1, Color.blue);
        l1.setPaint(2, null);
       
        PaintList l2 = null;
        try {
            l2 = (PaintList) l1.clone();
        }
        catch (CloneNotSupportedException e) {
            l2 = l1;  // silences Eclipse warning
            fail("PaintListTests.testCloning: failed to clone.");
        }
        assertTrue(l1 != l2);
        assertTrue(l1.getClass() == l2.getClass());
        assertTrue(l1.equals(l2));
       
        l2.setPaint(0, Color.green);
        assertFalse(l1.equals(l2));
       
    }
View Full Code Here

Examples of org.jfree.util.PaintList

    /**
     * Serialize an instance, restore it, and check for equality.
     */
    public void testSerialization() {

        final PaintList l1 = new PaintList();
        l1.setPaint(0, Color.red);
        l1.setPaint(1, Color.blue);
        l1.setPaint(2, null);
       
        PaintList l2 = null;

        try {
            final ByteArrayOutputStream buffer = new ByteArrayOutputStream();
            final ObjectOutput out = new ObjectOutputStream(buffer);
            out.writeObject(l1);
View Full Code Here

Examples of org.jfree.util.PaintList

        this.startAngle = DEFAULT_START_ANGLE;
        this.direction = Rotation.CLOCKWISE;
        this.maxValue = DEFAULT_MAX_VALUE;

        this.seriesPaint = null;
        this.seriesPaintList = new PaintList();
        this.baseSeriesPaint = null;

        this.seriesOutlinePaint = null;
        this.seriesOutlinePaintList = new PaintList();
        this.baseSeriesOutlinePaint = DEFAULT_OUTLINE_PAINT;

        this.seriesOutlineStroke = null;
        this.seriesOutlineStrokeList = new StrokeList();
        this.baseSeriesOutlineStroke = DEFAULT_OUTLINE_STROKE;
View Full Code Here

Examples of org.jfree.util.PaintList

        this.seriesVisibleInLegend = null;
        this.seriesVisibleInLegendList = new BooleanList();
        this.baseSeriesVisibleInLegend = true;

        this.paint = null;
        this.paintList = new PaintList();
        this.basePaint = DEFAULT_PAINT;
        this.autoPopulateSeriesPaint = true;

        this.fillPaint = null;
        this.fillPaintList = new PaintList();
        this.baseFillPaint = Color.white;
        this.autoPopulateSeriesFillPaint = false;

        this.outlinePaint = null;
        this.outlinePaintList = new PaintList();
        this.baseOutlinePaint = DEFAULT_OUTLINE_PAINT;
        this.autoPopulateSeriesOutlinePaint = false;

        this.stroke = null;
        this.strokeList = new StrokeList();
        this.baseStroke = DEFAULT_STROKE;
        this.autoPopulateSeriesStroke = true;

        this.outlineStroke = null;
        this.outlineStrokeList = new StrokeList();
        this.baseOutlineStroke = DEFAULT_OUTLINE_STROKE;
        this.autoPopulateSeriesOutlineStroke = false;

        this.shape = null;
        this.shapeList = new ShapeList();
        this.baseShape = DEFAULT_SHAPE;
        this.autoPopulateSeriesShape = true;

        this.itemLabelsVisible = null;
        this.itemLabelsVisibleList = new BooleanList();
        this.baseItemLabelsVisible = Boolean.FALSE;

        this.itemLabelFont = null;
        this.itemLabelFontList = new ObjectList();
        this.baseItemLabelFont = new Font("SansSerif", Font.PLAIN, 10);

        this.itemLabelPaint = null;
        this.itemLabelPaintList = new PaintList();
        this.baseItemLabelPaint = Color.black;

        this.positiveItemLabelPosition = null;
        this.positiveItemLabelPositionList = new ObjectList();
        this.basePositiveItemLabelPosition = new ItemLabelPosition(
                ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER);

        this.negativeItemLabelPosition = null;
        this.negativeItemLabelPositionList = new ObjectList();
        this.baseNegativeItemLabelPosition = new ItemLabelPosition(
                ItemLabelAnchor.OUTSIDE6, TextAnchor.TOP_CENTER);

        this.createEntities = null;
        this.createEntitiesList = new BooleanList();
        this.baseCreateEntities = true;

        this.defaultEntityRadius = 3;

        this.legendShapeList = new ShapeList();
        this.baseLegendShape = null;

        this.treatLegendShapeAsLine = false;

        this.legendTextFont = new ObjectList();
        this.baseLegendTextFont = null;

        this.legendTextPaint = new PaintList();
        this.baseLegendTextPaint = null;

        this.listenerList = new EventListenerList();

    }
View Full Code Here

Examples of org.jfree.util.PaintList

        this.seriesVisibleInLegend = null;
        this.seriesVisibleInLegendList = new BooleanList();
        this.baseSeriesVisibleInLegend = true;

        this.paint = null;
        this.paintList = new PaintList();
        this.basePaint = DEFAULT_PAINT;
        this.autoPopulateSeriesPaint = true;

        this.fillPaint = null;
        this.fillPaintList = new PaintList();
        this.baseFillPaint = Color.white;
        this.autoPopulateSeriesFillPaint = false;

        this.outlinePaint = null;
        this.outlinePaintList = new PaintList();
        this.baseOutlinePaint = DEFAULT_OUTLINE_PAINT;
        this.autoPopulateSeriesOutlinePaint = false;

        this.stroke = null;
        this.strokeList = new StrokeList();
        this.baseStroke = DEFAULT_STROKE;
        this.autoPopulateSeriesStroke = true;

        this.outlineStroke = null;
        this.outlineStrokeList = new StrokeList();
        this.baseOutlineStroke = DEFAULT_OUTLINE_STROKE;
        this.autoPopulateSeriesOutlineStroke = false;

        this.shape = null;
        this.shapeList = new ShapeList();
        this.baseShape = DEFAULT_SHAPE;
        this.autoPopulateSeriesShape = true;

        this.itemLabelsVisible = null;
        this.itemLabelsVisibleList = new BooleanList();
        this.baseItemLabelsVisible = Boolean.FALSE;

        this.itemLabelFont = null;
        this.itemLabelFontList = new ObjectList();
        this.baseItemLabelFont = new Font("SansSerif", Font.PLAIN, 10);

        this.itemLabelPaint = null;
        this.itemLabelPaintList = new PaintList();
        this.baseItemLabelPaint = Color.black;

        this.positiveItemLabelPosition = null;
        this.positiveItemLabelPositionList = new ObjectList();
        this.basePositiveItemLabelPosition = new ItemLabelPosition(
                ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER);

        this.negativeItemLabelPosition = null;
        this.negativeItemLabelPositionList = new ObjectList();
        this.baseNegativeItemLabelPosition = new ItemLabelPosition(
                ItemLabelAnchor.OUTSIDE6, TextAnchor.TOP_CENTER);

        this.createEntities = null;
        this.createEntitiesList = new BooleanList();
        this.baseCreateEntities = true;

        this.defaultEntityRadius = 3;

        this.legendShapeList = new ShapeList();
        this.baseLegendShape = null;

        this.treatLegendShapeAsLine = false;

        this.legendTextFont = new ObjectList();
        this.baseLegendTextFont = null;

        this.legendTextPaint = new PaintList();
        this.baseLegendTextPaint = null;

        this.listenerList = new EventListenerList();

    }
View Full Code Here

Examples of org.jfree.util.PaintList

        this.startAngle = DEFAULT_START_ANGLE;
        this.direction = Rotation.CLOCKWISE;
        this.maxValue = DEFAULT_MAX_VALUE;

        this.seriesPaint = null;
        this.seriesPaintList = new PaintList();
        this.baseSeriesPaint = null;

        this.seriesOutlinePaint = null;
        this.seriesOutlinePaintList = new PaintList();
        this.baseSeriesOutlinePaint = DEFAULT_OUTLINE_PAINT;

        this.seriesOutlineStroke = null;
        this.seriesOutlineStrokeList = new StrokeList();
        this.baseSeriesOutlineStroke = DEFAULT_OUTLINE_STROKE;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.