Package org.jfree.chart.entity

Examples of org.jfree.chart.entity.AxisEntity


            hotspot = new Rectangle2D.Double(cursor, dataArea.getY(),
                    state.getCursor() - cursor, dataArea.getHeight());
        }
        EntityCollection e = plotState.getOwner().getEntityCollection();
        if (e != null) {
            e.add(new AxisEntity(hotspot, this));
        }
    }
View Full Code Here


        ChartEntity entity = event.getEntity();
       
        if (entity instanceof AxisEntity) {
           
            chartPanel.setMouseZoomable(false, false);
            AxisEntity aEntity = (AxisEntity) entity;
            if (aEntity.getAxis().getLabel().equalsIgnoreCase("X")) {

                this.domainClicked = true;
                this.rangeClicked = false;
                this.plotClicked = false;
               
                /**
                 * switch modes when mouse moves.
                 * used for zoompan mode
                 */
                if (this.combinedMode == true) {
                    setCursor(new Cursor(Cursor.E_RESIZE_CURSOR));
                    this.currentMouseMode = MOUSEMODE.ZOOMPAN;

                }

            } else if (aEntity.getAxis().getLabel().equalsIgnoreCase("Y")) {

                this.rangeClicked = true;
                this.domainClicked = false;
                this.plotClicked = false;
                if (this.combinedMode == true) {
View Full Code Here

            hotspot = new Rectangle2D.Double(cursor, dataArea.getY(),
                    state.getCursor() - cursor, dataArea.getHeight());
        }
        EntityCollection e = plotState.getOwner().getEntityCollection();
        if (e != null) {
            e.add(new AxisEntity(hotspot, this));
        }
    }
View Full Code Here

      hotspot = new Rectangle2D.Double(cursor, dataArea.getY(),
                    state.getCursor() - cursor, dataArea.getHeight());
    }
    EntityCollection e = plotState.getOwner().getEntityCollection();
    if (e != null) {
            e.add(new AxisEntity(hotspot, this));
        }
  }
View Full Code Here

            hotspot = new Rectangle2D.Double(cursor, dataArea.getY(),
                    state.getCursor() - cursor, dataArea.getHeight());
        }
        EntityCollection e = plotState.getOwner().getEntityCollection();
        if (e != null) {
            e.add(new AxisEntity(hotspot, this));
        }
    }
View Full Code Here

TOP

Related Classes of org.jfree.chart.entity.AxisEntity

Copyright © 2018 www.massapicom. 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.