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) {