Example usage for org.jfree.ui RectangleEdge opposite

List of usage examples for org.jfree.ui RectangleEdge opposite

Introduction

In this page you can find the example usage for org.jfree.ui RectangleEdge opposite.

Prototype

public static RectangleEdge opposite(final RectangleEdge edge) 

Source Link

Document

Returns the opposite edge.

Usage

From source file:ucar.unidata.idv.control.chart.MyXYPlot.java

/**
 * Returns the edge for a domain axis.//from   ww  w  .j  av a 2 s  . c  o m
 *
 * @param index  the axis index.
 *
 * @return The edge.
 */
public RectangleEdge getDomainAxisEdge(int index) {
    AxisLocation location = getDomainAxisLocation(index);
    RectangleEdge result = Plot.resolveDomainAxisLocation(location, this.orientation);
    if (result == null) {
        result = RectangleEdge.opposite(getDomainAxisEdge());
    }
    return result;
}

From source file:ucar.unidata.idv.control.chart.MyXYPlot.java

/**
 * Returns the edge for a range axis./*from w w w.  j  ava  2  s .c  o  m*/
 *
 * @param index  the axis index.
 *
 * @return The edge.
 */
public RectangleEdge getRangeAxisEdge(int index) {
    AxisLocation location = getRangeAxisLocation(index);
    RectangleEdge result = Plot.resolveRangeAxisLocation(location, this.orientation);
    if (result == null) {
        result = RectangleEdge.opposite(getRangeAxisEdge());
    }
    return result;
}