Package adams.flow.processor
Class ChangeDisplayType
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,ShallowCopySupporter<ActorProcessor>,SizeOfHandler,ActorProcessor,ModifyingProcessor,Serializable,Comparable<ActorProcessor>
public class ChangeDisplayType extends AbstractModifyingProcessor
Processor that updates the display type ofDisplayTypeSupporteractors.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractDisplayTypem_NewTypethe new display type.protected AbstractDisplayTypem_OldTypethe old display type.protected booleanm_UpdateAnyTypewhether to update any type.-
Fields inherited from class adams.flow.processor.AbstractModifyingProcessor
m_Modified, m_ModifiedActor, m_NoCopy
-
Fields inherited from class adams.flow.processor.AbstractActorProcessor
m_Errors
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description ChangeDisplayType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.AbstractDisplayTypegetNewType()Returns the old display type to replace.AbstractDisplayTypegetOldType()Returns the old display type to replace.booleangetUpdateAnyType()Returns whether to replace any display type with the new one.StringglobalInfo()Returns a string describing the object.StringnewTypeTipText()Returns the tip text for this property.StringoldTypeTipText()Returns the tip text for this property.protected voidprocessActor(Actor actor)Performs the actual processing.voidsetNewType(AbstractDisplayType value)Sets the new display type to replace.voidsetOldType(AbstractDisplayType value)Sets the old display type to replace.voidsetUpdateAnyType(boolean value)Sets whether to replace any display type with the new one.StringupdateAnyTypeTipText()Returns the tip text for this property.-
Methods inherited from class adams.flow.processor.AbstractModifyingProcessor
getModifiedActor, getNoCopy, initialize, isModified, process, setNoCopy
-
Methods inherited from class adams.flow.processor.AbstractActorProcessor
addError, addError, checkData, compareTo, equals, getErrors, hasErrors, reset, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.flow.processor.ActorProcessor
compareTo, getErrors, hasErrors, shallowCopy, shallowCopy
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
Field Detail
-
m_OldType
protected AbstractDisplayType m_OldType
the old display type.
-
m_UpdateAnyType
protected boolean m_UpdateAnyType
whether to update any type.
-
m_NewType
protected AbstractDisplayType m_NewType
the new display type.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setOldType
public void setOldType(AbstractDisplayType value)
Sets the old display type to replace.- Parameters:
value- the old type
-
getOldType
public AbstractDisplayType getOldType()
Returns the old display type to replace.- Returns:
- the old type
-
oldTypeTipText
public String oldTypeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
setUpdateAnyType
public void setUpdateAnyType(boolean value)
Sets whether to replace any display type with the new one.- Parameters:
value- true if to replace any type
-
getUpdateAnyType
public boolean getUpdateAnyType()
Returns whether to replace any display type with the new one.- Returns:
- true if to replace any type
-
updateAnyTypeTipText
public String updateAnyTypeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
setNewType
public void setNewType(AbstractDisplayType value)
Sets the new display type to replace.- Parameters:
value- the new type
-
getNewType
public AbstractDisplayType getNewType()
Returns the old display type to replace.- Returns:
- the new type
-
newTypeTipText
public String newTypeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
processActor
protected void processActor(Actor actor)
Performs the actual processing.- Specified by:
processActorin classAbstractActorProcessor- Parameters:
actor- the actor to process (is a copy of original for processors implementing ModifyingProcessor)- See Also:
ModifyingProcessor
-
-