/** * Create action for given map widget. * * @param mapWidget map widget */ public PrintingAction(MapWidget mapWidget) { super(WidgetLayout.iconPrint, null); this.mapWidget = mapWidget; setTooltip(MESSAGES.printBtnTitle()); }
mainPreferences.setTitle(MESSAGES.printPrefsChoose()); titleItem.setTitle(MESSAGES.printPrefsTitleText()); sizeItem.setTitle(MESSAGES.printPrefsSize()); sizeItem.setValueMap(PageSize.getAllNames()); sizeItem.setValue(PageSize.A4.getName()); orientationGroup.setTitle(MESSAGES.printPrefsOrientation()); LinkedHashMap<String, String> orientations = new LinkedHashMap<String, String>(); orientations.put(LANDSCAPE, MESSAGES.printPrefsLandscape()); orientations.put(PORTRAIT, MESSAGES.printPrefsPortrait()); orientationGroup.setValueMap(orientations); orientationGroup.setVertical(false); rasterDpiSlider.setTitle(MESSAGES.printPrefsRasterDPI()); rasterDpiSlider.setWidth(PrintingLayout.printPreferencesResolutionWidth); rasterDpiSlider.setHeight(PrintingLayout.printPreferencesResolutionHeight); arrowCheckbox.setTitle(MESSAGES.printPrefsWithArrow()); scaleBarCheckbox.setTitle(MESSAGES.printPrefsWithScaleBar()); fileNameItem.setTitle(MESSAGES.printPrefsFileName()); fileNameItem.setValue(mapWidget.getMapModel().getMapInfo().getId() + EXTENSION); barIcon.setHeight(PrintingLayout.iconWaitHeight); barIcon.setWidth(PrintingLayout.iconWaitWidth); StaticTextItem statusText = new StaticTextItem(MESSAGES.printPrefsStatus());
mainPreferences.setTitle(MESSAGES.printPrefsChoose()); titleItem.setTitle(MESSAGES.printPrefsTitleText()); sizeItem.setTitle(MESSAGES.printPrefsSize()); sizeItem.setValueMap(PageSize.getAllNames()); sizeItem.setValue(PageSize.A4.getName()); orientationGroup.setTitle(MESSAGES.printPrefsOrientation()); LinkedHashMap<String, String> orientations = new LinkedHashMap<String, String>(); orientations.put(LANDSCAPE, MESSAGES.printPrefsLandscape()); orientations.put(PORTRAIT, MESSAGES.printPrefsPortrait()); orientationGroup.setValueMap(orientations); orientationGroup.setVertical(false); rasterDpiSlider.setTitle(MESSAGES.printPrefsRasterDPI()); rasterDpiSlider.setWidth(PrintingLayout.printPreferencesResolutionWidth); rasterDpiSlider.setHeight(PrintingLayout.printPreferencesResolutionHeight); arrowCheckbox.setTitle(MESSAGES.printPrefsWithArrow()); scaleBarCheckbox.setTitle(MESSAGES.printPrefsWithScaleBar()); fileNameItem.setTitle(MESSAGES.printPrefsFileName()); fileNameItem.setValue(mapWidget.getMapModel().getMapInfo().getId() + EXTENSION); barIcon.setHeight(PrintingLayout.iconWaitHeight); barIcon.setWidth(PrintingLayout.iconWaitWidth); StaticTextItem statusText = new StaticTextItem(MESSAGES.printPrefsStatus());
/** * Create action for given map widget. * * @param mapWidget map widget */ public PrintingAction(MapWidget mapWidget) { super(WidgetLayout.iconPrint, null); this.mapWidget = mapWidget; setTooltip(MESSAGES.printBtnTitle()); }