Java Code Examples for org.jfree.chart.util.RectangleEdge#opposite()

The following examples show how to use org.jfree.chart.util.RectangleEdge#opposite() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: 1_CategoryPlot.java    From SimFix with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the edge for a domain axis.
 *
 * @param index  the axis index.
 *
 * @return The edge (never <code>null</code>).
 */
public RectangleEdge getDomainAxisEdge(int index) {
    RectangleEdge result = null;
    AxisLocation location = getDomainAxisLocation(index);
    if (location != null) {
        result = Plot.resolveDomainAxisLocation(location, this.orientation);
    }
    else {
        result = RectangleEdge.opposite(getDomainAxisEdge(0));
    }
    return result;
}
 
Example 2
Source File: Cardumen_006_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Returns the edge for a range axis.
 *
 * @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(0));
    }
    return result;
}
 
Example 3
Source File: Cardumen_00143_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Returns the edge for a domain axis.
 *
 * @param index  the axis index.
 *
 * @return The edge (never <code>null</code>).
 */
public RectangleEdge getDomainAxisEdge(int index) {
    RectangleEdge result = null;
    AxisLocation location = getDomainAxisLocation(index);
    if (location != null) {
        result = Plot.resolveDomainAxisLocation(location, this.orientation);
    }
    else {
        result = RectangleEdge.opposite(getDomainAxisEdge(0));
    }
    return result;
}
 
Example 4
Source File: jMutRepair_0021_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Returns the edge for a domain axis.
 *
 * @param index  the axis index.
 *
 * @return The edge (never <code>null</code>).
 */
public RectangleEdge getDomainAxisEdge(int index) {
    RectangleEdge result = null;
    AxisLocation location = getDomainAxisLocation(index);
    if (location != null) {
        result = Plot.resolveDomainAxisLocation(location, this.orientation);
    }
    else {
        result = RectangleEdge.opposite(getDomainAxisEdge(0));
    }
    return result;
}
 
Example 5
Source File: JGenProg2017_0081_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Returns the edge for a domain axis.
 *
 * @param index  the axis index.
 *
 * @return The edge (never <code>null</code>).
 */
public RectangleEdge getDomainAxisEdge(int index) {
    RectangleEdge result = null;
    AxisLocation location = getDomainAxisLocation(index);
    if (location != null) {
        result = Plot.resolveDomainAxisLocation(location, this.orientation);
    }
    else {
        result = RectangleEdge.opposite(getDomainAxisEdge(0));
    }
    return result;
}
 
Example 6
Source File: Cardumen_009_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Returns the edge for a domain axis.
 *
 * @param index  the axis index.
 *
 * @return The edge.
 *
 * @see #getRangeAxisEdge(int)
 */
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;
}
 
Example 7
Source File: JGenProg2017_005_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Returns the edge for a range axis.
 *
 * @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(0));
    }
    return result;
}
 
Example 8
Source File: 1_CategoryPlot.java    From SimFix with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the edge for a range axis.
 *
 * @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(0));
    }
    return result;
}
 
Example 9
Source File: jKali_001_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Returns the edge for a domain axis.
 *
 * @param index  the axis index.
 *
 * @return The edge (never <code>null</code>).
 */
public RectangleEdge getDomainAxisEdge(int index) {
    RectangleEdge result = null;
    AxisLocation location = getDomainAxisLocation(index);
    if (location != null) {
        result = Plot.resolveDomainAxisLocation(location, this.orientation);
    }
    else {
        result = RectangleEdge.opposite(getDomainAxisEdge(0));
    }
    return result;
}
 
Example 10
Source File: jMutRepair_0021_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Returns the edge for a domain axis.
 *
 * @param index  the axis index.
 *
 * @return The edge (never <code>null</code>).
 */
public RectangleEdge getDomainAxisEdge(int index) {
    RectangleEdge result = null;
    AxisLocation location = getDomainAxisLocation(index);
    if (location != null) {
        result = Plot.resolveDomainAxisLocation(location, this.orientation);
    }
    else {
        result = RectangleEdge.opposite(getDomainAxisEdge(0));
    }
    return result;
}
 
Example 11
Source File: XYPlot.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the edge for a domain axis.
 *
 * @param index  the axis index.
 *
 * @return The edge.
 * 
 * @see #getRangeAxisEdge(int)
 */
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;
}
 
Example 12
Source File: Chart_14_CategoryPlot_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Returns the edge for a range axis.
 *
 * @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(0));
    }
    return result;
}
 
Example 13
Source File: jMutRepair_0030_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Returns the edge for a range axis.
 *
 * @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(0));
    }
    return result;
}
 
Example 14
Source File: 1_CategoryPlot.java    From SimFix with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the edge for a range axis.
 *
 * @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(0));
    }
    return result;
}
 
Example 15
Source File: Cardumen_00243_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Returns the edge for a domain axis.
 *
 * @param index  the axis index.
 *
 * @return The edge (never <code>null</code>).
 */
public RectangleEdge getDomainAxisEdge(int index) {
    RectangleEdge result = null;
    AxisLocation location = getDomainAxisLocation(index);
    if (location != null) {
        result = Plot.resolveDomainAxisLocation(location, this.orientation);
    }
    else {
        result = RectangleEdge.opposite(getDomainAxisEdge(0));
    }
    return result;
}
 
Example 16
Source File: jMutRepair_0030_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Returns the edge for a domain axis.
 *
 * @param index  the axis index.
 *
 * @return The edge (never <code>null</code>).
 */
public RectangleEdge getDomainAxisEdge(int index) {
    RectangleEdge result = null;
    AxisLocation location = getDomainAxisLocation(index);
    if (location != null) {
        result = Plot.resolveDomainAxisLocation(location, this.orientation);
    }
    else {
        result = RectangleEdge.opposite(getDomainAxisEdge(0));
    }
    return result;
}
 
Example 17
Source File: Cardumen_00243_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Returns the edge for a domain axis.
 *
 * @param index  the axis index.
 *
 * @return The edge (never <code>null</code>).
 */
public RectangleEdge getDomainAxisEdge(int index) {
    RectangleEdge result = null;
    AxisLocation location = getDomainAxisLocation(index);
    if (location != null) {
        result = Plot.resolveDomainAxisLocation(location, this.orientation);
    }
    else {
        result = RectangleEdge.opposite(getDomainAxisEdge(0));
    }
    return result;
}
 
Example 18
Source File: Cardumen_00243_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Returns the edge for a range axis.
 *
 * @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(0));
    }
    return result;
}
 
Example 19
Source File: Cardumen_009_s.java    From coming with MIT License 3 votes vote down vote up
/**
 * Returns the edge for a range axis.
 *
 * @param index  the axis index.
 *
 * @return The edge.
 *
 * @see #getRangeAxisLocation(int)
 * @see #getOrientation()
 */
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;
}
 
Example 20
Source File: Cardumen_0082_s.java    From coming with MIT License 3 votes vote down vote up
/**
 * Returns the edge for a range axis.
 *
 * @param index  the axis index.
 *
 * @return The edge.
 *
 * @see #getRangeAxisLocation(int)
 * @see #getOrientation()
 */
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;
}