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 ofDisplayTypeSupporter
actors.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractDisplayType
m_NewType
the new display type.protected AbstractDisplayType
m_OldType
the old display type.protected boolean
m_UpdateAnyType
whether 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 void
defineOptions()
Adds options to the internal list of options.AbstractDisplayType
getNewType()
Returns the old display type to replace.AbstractDisplayType
getOldType()
Returns the old display type to replace.boolean
getUpdateAnyType()
Returns whether to replace any display type with the new one.String
globalInfo()
Returns a string describing the object.String
newTypeTipText()
Returns the tip text for this property.String
oldTypeTipText()
Returns the tip text for this property.protected void
processActor(Actor actor)
Performs the actual processing.void
setNewType(AbstractDisplayType value)
Sets the new display type to replace.void
setOldType(AbstractDisplayType value)
Sets the old display type to replace.void
setUpdateAnyType(boolean value)
Sets whether to replace any display type with the new one.String
updateAnyTypeTipText()
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:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in 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:
processActor
in classAbstractActorProcessor
- Parameters:
actor
- the actor to process (is a copy of original for processors implementing ModifyingProcessor)- See Also:
ModifyingProcessor
-
-