com.ebmwebsourcing.webdesigner.presentation.gwt.client.log
Class Log

java.lang.Object
  extended by com.ebmwebsourcing.webdesigner.presentation.gwt.client.log.Log

public class Log
extends java.lang.Object

FIFO based log. TODO: Work on memory leaks !!

Author:
gcrosmarie, nfleury

Constructor Summary
Log(DrawingPanel panel)
           
 
Method Summary
 void addEntry(AbstractLogEntry entry)
           
 void addListener(LogListener listener)
           
 void clear()
           
 java.lang.String[] getDisplayStrings()
           
 java.lang.String[] getDisplayStrings(int numberOfLogs)
           
 DrawingPanel getDrawingPanel()
           
 TimeSortedList getEntries()
           
 java.util.ArrayList<LogListener> getListeners()
           
 boolean hasMoreRedo()
           
 boolean hasMoreUndo()
           
 void redo()
           
 void redo(int times)
           
 void setDrawingPanel(DrawingPanel drawingPanel)
           
 void undo()
           
 void undo(int times)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log

public Log(DrawingPanel panel)
Method Detail

addEntry

public void addEntry(AbstractLogEntry entry)

undo

public void undo()
          throws ImpossibleOperationException
Throws:
ImpossibleOperationException

redo

public void redo()
          throws ImpossibleOperationException
Throws:
ImpossibleOperationException

undo

public void undo(int times)
          throws ImpossibleOperationException
Throws:
ImpossibleOperationException

redo

public void redo(int times)
          throws ImpossibleOperationException
Throws:
ImpossibleOperationException

getDisplayStrings

public java.lang.String[] getDisplayStrings(int numberOfLogs)

getDisplayStrings

public java.lang.String[] getDisplayStrings()

clear

public void clear()

getEntries

public TimeSortedList getEntries()

getDrawingPanel

public DrawingPanel getDrawingPanel()

setDrawingPanel

public void setDrawingPanel(DrawingPanel drawingPanel)

hasMoreUndo

public boolean hasMoreUndo()

hasMoreRedo

public boolean hasMoreRedo()

addListener

public void addListener(LogListener listener)

getListeners

public java.util.ArrayList<LogListener> getListeners()


Copyright © 2010 eBM WebSourcing. All Rights Reserved.