Package org.jfree.chart.axis

Examples of org.jfree.chart.axis.Tick


         Font font = getTickLabelFont();
         g2.setFont(font);
         double maxHeight = 0.0;
         Iterator iterator = ticks.iterator();
         while (iterator.hasNext()) {
            Tick tick = (Tick) iterator.next();
            Rectangle2D labelBounds = null;
            if (tick.getText() != null) {
               labelBounds = TextUtilities.calculateRotatedStringBounds(tick.getText(), g2, 0, 0, TextAnchor.TOP_LEFT, TICK_LABEL_ANGLE, TextAnchor.TOP_LEFT).getBounds2D();
            }
            if (labelBounds != null && labelBounds.getWidth()
                  + insets.getTop() + insets.getBottom() > maxHeight) {
               maxHeight = labelBounds.getWidth()
                     + insets.getTop() + insets.getBottom();
View Full Code Here


      protected double findMaximumTickLabelWidth(List ticks, Graphics2D g2, Rectangle2D drawArea, boolean vertical) {
         RectangleInsets insets = getTickLabelInsets();
         double maxWidth = 0.0;
         Iterator iterator = ticks.iterator();
         while (iterator.hasNext()) {
            Tick tick = (Tick) iterator.next();
            Rectangle2D labelBounds = null;
            if (tick.getText() != null) {
               labelBounds = TextUtilities.calculateRotatedStringBounds(tick.getText(), g2, 0, 0, TextAnchor.TOP_LEFT, TICK_LABEL_ANGLE, TextAnchor.TOP_LEFT).getBounds2D();
            }
            if (labelBounds != null
                  && labelBounds.getWidth() + insets.getLeft()
                  + insets.getRight() > maxWidth) {
               maxWidth = labelBounds.getWidth()
View Full Code Here

TOP

Related Classes of org.jfree.chart.axis.Tick

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.