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
Modifier and TypeFieldDescriptionprotected JLabel
protected FlowLabel
protected Polygon
protected AdjustableSpeedScrollPane
protected final JLabel
protected Zone
Fields inherited from class VASSAL.configure.Configurer
changeSupport, context, contextLevel, frozen, hint, key, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGUI interface for setting the option in an editing windowvoid
Set the Object value from a Stringvoid
updateCoord
(int x, int y) void
void
void
updateCoords
(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:
updateCoords
in interfacePolygonConfigurer
-
updateCoords
public void updateCoords()- Specified by:
updateCoords
in interfacePolygonConfigurer
-
updateCoord
- Specified by:
updateCoord
in interfacePolygonConfigurer
-
updateCoord
public void updateCoord(int x, int y) - Specified by:
updateCoord
in interfacePolygonConfigurer
-
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
getValueString
- Specified by:
getValueString
in classConfigurer
- Returns:
- a String representation of the Object value
-
setValue
Description copied from class:Configurer
Set the Object value from a String- Specified by:
setValue
in classConfigurer
-