Reusable Components
When creating panels, developers often need to include combo boxes and panels to allow for the selection of a color, symbol or line attributes. The following components have been made available in the com.interactive.intviewerapi.editors.utils package.
- Combo Boxes:
- SymbolStyleComboBox: to select a symbol style from a list
- LineWidthComboxBox: to select a line width from a list
- LineStyleComboBox: to select a line style from a list
- ColormapComboBox: to select a color map from a list
- Spinners:
- SymbolSizeSpinner: to select the size of a symbol
- Panels:
- EpsgCodePanel: To select a coordinate reference system
- CornerPointGeometryPanel: To enter a corner point geometry
- LineAttributesPanel: to select the width, color and style of a line
- SymbolAttributesPanel: to select the size, color and style of a symbol
- Buttons:
- FontEditorButton: to open a font chooser
- ColorButton: to open a color chooser
These reusable components are pure Java Beans that can be added to the Swing GUI Builder (Matisse) palette. Right-click inside the Matisse palette, choose Palette Manager > Add from JAR.... Select intviewer\modules\com-interactive-intviewer.jar in your INTViewer installation. Once added to the palette, these components can be dragged and dropped to any panel built with the Matisse editor.