Example usage for org.jfree.ui Align BOTTOM_RIGHT

List of usage examples for org.jfree.ui Align BOTTOM_RIGHT

Introduction

In this page you can find the example usage for org.jfree.ui Align BOTTOM_RIGHT.

Prototype

int BOTTOM_RIGHT

To view the source code for org.jfree.ui Align BOTTOM_RIGHT.

Click Source Link

Document

Bottom/Right alignment.

Usage

From source file:org.operamasks.faces.render.graph.ChartRenderer.java

private int getImageAlign(PositionType position) {
    if (position != null) {
        switch (position) {
        case Top:
            return Align.TOP;
        case Bottom:
            return Align.BOTTOM;
        case Left:
            return Align.LEFT;
        case Right:
            return Align.RIGHT;
        case TopLeft:
            return Align.TOP_LEFT;
        case LeftTop:
            return Align.TOP_LEFT;
        case TopRight:
            return Align.TOP_RIGHT;
        case RightTop:
            return Align.TOP_RIGHT;
        case BottomLeft:
            return Align.BOTTOM_LEFT;
        case LeftBottom:
            return Align.BOTTOM_LEFT;
        case BottomRight:
            return Align.BOTTOM_RIGHT;
        case RightBottom:
            return Align.BOTTOM_RIGHT;
        case Center:
            return Align.CENTER;
        case Stretch:
            return Align.FIT;
        }/*from w  w  w. j a  v  a 2 s  . c  o  m*/
    }
    return Align.FIT;
}