@Override public void unpickle(final Map<String, String> parms) { super.unpickle(parms); for (String key : parms.keySet()) { if (key.equals(XAXIS_RANGE)) { _xAxisRange = parseAxisRange(parms.get(key)); } else if (key.equals(YAXIS_RANGE)) { _yAxisRange = parseAxisRange(parms.get(key)); } else if (key.equals(XAXIS_DEFAULT_RANGE)) { _xAxisDefaultRange = parseAxisRange(parms.get(key)); } else if (key.equals(YAXIS_DEFAULT_RANGE)) { _yAxisDefaultRange = parseAxisRange(parms.get(key)); } } // reset the model space _modelSpace.setViewableBounds( _xAxisRange.getStart(), _xAxisRange.getEnd(), _yAxisRange.getStart(), _yAxisRange.getEnd()); _modelSpace.setDefaultBounds( _xAxisDefaultRange.getStart(), _xAxisDefaultRange.getEnd(), _yAxisDefaultRange.getStart(), _yAxisDefaultRange.getEnd()); }
/** * Set the Y axis range of the viewable bounds * * @param yrange The Y axis range */ public void setYAxisRange(final AxisRange yrange) { _yAxisRange = yrange; _yaxisRange.set(yrange.toString()); }
/** * Set the X axis range of the viewable bounds * * @param xrange The X axis range */ public void setXAxisRange(final AxisRange xrange) { _xAxisRange = xrange; _xaxisRange.set(xrange.toString()); }