Package org.jfree.ui

Examples of org.jfree.ui.TextAnchor


                    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


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

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

       
        Date d1 = new Date(0L);
        Date d2 = new Date(1L);
        String l1 = "Label 1";
        String l2 = "Label 2";
        TextAnchor ta1 = TextAnchor.CENTER;
        TextAnchor ta2 = TextAnchor.BASELINE_LEFT;
       
        DateTick t1 = new DateTick(d1, l1, ta1, ta1, Math.PI / 2.0);
        DateTick t2 = new DateTick(d1, l1, ta1, ta1, Math.PI / 2.0);
        assertTrue(t1.equals(t2));
       
View Full Code Here

                    tickLabel = formatter.format(tickDate);
                }
                else {
                    tickLabel = this.tickUnit.dateToString(tickDate);
                }
                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

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

     * @return The text anchor.
     *
     * @deprecated Use getSeriesPositiveItemLabelPosition()/getSeriesNegativeItemLabelPosition().
     */
    public TextAnchor getSeriesItemLabelTextAnchor(int series) {
        TextAnchor result = null;
        ItemLabelPosition p = getSeriesPositiveItemLabelPosition(series);
        if (p != null) {
            result = p.getTextAnchor();
        }
        return result;
View Full Code Here

     * @return The text anchor.
     *
     * @deprecated Use getBasePositiveItemLabelPosition()/getBaseNegativeItemLabelPosition().
     */
    public TextAnchor getBaseItemLabelTextAnchor() {
        TextAnchor result = null;
        ItemLabelPosition p = getBasePositiveItemLabelPosition();
        if (p != null) {
            result = p.getTextAnchor();
        }
        return result;
View Full Code Here

     * @return The rotation anchor.
     *
     * @deprecated Use getSeriesPositiveItemLabelPosition()/getSeriesNegativeItemLabelPosition().
     */
    public TextAnchor getSeriesItemLabelRotationAnchor(int series) {
        TextAnchor result = null;
        ItemLabelPosition p = this.getSeriesPositiveItemLabelPosition(series);
        if (p != null) {
            result = p.getRotationAnchor();
        }
        return result;
View Full Code Here

     * @return The anchor point.
     *
     * @deprecated Use getBasePositiveItemLabelPosition()/getBaseNegativeItemLabelPosition().
     */
    public TextAnchor getBaseItemLabelRotationAnchor() {
        TextAnchor result = null;
        ItemLabelPosition p = this.getBasePositiveItemLabelPosition();
        if (p != null) {
            result = p.getRotationAnchor();
        }
        return result;
View Full Code Here

                    return ticks;   //if past highest data value then exit method
                }

                if (currentTickValue >= lowerBoundVal - SMALL_LOG_VALUE) {
                    //tick value not below lowest data value
                    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.