Package adams.gui.flow.tree.record.add
Class SimpleLog
- java.lang.Object
-
- adams.core.logging.ConsoleLoggingObject
-
- adams.gui.flow.tree.record.add.AbstractRecordActorAdded
-
- adams.gui.flow.tree.record.add.SimpleLog
-
- All Implemented Interfaces:
CleanUpHandler
,Serializable
public class SimpleLog extends AbstractRecordActorAdded
Simply logs what actors got added.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILENAME
the file to write the "add" history to .-
Fields inherited from class adams.gui.flow.tree.record.add.AbstractRecordActorAdded
m_Recorders
-
Fields inherited from class adams.core.logging.ConsoleLoggingObject
m_Logger
-
-
Constructor Summary
Constructors Constructor Description SimpleLog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled(Node added)
Returns whether the recording is active.protected void
record(Actor added, Actor parent, Actor before, Actor after, TreeOperations.InsertPosition position)
Records the actor that was added.protected void
record(Actor actor, StringBuilder line)
Adds details about an actor.-
Methods inherited from class adams.gui.flow.tree.record.add.AbstractRecordActorAdded
cleanUp, cleanUpAll, record, recordAll
-
Methods inherited from class adams.core.logging.ConsoleLoggingObject
getLogger, initializeLogger, isLoggingEnabled
-
-
-
-
Field Detail
-
FILENAME
public static final String FILENAME
the file to write the "add" history to .- See Also:
- Constant Field Values
-
-
Method Detail
-
isEnabled
public boolean isEnabled(Node added)
Returns whether the recording is active.- Specified by:
isEnabled
in classAbstractRecordActorAdded
- Parameters:
added
- the node that got added (for context)- Returns:
- true if active
-
record
protected void record(Actor actor, StringBuilder line)
Adds details about an actor.- Parameters:
actor
- the actor to add the details forline
- the buffer to add the details to
-
record
protected void record(Actor added, Actor parent, Actor before, Actor after, TreeOperations.InsertPosition position)
Records the actor that was added.- Specified by:
record
in classAbstractRecordActorAdded
- Parameters:
added
- the actor that was addedparent
- the parent of the added actorbefore
- the immediate actor before the added actor, can be nullafter
- the immediate actor after the added actor, can be nullposition
- how the actor was added
-
-