com.dlsc.flexgantt.command.dateline
Class DefaultChangeTimeZoneCommand

java.lang.Object
  extended by com.dlsc.flexgantt.command.AbstractCommand
      extended by com.dlsc.flexgantt.command.dateline.DefaultChangeTimeZoneCommand
All Implemented Interfaces:
ICommand, java.io.Serializable

public class DefaultChangeTimeZoneCommand
extends AbstractCommand

A command to change the time zone displayed by the timeline.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
DefaultChangeTimeZoneCommand(IDatelineModel model, java.util.TimeZone timeZone)
          Constructs a new command that will change the time zone on the given timeline.
 
Method Summary
 void executeCommand(IProgressMonitor monitor)
          Executes the command.
 void undoCommand(IProgressMonitor monitor)
          Undos the command.
 
Methods inherited from class com.dlsc.flexgantt.command.AbstractCommand
getName, isRedoable, isRelevant, isUndoable, redoCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultChangeTimeZoneCommand

public DefaultChangeTimeZoneCommand(IDatelineModel model,
                                    java.util.TimeZone timeZone)
Constructs a new command that will change the time zone on the given timeline.

Parameters:
model - the target dateline model
timeZone - the new time zone
Since:
1.0
Method Detail

executeCommand

public void executeCommand(IProgressMonitor monitor)
Description copied from interface: ICommand
Executes the command.

Parameters:
monitor - a progress monitor

undoCommand

public void undoCommand(IProgressMonitor monitor)
Description copied from interface: ICommand
Undos the command.

Parameters:
monitor - a progress monitor