Class FixedSymbolModifier

java.lang.Object
PamView.symbol.modifier.SymbolModifier
PamView.symbol.modifier.FixedSymbolModifier

public class FixedSymbolModifier extends SymbolModifier
Symbol modifier which cannot modify anything....
Author:
Doug Gillespie
  • Constructor Details

    • FixedSymbolModifier

      public FixedSymbolModifier(PamSymbolChooser symbolChooser)
  • 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 class SymbolModifier
      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 class SymbolModifier
      Returns:
      modified symbol. Must never be null.
    • getSymbolData

      public SymbolData getSymbolData(GeneralProjector projector, PamDataUnit dataUnit)
      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 class SymbolModifier
      Returns: