Package org.jfree.chart.plot.dial

Examples of org.jfree.chart.plot.dial.DialPlot.addScale()


    scale.setTickRadius(0.88);
    scale.setTickLabelOffset(0.07);
    Font f =new Font("Arial",Font.PLAIN,11);
    scale.setTickLabelFont(f);
    //scale.setMajorTickIncrement(25.0);
    plot.addScale(0, scale);

    DialPointer needle = new DialPointer.Pin();
    needle.setRadius(0.82);
    plot.addLayer(needle);
   
View Full Code Here


    logger.debug("Setted the number of MinorTickLines between every MajorTickline");
    scale.setTickRadius(0.88);
    scale.setTickLabelOffset(0.15);
    Font f =new Font("Arial",Font.PLAIN,11);
    scale.setTickLabelFont(f);
    plot.addScale(0, scale);
    plot.addPointer(new DialPointer.Pin());
   
    DialCap cap = new DialCap();
    plot.setCap(cap);
View Full Code Here

    //set tick label style
    Font tickLabelsFont = new Font(labelsTickStyle.getFontName(), Font.PLAIN, labelsTickStyle.getSize());
    scale.setTickLabelFont(tickLabelsFont);
    scale.setTickLabelPaint(labelsTickStyle.getColor());
    //scale.setMajorTickIncrement(25.0);
    plot.addScale(0, scale);

    DialPointer needle = new DialPointer.Pin();
    needle.setRadius(0.82);
    plot.addLayer(needle);
    DialValueIndicator dvi = new DialValueIndicator(0);
View Full Code Here

    scale.setTickLabelOffset(0.15);
    //set tick label style
    Font tickLabelsFont = new Font(labelsTickStyle.getFontName(), Font.PLAIN, labelsTickStyle.getSize());
    scale.setTickLabelFont(tickLabelsFont);
    scale.setTickLabelPaint(labelsTickStyle.getColor());
    plot.addScale(0, scale);

    plot.addPointer(new DialPointer.Pin());

    DialCap cap = new DialCap();
    plot.setCap(cap);
View Full Code Here

        StandardDialScale scale = new StandardDialScale();
        scale.setLowerBound(-20);
        scale.setUpperBound(40);
        scale.setTickLabelOffset(0.14);
        scale.setTickLabelFont(new Font("Dialog", Font.PLAIN, 10));
        plot.addScale(0, scale);

        DialPointer needle = new DialPointer.Pointer(0);
       
        plot.addLayer(needle);
       
View Full Code Here

        StandardDialScale scale = new StandardDialScale();
        scale.setLowerBound(0);
        scale.setUpperBound(50);
        scale.setTickLabelOffset(0.14);
        scale.setTickLabelFont(new Font("Dialog", Font.PLAIN, 10));
        plot.addScale(0, scale);

        DialPointer needle = new DialPointer.Pointer(0);

        plot.addLayer(needle);
View Full Code Here

        StandardDialScale scale = new StandardDialScale();
        scale.setLowerBound(0);
        scale.setUpperBound(100);
        scale.setTickLabelOffset(0.14);
        scale.setTickLabelFont(new Font("Dialog", Font.PLAIN, 10));
        plot.addScale(0, scale);
        plot.setInsets( RectangleInsets.ZERO_INSETS);

        DialPointer needle = new DialPointer.Pointer(0);

        plot.addLayer(needle);
View Full Code Here

     * Check the notification event mechanism for the dial scales.
     */
    public void testScaleListener() {
        DialPlot p = new DialPlot();
        StandardDialScale s1 = new StandardDialScale();
        p.addScale(0, s1);
        p.addChangeListener(this);
        this.lastEvent = null;
        s1.setStartAngle(22.0);
        assertNotNull(this.lastEvent);
       
View Full Code Here

        this.lastEvent = null;
        s1.setStartAngle(22.0);
        assertNotNull(this.lastEvent);
       
        StandardDialScale s2 = new StandardDialScale();
        p.addScale(0, s2);
        this.lastEvent = null;
        s1.setStartAngle(33.0);
        assertNull(this.lastEvent);
        s2.setStartAngle(33.0);
        assertNotNull(this.lastEvent);
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.