Examples of AxisLocation


Examples of org.jfree.chart.axis.AxisLocation

     * @return The location.
     *
     * @see #setDomainAxisLocation(int, AxisLocation)
     */
    public AxisLocation getDomainAxisLocation(int index) {
        AxisLocation result = null;
        if (index < this.domainAxisLocations.size()) {
            result = (AxisLocation) this.domainAxisLocations.get(index);
        }
        if (result == null) {
            result = AxisLocation.getOpposite(getDomainAxisLocation(0));
View Full Code Here

Examples of org.jfree.chart.axis.AxisLocation

     *
     * @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));
View Full Code Here

Examples of org.jfree.chart.axis.AxisLocation

     * @return The location.
     *
     * @see #setRangeAxisLocation(int, AxisLocation)
     */
    public AxisLocation getRangeAxisLocation(int index) {
        AxisLocation result = null;
        if (index < this.rangeAxisLocations.size()) {
            result = (AxisLocation) this.rangeAxisLocations.get(index);
        }
        if (result == null) {
            result = AxisLocation.getOpposite(getRangeAxisLocation(0));
View Full Code Here

Examples of org.jfree.chart.axis.AxisLocation

     * @param index  the axis index.
     *
     * @return The edge.
     */
    public RectangleEdge getRangeAxisEdge(int index) {
        AxisLocation location = getRangeAxisLocation(index);
        return Plot.resolveRangeAxisLocation(location, this.orientation);
    }
View Full Code Here

Examples of org.jfree.chart.axis.AxisLocation

    /**
     * Two objects that are equal are required to return the same hashCode.
     */
    public void testHashCode() {
        AxisLocation a1 = AxisLocation.TOP_OR_RIGHT;
        AxisLocation a2 = AxisLocation.TOP_OR_RIGHT;
        assertTrue(a1.equals(a2));
        int h1 = a1.hashCode();
        int h2 = a2.hashCode();
        assertEquals(h1, h2);
    }
View Full Code Here

Examples of org.jfree.chart.axis.AxisLocation

    /**
     * Serialize an instance, restore it, and check for equality.
     */
    public void testSerialization() {
        AxisLocation location1 = AxisLocation.BOTTOM_OR_RIGHT;
        AxisLocation location2 = null;
        try {
            ByteArrayOutputStream buffer = new ByteArrayOutputStream();
            ObjectOutput out = new ObjectOutputStream(buffer);
            out.writeObject(location1);
            out.close();
View Full Code Here

Examples of org.jfree.chart.axis.AxisLocation

    *
    * @see #setDomainAxisLocation(int, AxisLocation)
    */
   public AxisLocation getDomainAxisLocation(int index)
   {
      AxisLocation result = null;
      if (index < this.domainAxisLocations.size())
      {
         result = (AxisLocation) this.domainAxisLocations.get(index);
      }
      if (result == null)
View Full Code Here

Examples of org.jfree.chart.axis.AxisLocation

    *
    * @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());
View Full Code Here

Examples of org.jfree.chart.axis.AxisLocation

    *
    * @see #setRangeAxisLocation(int, AxisLocation)
    */
   public AxisLocation getRangeAxisLocation(int index)
   {
      AxisLocation result = null;
      if (index < this.rangeAxisLocations.size())
      {
         result = (AxisLocation) this.rangeAxisLocations.get(index);
      }
      if (result == null)
View Full Code Here

Examples of org.jfree.chart.axis.AxisLocation

    * @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());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.