Class Zone.Editor
java.lang.Object
VASSAL.configure.Configurer
VASSAL.build.module.map.boardPicker.board.mapgrid.Zone.Editor
- All Implemented Interfaces:
PolygonConfigurer
- Enclosing class:
Zone
Our configurer for the Zone, including ability to edit the polygon
-
Nested Class Summary
Nested classes/interfaces inherited from class VASSAL.configure.Configurer
Configurer.ContextLevel -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JLabelprotected FlowLabelprotected Polygonprotected AdjustableSpeedScrollPaneprotected final JLabelprotected ZoneFields inherited from class VASSAL.configure.Configurer
changeSupport, context, contextLevel, frozen, hint, key, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGUI interface for setting the option in an editing windowvoidSet the Object value from a StringvoidupdateCoord(int x, int y) voidvoidvoidupdateCoords(Polygon polygon) Methods inherited from class VASSAL.configure.Configurer
addFocusListener, addPropertyChangeListener, fireUpdate, getContext, getContextLevel, getHint, getKey, getName, getScreenSize, getValue, initCustomControls, isFrozen, isHighlighted, isPieceContext, removeFocusListener, removePropertyChangeListener, repack, repack, requestFocus, setContext, setContext, setContext, setContextLevel, setEnabled, setFrozen, setHighlighted, setHint, setHintKey, setLabelVisibile, setLabelVisible, setName, setValue
-
Field Details
-
scroll
-
savePoly
-
coordsLabel
-
coordLabel
-
zone
-
warning
-
-
Constructor Details
-
Editor
-
-
Method Details
-
updateCoords
- Specified by:
updateCoordsin interfacePolygonConfigurer
-
updateCoords
public void updateCoords()- Specified by:
updateCoordsin interfacePolygonConfigurer
-
updateCoord
- Specified by:
updateCoordin interfacePolygonConfigurer
-
updateCoord
public void updateCoord(int x, int y) - Specified by:
updateCoordin interfacePolygonConfigurer
-
getControls
Description copied from class:ConfigurerGUI interface for setting the option in an editing window- Specified by:
getControlsin classConfigurer
-
getValueString
- Specified by:
getValueStringin classConfigurer- Returns:
- a String representation of the Object value
-
setValue
Description copied from class:ConfigurerSet the Object value from a String- Specified by:
setValuein classConfigurer
-