return inPanMode;
}
public void panAction(PanDirection panningAction) {
XYAxis xAxis = plot.getPlotView().getXAxis();
XYAxis yAxis = plot.getPlotView().getYAxis();
if (plot.getAxisOrientationSetting() == AxisOrientationSetting.X_AXIS_AS_TIME) {
double nonTimeScalePanAmount = yAxis.getEnd() - yAxis.getStart();
double timeScalePanAmount = xAxis.getEnd() - xAxis.getStart();
timeScalePanAmount = (timeScalePanAmount/100) * PlotConstants.PANNING_PERCENTAGE;
nonTimeScalePanAmount= (nonTimeScalePanAmount/100) * PlotConstants.PANNING_PERCENTAGE;
if (panningAction == PanDirection.PAN_HIGHER_Y_AXIS) {
yAxis.shift(nonTimeScalePanAmount);
pinNonTime();
} else if (panningAction == PanDirection.PAN_LOWER_Y_AXIS) {
yAxis.shift(-nonTimeScalePanAmount);
pinNonTime();
} else if (panningAction == PanDirection.PAN_LOWER_X_AXIS) {
xAxis.shift(-timeScalePanAmount);
pinTime();
plot.notifyObserversTimeChange();
} else if (panningAction == PanDirection.PAN_HIGHER_X_AXIS) {
xAxis.shift(timeScalePanAmount);
pinTime();
plot.notifyObserversTimeChange();
}
} else {
double nonTimeScalePanAmount = xAxis.getEnd() - xAxis.getStart();
double timeScalePanAmount = yAxis.getEnd() - yAxis.getStart();
timeScalePanAmount = (timeScalePanAmount/100) * PlotConstants.PANNING_PERCENTAGE;
nonTimeScalePanAmount= (nonTimeScalePanAmount/100) * PlotConstants.PANNING_PERCENTAGE;
if (panningAction == PanDirection.PAN_HIGHER_Y_AXIS) {
yAxis.shift(timeScalePanAmount);
pinTime();
plot.notifyObserversTimeChange();
} else if (panningAction == PanDirection.PAN_LOWER_Y_AXIS) {
yAxis.shift(-timeScalePanAmount);
pinTime();
plot.notifyObserversTimeChange();
} else if (panningAction == PanDirection.PAN_LOWER_X_AXIS) {
xAxis.shift(-nonTimeScalePanAmount);
pinNonTime();