Class AdvancedMeasureOptionsPanel

  • All Implemented Interfaces:
    OptionsPanel, ImageObserver, MenuContainer, Serializable, Accessible

    public class AdvancedMeasureOptionsPanel
    extends JPanel
    implements OptionsPanel
    This Panel displays the options for the AdvancedMeasureTool. The options are: - Summary - display area and distance? - font and size - font color - vertex - display distance per vertex? - display distance relative? - font and size - font color - paint vertex? - vertex style for the first vertex and the following vertexes - line and fill style - paint line? - linecolor - paint fill? - fillcolor
    Author:
    Matthias Scholz <ms@jammerhund.de>
    See Also:
    Serialized Form
    • Field Detail

      • BB_SUMMARY_PAINT_LENGTH

        public static final String BB_SUMMARY_PAINT_LENGTH
      • BB_SUMMARY_PAINT_AREA

        public static final String BB_SUMMARY_PAINT_AREA
      • BB_SUMMARY_FONT

        public static final String BB_SUMMARY_FONT
      • BB_SUMMARY_FONT_COLOR

        public static final String BB_SUMMARY_FONT_COLOR
      • BB_VERTEX_PAINT_DISTANCE

        public static final String BB_VERTEX_PAINT_DISTANCE
      • BB_VERTEX_PAINT_DISTANCE_RELATIVE

        public static final String BB_VERTEX_PAINT_DISTANCE_RELATIVE
      • BB_VERTEX_FONT

        public static final String BB_VERTEX_FONT
      • BB_VERTEX_FONT_COLOR

        public static final String BB_VERTEX_FONT_COLOR
      • BB_VERTEX_PAINT

        public static final String BB_VERTEX_PAINT
      • BB_VERTEX_FIRST_COLOR

        public static final String BB_VERTEX_FIRST_COLOR
      • BB_VERTEX_FIRST_FORM

        public static final String BB_VERTEX_FIRST_FORM
      • BB_VERTEX_FIRST_SIZE

        public static final String BB_VERTEX_FIRST_SIZE
      • BB_VERTEX_FOLLOWING_COLOR

        public static final String BB_VERTEX_FOLLOWING_COLOR
      • BB_VERTEX_FOLLOWING_FORM

        public static final String BB_VERTEX_FOLLOWING_FORM
      • BB_VERTEX_FOLLOWING_SIZE

        public static final String BB_VERTEX_FOLLOWING_SIZE
      • BB_LINE_PAINT

        public static final String BB_LINE_PAINT
      • BB_LINE_COLOR

        public static final String BB_LINE_COLOR
      • BB_FILL_PAINT

        public static final String BB_FILL_PAINT
      • BB_FILL_COLOR

        public static final String BB_FILL_COLOR
      • DEFAULT_SUMMARY_FONT

        public static final Font DEFAULT_SUMMARY_FONT
      • DEFAULT_SUMMARY_COLOR

        public static final Color DEFAULT_SUMMARY_COLOR
      • DEFAULT_SUMMARY_PAINT_LENGTH

        public static final boolean DEFAULT_SUMMARY_PAINT_LENGTH
        See Also:
        Constant Field Values
      • DEFAULT_SUMMARY_PAINT_AREA

        public static final boolean DEFAULT_SUMMARY_PAINT_AREA
        See Also:
        Constant Field Values
      • DEFAULT_VERTEX_PAINT_DISTANCE

        public static final boolean DEFAULT_VERTEX_PAINT_DISTANCE
        See Also:
        Constant Field Values
      • DEFAULT_VERTEX_PAINT_DISTANCE_RELATIVE

        public static final boolean DEFAULT_VERTEX_PAINT_DISTANCE_RELATIVE
        See Also:
        Constant Field Values
      • DEFAULT_VERTEX_FONT

        public static final Font DEFAULT_VERTEX_FONT
      • DEFAULT_VERTEX_FONT_COLOR

        public static final Color DEFAULT_VERTEX_FONT_COLOR
      • DEFAULT_VERTEX_FIRST_COLOR

        public static final Color DEFAULT_VERTEX_FIRST_COLOR
      • DEFAULT_VERTEX_FIRST_SIZE

        public static final int DEFAULT_VERTEX_FIRST_SIZE
        See Also:
        Constant Field Values
      • DEFAULT_VERTEX_FOLLOWING_COLOR

        public static final Color DEFAULT_VERTEX_FOLLOWING_COLOR
      • DEFAULT_VERTEX_FOLLOWING_SIZE

        public static final int DEFAULT_VERTEX_FOLLOWING_SIZE
        See Also:
        Constant Field Values
      • DEFAULT_LINE_COLOR

        public static final Color DEFAULT_LINE_COLOR
      • DEFAULT_FILL_COLOR

        public static final Color DEFAULT_FILL_COLOR
    • Constructor Detail

      • AdvancedMeasureOptionsPanel

        public AdvancedMeasureOptionsPanel​(WorkbenchContext context)
    • Method Detail

      • validateInput

        public String validateInput()
        Specified by:
        validateInput in interface OptionsPanel
        Returns:
        an error message if a field is not valid; otherwise, null
      • okPressed

        public void okPressed()
        Description copied from interface: OptionsPanel
        Notifies this panel that it should commit its entries to the system
        Specified by:
        okPressed in interface OptionsPanel
      • init

        public void init()
        Description copied from interface: OptionsPanel
        Notifies this panel that the OptionsDialog has been (re-)opened
        Specified by:
        init in interface OptionsPanel