Package PamView.symbol.modifier
Class FixedSymbolModifier
java.lang.Object
PamView.symbol.modifier.SymbolModifier
PamView.symbol.modifier.FixedSymbolModifier
Symbol modifier which cannot modify anything....
- Author:
- Doug Gillespie
-
Field Summary
Fields inherited from class PamView.symbol.modifier.SymbolModifier
symbolModifierParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canModify
(int modType) Say if can modify symbol in a particular way or ways .getSymbolData
(GeneralProjector projector, PamDataUnit dataUnit) This is the symbol data to use if this modifier were to change everything.modifySymbol
(SymbolData symbolData, GeneralProjector projector, PamDataUnit dataUnit) Modify the symbol.Methods inherited from class PamView.symbol.modifier.SymbolModifier
getDialogPanel, getModifierOptionsMenu, getModifyableBits, getName, getOptionsPane, getSymbolChooser, getSymbolModifierParams, getToolTipText, setName, setSelectionBit, setSymbolModifierParams, setToolTipText
-
Constructor Details
-
FixedSymbolModifier
-
-
Method Details
-
canModify
public boolean canModify(int modType) Description copied from class:SymbolModifier
Say if can modify symbol in a particular way or ways . Note that this is what it CAN do, not necessarily what it's been told to do.- Overrides:
canModify
in classSymbolModifier
- Parameters:
modType
- bitmap of modificatio types- Returns:
-
modifySymbol
public SymbolData modifySymbol(SymbolData symbolData, GeneralProjector projector, PamDataUnit dataUnit) Description copied from class:SymbolModifier
Modify the symbol. In it's basic form it calls getSymbolData to get a totally fresh symbol, then copies over only the bits of information specified in modifyBits- Overrides:
modifySymbol
in classSymbolModifier
- Returns:
- modified symbol. Must never be null.
-
getSymbolData
Description copied from class:SymbolModifier
This is the symbol data to use if this modifier were to change everything. the Symbolchooser will actually be calling the modifySymbol function, which calls this, then based on which bits are set for modification, will transfer over the appropriate information.Must be able to respond to a null projector and dataUnit for tree vies.
- Specified by:
getSymbolData
in classSymbolModifier
- Returns:
-