Package VASSAL.counters
Class Replace
java.lang.Object
VASSAL.counters.Decorator
VASSAL.counters.PlaceMarker
VASSAL.counters.Replace
- All Implemented Interfaces:
PropertyNameSource,PropertySource,EditablePiece,GamePiece,PropertyExporter,StateMergeable,TranslatablePiece,PersistentPropertyContainer
public class Replace extends PlaceMarker
GamePiece trait that replaces a GamePiece with another one
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classReplace.Ed -
Field Summary
Fields inherited from class VASSAL.counters.PlaceMarker
above, ABOVE, afterBurnerKey, BELOW, command, commands, description, gpId, gpidSupport, key, markerSpec, markerText, matchRotation, newGpId, placement, STACK_BOTTOM, STACK_TOP, xOffset, yOffsetFields inherited from interface VASSAL.counters.PropertyExporter
LOCALIZED_NAMEFields inherited from interface VASSAL.i18n.TranslatablePiece
PREFIX -
Constructor Summary
-
Method Summary
Modifier and Type Method Description GamePiececreateMarker()The marker, with prototypes fully expandedStringgetDescription()A plain-English description of this type of piecePieceEditorgetEditor()Get the configurer for this traitHelpFilegetHelpFile()PieceI18nDatagetI18nData()Return I18n data for this pieceprotected voidmatchTraits(GamePiece base, GamePiece marker)StringmyGetType()CommandmyKeyEvent(KeyStroke stroke)The response of this trait alone to the given KeyStrokeprotected CommandreplacePiece()protected voidselectMarker(GamePiece marker)Methods inherited from class VASSAL.counters.PlaceMarker
boundingBox, createBaseMarker, draw, getGpId, getName, getShape, isMarkerStandalone, myGetKeyCommands, myGetState, mySetState, mySetType, placeMarker, setGpId, updateGpId, updateGpIdMethods inherited from class VASSAL.counters.Decorator
getCommandDescription, getDecorator, getI18nData, getI18nData, getId, getInner, getInnermost, getKeyCommands, getLocalizedName, getLocalizedProperty, getMap, getOuter, getOutermost, getParent, getPersistentProperty, getPosition, getProperties, getProperty, getPropertyNames, getState, getTranslation, getType, isSelected, keyEvent, mergeState, putOldProperties, repack, reportDataError, reportDataError, reportDataError, setId, setInner, setMap, setOldProperties, setOldProperties, setParent, setPersistentProperty, setPosition, setProperty, setSelected, setState, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface VASSAL.counters.GamePiece
getId, getLocalizedName, getMap, getParent, getPosition, getProperty, getState, getType, keyEvent, setId, setMap, setParent, setPosition, setProperty, setStateMethods inherited from interface VASSAL.counters.PropertyExporter
getPropertiesMethods inherited from interface VASSAL.build.module.properties.PropertySource
getLocalizedProperty
-
Field Details
-
ID
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Replace
public Replace() -
Replace
-
-
Method Details
-
myKeyEvent
Description copied from class:DecoratorThe response of this trait alone to the given KeyStroke- Overrides:
myKeyEventin classPlaceMarker- Parameters:
stroke- Stroke to apply- Returns:
- Generated Command or null if no effect
- See Also:
Decorator.keyEvent(javax.swing.KeyStroke)
-
replacePiece
-
selectMarker
- Overrides:
selectMarkerin classPlaceMarker
-
getDescription
Description copied from interface:EditablePieceA plain-English description of this type of piece- Specified by:
getDescriptionin interfaceEditablePiece- Overrides:
getDescriptionin classPlaceMarker
-
getHelpFile
- Specified by:
getHelpFilein interfaceEditablePiece- Overrides:
getHelpFilein classPlaceMarker
-
myGetType
- Overrides:
myGetTypein classPlaceMarker- Returns:
- the type of this trait alone
- See Also:
Decorator.getType()
-
getEditor
Description copied from interface:EditablePieceGet the configurer for this trait- Specified by:
getEditorin interfaceEditablePiece- Overrides:
getEditorin classPlaceMarker
-
createMarker
Description copied from class:PlaceMarkerThe marker, with prototypes fully expanded- Overrides:
createMarkerin classPlaceMarker- Returns:
- new Marker
-
matchTraits
-
getI18nData
Description copied from class:DecoratorReturn I18n data for this piece- Specified by:
getI18nDatain interfaceTranslatablePiece- Overrides:
getI18nDatain classPlaceMarker- Returns:
- I18n data
-