/** * Gets a user interface for editing the transformation properties of a map projection. Never returns * <code>null</code> because a user interface is available for this descriptor. * * @param transform the transformation which provides the default properties for the UI. * * @return the transformation UI, never null */ @Override public MapTransformUI getTransformUI(MapTransform transform) { return new DefaultMapTransformUI(transform); }
public Component getUIComponent() { if (_uiComponent == null) { _uiComponent = createUIComponent(); } return _uiComponent; }
private double[] getParameterValues() { return getParameterValues(_parameters); }
public DefaultMapTransformUI(MapTransform transform) { Guardian.assertNotNull("transform", transform); Debug.trace("DefaultMapTransformUI.init"); _transform = transform; _parameters = cloneParameterArray(transform.getDescriptor().getParameters()); setParameterValues(transform.getParameterValues()); traceParameterValues(); }
public MapTransform createTransform() { Debug.trace("DefaultMapTransformUI.createTransform"); traceParameterValues(); final MapTransform transform = _transform.getDescriptor().createTransform(getParameterValues()); final double[] parameterValues = transform.getParameterValues(); for (int i = 0; i < parameterValues.length; i++) { Debug.trace(" MapTransform.parameterValues[" + i + "] = " + parameterValues[i]); } return transform; }
public void resetToDefaults() { Debug.trace("DefaultMapTransformUI.resetToDefaults"); setParameterValues(_transform.getDescriptor().getParameterDefaultValues()); }
/** * Gets a user interface for editing the transformation properties of a map projection. Returns <code>null</code> * because a user interface is not available for this descriptor. * * @param transform ignored * * @return always <code>null</code> */ public MapTransformUI getTransformUI(MapTransform transform) { return new DefaultMapTransformUI(transform); }
private Component createUIComponent() { return createUIComponent(_parameters); }
/** * Gets a user interface for editing the transformation properties of a map projection. Never returns * <code>null</code> because a user interface is available for this descriptor. * * @param transform the transformation which provides the default properties for the UI. * * @return the transformation UI, never null */ @Override public MapTransformUI getTransformUI(final MapTransform transform) { return new DefaultMapTransformUI(transform); }
/** * Gets a user interface for editing the transformation properties of a map projection. Never returns * <code>null</code> because a user interface is available for this descriptor. * * @param transform the transformation which provides the default properties for the UI. * * @return the transformation UI, never null */ public MapTransformUI getTransformUI(MapTransform transform) { return new DefaultMapTransformUI(transform); }
/** * Gets a user interface for editing the transformation properties of a map projection. Never returns * <code>null</code> because a user interface is available for this descriptor. * * @param transform the transformation which provides the default properties for the UI. * * @return the transformation UI, never null */ public MapTransformUI getTransformUI(MapTransform transform) { return new DefaultMapTransformUI(transform); }