📄 rpfviewattributes.java
字号:
String prefix = PropUtils.getScopedPropertyPrefix(propertyPrefix); props.put(prefix + OpaquenessProperty, Integer.toString(opaqueness)); props.put(prefix + NumColorsProperty, Integer.toString(numberOfColors)); props.put(prefix + ShowMapsProperty, new Boolean(showMaps).toString()); props.put(prefix + ShowInfoProperty, new Boolean(showInfo).toString()); props.put(prefix + ScaleImagesProperty, new Boolean(scaleImages).toString()); props.put(prefix + ChartSeriesProperty, chartSeries); props.put(prefix + AutoFetchAttributeProperty, new Boolean(autofetchAttributes).toString()); props.put(prefix + ImageScaleFactorProperty, Float.toString(imageScaleFactor)); if (colorModel == OMRasterObject.COLORMODEL_INDEXED) { props.put(prefix + ColormodelProperty, COLORMODEL_INDEXED_STRING); } else { props.put(prefix + ColormodelProperty, COLORMODEL_DIRECT_STRING); } return props; } /** * Method to fill in a Properties object with values reflecting * the properties able to be set on this PropertyConsumer. The key * for each property should be the raw property name (without a * prefix) with a value that is a String that describes what the * property key represents, along with any other information about * the property that would be helpful (range, default value, * etc.). For Layer, this method should at least return the * 'prettyName' property. * * @param list a Properties object to load the PropertyConsumer * properties into. If getList equals null, then a new * Properties object should be created. * @return Properties object containing PropertyConsumer property * values. If getList was not null, this should equal * getList. Otherwise, it should be the Properties object * created by the PropertyConsumer. */ public Properties getPropertyInfo(Properties list) { if (list == null) { list = new Properties(); } String interString; interString = i18n.get(RpfLayer.class, OpaquenessProperty, I18n.TOOLTIP, "Integer representing opaqueness level (0-255, 0 is clear)."); list.put(OpaquenessProperty, interString); interString = i18n.get(RpfLayer.class, OpaquenessProperty, "Opaqueness"); list.put(OpaquenessProperty + LabelEditorProperty, interString); interString = i18n.get(RpfLayer.class, NumColorsProperty, I18n.TOOLTIP, "Number of colors to use for the map images."); list.put(NumColorsProperty, interString); list.put(NumColorsProperty + ScopedEditorProperty, "com.bbn.openmap.util.propertyEditor.ComboBoxPropertyEditor"); list.put(NumColorsProperty + OptionPropertyEditor.ScopedOptionsProperty, "sixteen thirtytwo twosixteen"); list.put(NumColorsProperty + ".sixteen", "16"); list.put(NumColorsProperty + ".thirtytwo", "32"); list.put(NumColorsProperty + ".twosixteen", "216"); interString = i18n.get(RpfLayer.class, NumColorsProperty, "Number of Colors"); list.put(NumColorsProperty + LabelEditorProperty, interString); interString = i18n.get(RpfLayer.class, ShowMapsProperty, I18n.TOOLTIP, "Flag to display map images."); list.put(ShowMapsProperty, interString); list.put(ShowMapsProperty + ScopedEditorProperty, "com.bbn.openmap.util.propertyEditor.OnOffPropertyEditor"); interString = i18n.get(RpfLayer.class, ShowMapsProperty, "Display Images"); list.put(ShowMapsProperty + LabelEditorProperty, interString); interString = i18n.get(RpfLayer.class, ShowInfoProperty, I18n.TOOLTIP, "Flag to show data attributes."); list.put(ShowInfoProperty, interString); list.put(ShowInfoProperty + ScopedEditorProperty, "com.bbn.openmap.util.propertyEditor.OnOffPropertyEditor"); interString = i18n.get(RpfLayer.class, ShowInfoProperty, "Display Attributes"); list.put(ShowInfoProperty + LabelEditorProperty, interString); interString = i18n.get(RpfLayer.class, ScaleImagesProperty, I18n.TOOLTIP, "Flag to scale the images to fit the map scale. If false, images appear when map scale fits the chart scale."); list.put(ScaleImagesProperty, interString); list.put(ScaleImagesProperty + ScopedEditorProperty, "com.bbn.openmap.util.propertyEditor.OnOffPropertyEditor"); interString = i18n.get(RpfLayer.class, ScaleImagesProperty, "Scale Images"); list.put(ScaleImagesProperty + LabelEditorProperty, interString); interString = i18n.get(RpfLayer.class, ChartSeriesProperty, I18n.TOOLTIP, "The two-letter chart code to display. ANY is default."); list.put(ChartSeriesProperty, interString); interString = i18n.get(RpfLayer.class, ChartSeriesProperty, "Chart Series Code"); list.put(ChartSeriesProperty + LabelEditorProperty, interString); interString = i18n.get(RpfLayer.class, AutoFetchAttributeProperty, I18n.TOOLTIP, "Flag to tell the layer to automatically fetch the attribute data for the images."); list.put(AutoFetchAttributeProperty, interString); list.put(AutoFetchAttributeProperty + ScopedEditorProperty, "com.bbn.openmap.util.propertyEditor.OnOffPropertyEditor"); interString = i18n.get(RpfLayer.class, AutoFetchAttributeProperty, "Auto-fetch Attributes"); list.put(AutoFetchAttributeProperty + LabelEditorProperty, interString); interString = i18n.get(RpfLayer.class, ImageScaleFactorProperty, I18n.TOOLTIP, "Multiplier to limit the scale differential that a given chart will be displayed for a map (4.0 is the default)."); list.put(ImageScaleFactorProperty, interString); interString = i18n.get(RpfLayer.class, ImageScaleFactorProperty, "Image Scaling Factor"); list.put(ImageScaleFactorProperty + LabelEditorProperty, interString); interString = i18n.get(RpfLayer.class, ColormodelProperty, I18n.TOOLTIP, "If 'indexed', the images will be built using a colortable. This is not the default."); list.put(ColormodelProperty, interString); list.put(ColormodelProperty + ScopedEditorProperty, "com.bbn.openmap.util.propertyEditor.ComboBoxPropertyEditor"); list.put(ColormodelProperty + OptionPropertyEditor.ScopedOptionsProperty, "dir ind"); list.put(ColormodelProperty + ".dir", COLORMODEL_DIRECT_STRING); list.put(ColormodelProperty + ".ind", COLORMODEL_INDEXED_STRING); interString = i18n.get(RpfLayer.class, ColormodelProperty, "Image Colormodel Type"); list.put(ColormodelProperty + LabelEditorProperty, interString); return list; } /** * Specify what order properties should be presented in an editor. */ public String getInitPropertiesOrder() { return " " + ShowMapsProperty + " " + ShowInfoProperty + " " + ScaleImagesProperty + " " + ImageScaleFactorProperty + " " + OpaquenessProperty + " " + NumColorsProperty + " " + ChartSeriesProperty + " " + AutoFetchAttributeProperty + " " + ColormodelProperty; } /** * Set the property key prefix that should be used by the * PropertyConsumer. The prefix, along with a '.', should be * prepended to the property keys known by the PropertyConsumer. * * @param prefix the prefix String. */ public void setPropertyPrefix(String prefix) { propertyPrefix = prefix; } /** * Get the property key prefix that is being used to prepend to * the property keys for Properties lookups. * * @return the property prefix */ public String getPropertyPrefix() { return propertyPrefix; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -