Package org.jfree.ui

Examples of org.jfree.ui.TextAnchor


                    tickLabel = formatter.format(tickDate);
                }
                else {
                    tickLabel = this.tickUnit.dateToString(tickDate);
                }
                TextAnchor anchor = null;
                TextAnchor rotationAnchor = null;
                double angle = 0.0;
                if (isVerticalTickLabels()) {
                    anchor = TextAnchor.BOTTOM_CENTER;
                    rotationAnchor = TextAnchor.BOTTOM_CENTER;
                    if (edge == RectangleEdge.LEFT) {
View Full Code Here


            }
            else
            {
               tickLabel = getTickUnit().valueToString(currentTickValue);
            }
            TextAnchor anchor = null;
            TextAnchor rotationAnchor = null;
            double angle = 0.0;
            if (isVerticalTickLabels())
            {
               anchor = TextAnchor.CENTER_RIGHT;
               rotationAnchor = TextAnchor.CENTER_RIGHT;
View Full Code Here

            else
            {
               tickLabel = getTickUnit().valueToString(currentTickValue);
            }

            TextAnchor anchor = null;
            TextAnchor rotationAnchor = null;
            double angle = 0.0;
            if (isVerticalTickLabels())
            {
               if (edge == RectangleEdge.LEFT)
               {
View Full Code Here

      RegularTimePeriod p = this.labelInfo[band].createInstance(
              new Date(axisMin), this.timeZone, this.locale);
      Rectangle2D b = null;
      long lastXX = 0L;
      float y = (float) (state.getCursor());
      TextAnchor anchor = TextAnchor.TOP_CENTER;
      float yDelta = (float) b1.getHeight();
      if (edge == RectangleEdge.TOP)
      {
         anchor = TextAnchor.BOTTOM_CENTER;
         yDelta = -yDelta;
View Full Code Here

      protected List refreshTicksHorizontal(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge) {
         Range range = getRange();
         List ticks = new ArrayList();
         Font tickLabelFont = getTickLabelFont();
         g2.setFont(tickLabelFont);
         TextAnchor textAnchor;
         if (edge == RectangleEdge.TOP) {
            textAnchor = TextAnchor.BOTTOM_RIGHT;
         } else {
            textAnchor = TextAnchor.TOP_LEFT;
         }
View Full Code Here

        Range range = getRange();
        List ticks = new ArrayList();
        Font tickLabelFont = getTickLabelFont();
        g2.setFont(tickLabelFont);
        TextAnchor textAnchor;
        if (edge == RectangleEdge.TOP) {
            textAnchor = TextAnchor.BOTTOM_CENTER;
        }
        else {
            textAnchor = TextAnchor.TOP_CENTER;
View Full Code Here

        Range range = getRange();
        List ticks = new ArrayList();
        Font tickLabelFont = getTickLabelFont();
        g2.setFont(tickLabelFont);
        TextAnchor textAnchor;
        if (edge == RectangleEdge.RIGHT) {
            textAnchor = TextAnchor.CENTER_LEFT;
        }
        else {
            textAnchor = TextAnchor.CENTER_RIGHT;
View Full Code Here

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

        final TextAnchor a1 = TextAnchor.BASELINE_CENTER;
        TextAnchor a2 = null;

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

        RegularTimePeriod p = this.labelInfo[band].createInstance(
                new Date(axisMin), this.timeZone, this.locale);
        Rectangle2D b = null;
        long lastXX = 0L;
        float y = (float) (state.getCursor());
        TextAnchor anchor = TextAnchor.TOP_CENTER;
        float yDelta = (float) b1.getHeight();
        if (edge == RectangleEdge.TOP) {
            anchor = TextAnchor.BOTTOM_CENTER;
            yDelta = -yDelta;
        }
View Full Code Here

                    tickLabel = formatter.format(currentTickValue);
                }
                else {
                    tickLabel = getTickUnit().valueToString(currentTickValue);
                }
                TextAnchor anchor = null;
                TextAnchor rotationAnchor = null;
                double angle = 0.0;
                if (isVerticalTickLabels()) {
                    anchor = TextAnchor.CENTER_RIGHT;
                    rotationAnchor = TextAnchor.CENTER_RIGHT;
                    if (edge == RectangleEdge.TOP) {
View Full Code Here

TOP

Related Classes of org.jfree.ui.TextAnchor

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.