Examples of Spacer


Examples of org.jfree.ui.Spacer

     *                     not permitted).
     * @param dateFormat  the date formatter (<code>null</code> not permitted).
     */
    public PeriodAxisLabelInfo(Class periodClass, String dateFormat) {
        this(
            periodClass, dateFormat, new Spacer(Spacer.ABSOLUTE, 2, 2, 2, 2),
            new Font("SansSerif", Font.PLAIN, 10), Color.black,
            true, new BasicStroke(0.5f), Color.gray
        );
    }
View Full Code Here

Examples of org.jfree.ui.Spacer

        assertFalse(plot1.equals(plot2));
        plot2.setOrientation(PlotOrientation.HORIZONTAL);
        assertTrue(plot1.equals(plot2));
       
        // axisOffset...
        plot1.setAxisOffset(new Spacer(Spacer.ABSOLUTE, 0.05, 0.05, 0.05, 0.05));
        assertFalse(plot1.equals(plot2));
        plot2.setAxisOffset(new Spacer(Spacer.ABSOLUTE, 0.05, 0.05, 0.05, 0.05));
        assertTrue(plot1.equals(plot2));

        // domainAxis...
        plot1.setDomainAxis(new NumberAxis("Domain Axis"));
        assertFalse(plot1.equals(plot2));
View Full Code Here

Examples of org.jfree.ui.Spacer

   */
  public ThermometerPlot(ValueDataset dataset) {

    super();

    this.padding = new Spacer(Spacer.RELATIVE, 0.05, 0.05, 0.05, 0.05);
    this.dataset = dataset;
    if (dataset != null) {
      dataset.addChangeListener(this);
    }
    NumberAxis axis = new NumberAxis(null);
View Full Code Here

Examples of org.jfree.ui.Spacer

        super();

        this.orientation = PlotOrientation.VERTICAL;
        this.weight = 1// only relevant when this is a subplot
        this.axisOffset = new Spacer(Spacer.ABSOLUTE, 0.0, 0.0, 0.0, 0.0);

        // allocate storage for datasets, axes and renderers (all optional)
        this.domainAxes = new ObjectList();
        this.domainAxisLocations = new ObjectList();
        this.foregroundDomainMarkers = new HashMap();
View Full Code Here

Examples of org.jfree.ui.Spacer

       
        Class c1 = Day.class;
        Class c2 = Month.class;
        String df1 = "d";
        String df2 = "MMM";
        Spacer sp1 = new Spacer(Spacer.ABSOLUTE, 1, 1, 1, 1);
        Spacer sp2 = new Spacer(Spacer.ABSOLUTE, 2, 2, 2, 2);
        Font lf1 = new Font("SansSerif", Font.PLAIN, 10);
        Font lf2 = new Font("SansSerif", Font.BOLD, 9);
        Paint lp1 = Color.black;
        Paint lp2 = Color.blue;
        boolean b1 = true;
View Full Code Here

Examples of org.jfree.ui.Spacer

     * @param height  the height (ignored).
     *
     * @return the preferred width of the title.
     */
    public float getPreferredWidth(Graphics2D g2, float height) {
        Spacer spacer = getSpacer();
        float result = (float) spacer.getAdjustedWidth(this.width);
        return result;

    }
View Full Code Here

Examples of org.jfree.ui.Spacer

     * @param width  the width (ignored).
     *
     * @return the preferred height of the title.
     */
    public float getPreferredHeight(Graphics2D g2, float width) {
        Spacer spacer = getSpacer();
        float result = (float) spacer.getAdjustedHeight(this.height);
        return result;
    }
View Full Code Here

Examples of org.jfree.ui.Spacer

        double topSpace = 0.0;
        double bottomSpace = 0.0;
        double leftSpace = 0.0;
        double rightSpace = 0.0;

        Spacer spacer = getSpacer();
        topSpace = spacer.getTopSpace(this.height);
        bottomSpace = spacer.getBottomSpace(this.height);
        leftSpace = spacer.getLeftSpace(this.width);
        rightSpace = spacer.getRightSpace(this.width);

        if (getPosition() == RectangleEdge.TOP) {
            startY = chartArea.getY() + topSpace;
        }
        else {
View Full Code Here

Examples of org.jfree.ui.Spacer

        double topSpace = 0.0;
        double bottomSpace = 0.0;
        double leftSpace = 0.0;
        double rightSpace = 0.0;

        Spacer spacer = getSpacer();
        if (spacer != null) {
            topSpace = spacer.getTopSpace(this.height);
            bottomSpace = spacer.getBottomSpace(this.height);
            leftSpace = spacer.getLeftSpace(this.width);
            rightSpace = spacer.getRightSpace(this.width);
        }

        if (getPosition() == RectangleEdge.LEFT) {
            startX = chartArea.getX() + leftSpace;
        }
View Full Code Here

Examples of org.jfree.ui.Spacer

        assertFalse(plot1.equals(plot2));
        plot2.setOrientation(PlotOrientation.HORIZONTAL);
        assertTrue(plot1.equals(plot2));
       
        // axisOffset...
        plot1.setAxisOffset(new Spacer(Spacer.ABSOLUTE, 0.05, 0.05, 0.05, 0.05));
        assertFalse(plot1.equals(plot2));
        plot2.setAxisOffset(new Spacer(Spacer.ABSOLUTE, 0.05, 0.05, 0.05, 0.05));
        assertTrue(plot1.equals(plot2));

        // domainAxis - no longer a separate field but test anyway...
        plot1.setDomainAxis(new CategoryAxis("Category Axis"));
        assertFalse(plot1.equals(plot2));
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.