Package org.jfree.ui

Examples of org.jfree.ui.StandardGradientPaintTransformer


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

        final StandardGradientPaintTransformer t1 = new StandardGradientPaintTransformer();
        StandardGradientPaintTransformer t2 = null;

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


        this.drawBarOutline = false;
        this.maximumBarWidth = 1.0;
            // 100 percent, so it will not apply unless changed
        this.positiveItemLabelPositionFallback = null;
        this.negativeItemLabelPositionFallback = null;
        this.gradientPaintTransformer = new StandardGradientPaintTransformer();
        this.minimumBarLength = 0.0;
        setBaseLegendShape(new Rectangle2D.Double(-4.0, -4.0, 8.0, 8.0));
        this.barPainter = getDefaultBarPainter();
        this.shadowsVisible = getDefaultShadowsVisible();
        this.shadowPaint = Color.gray;
View Full Code Here

        }
        this.firstBarPaint = firstBarPaint;
        this.lastBarPaint = lastBarPaint;
        this.positiveBarPaint = positiveBarPaint;
        this.negativeBarPaint = negativeBarPaint;
        setGradientPaintTransformer(new StandardGradientPaintTransformer(
                GradientPaintTransformType.CENTER_VERTICAL));
        setMinimumBarLength(1.0);
    }
View Full Code Here

    public XYBarRenderer(double margin) {
        super();
        this.margin = margin;
        this.base = 0.0;
        this.useYInterval = false;
        this.gradientPaintTransformer = new StandardGradientPaintTransformer();
        this.drawBarOutline = false;
        this.legendBar = new Rectangle2D.Double(-3.0, -5.0, 6.0, 10.0);
        this.barPainter = getDefaultBarPainter();
        this.shadowsVisible = getDefaultShadowsVisible();
        this.shadowXOffset = 4.0;
View Full Code Here

    /**
     * Test that the equals() method distinguishes all fields.
     */
    public void testEquals() {
        StandardGradientPaintTransformer t1 = new StandardGradientPaintTransformer();
        StandardGradientPaintTransformer t2 = new StandardGradientPaintTransformer();
        assertTrue(t1.equals(t2));
        assertTrue(t2.equals(t1));
       
        t1 = new StandardGradientPaintTransformer(GradientPaintTransformType.CENTER_VERTICAL);
        assertFalse(t1.equals(t2));
        t2 = new StandardGradientPaintTransformer(GradientPaintTransformType.CENTER_VERTICAL);
        assertTrue(t1.equals(t2));
    }
View Full Code Here

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

        final StandardGradientPaintTransformer t1 = new StandardGradientPaintTransformer();
        StandardGradientPaintTransformer t2 = null;

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

    /**
     * Test that the equals() method distinguishes all fields.
     */
    public void testEquals() {
        StandardGradientPaintTransformer t1 = new StandardGradientPaintTransformer();
        StandardGradientPaintTransformer t2 = new StandardGradientPaintTransformer();
        assertTrue(t1.equals(t2));
        assertTrue(t2.equals(t1));
       
        t1 = new StandardGradientPaintTransformer(GradientPaintTransformType.CENTER_VERTICAL);
        assertFalse(t1.equals(t2));
        t2 = new StandardGradientPaintTransformer(GradientPaintTransformType.CENTER_VERTICAL);
        assertTrue(t1.equals(t2));
    }
View Full Code Here

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

        StandardGradientPaintTransformer t1 = new StandardGradientPaintTransformer();
        StandardGradientPaintTransformer t2 = null;

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

                new Color(255, 255, 255), new Point(),
                new Color(170, 170, 220));
       
        DialBackground db = new DialBackground(gp);
       
        db.setGradientPaintTransformer(new StandardGradientPaintTransformer(
                GradientPaintTransformType.CENTER_HORIZONTAL));
        plot.setBackground(db);
       
       
        StandardDialScale scale = new StandardDialScale();
View Full Code Here

                new Color(255, 255, 255), new Point(),
                new Color(170, 170, 220));

        DialBackground db = new DialBackground(gp);

        db.setGradientPaintTransformer(new StandardGradientPaintTransformer(
                GradientPaintTransformType.CENTER_HORIZONTAL));
        plot.setBackground(db);


        StandardDialScale scale = new StandardDialScale();
View Full Code Here

TOP

Related Classes of org.jfree.ui.StandardGradientPaintTransformer

Copyright © 2018 www.massapicom. 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.