List of usage examples for org.jfree.ui RectangleEdge opposite
public static RectangleEdge opposite(final RectangleEdge edge)
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; }