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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanModify(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, showOptionsDialog
-
Constructor Details
-
FixedSymbolModifier
-
-
Method Details
-
canModify
public boolean canModify(int modType) Description copied from class:SymbolModifierSay 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:
canModifyin classSymbolModifier- Parameters:
modType- bitmap of modificatio types- Returns:
-
modifySymbol
public SymbolData modifySymbol(SymbolData symbolData, GeneralProjector projector, PamDataUnit dataUnit) Description copied from class:SymbolModifierModify 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:
modifySymbolin classSymbolModifier- Parameters:
symbolData-projector-dataUnit-- Returns:
- modified symbol. Must never be null.
-
getSymbolData
Description copied from class:SymbolModifierThis 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:
getSymbolDatain classSymbolModifier- Parameters:
projector-dataUnit-- Returns:
-