org.jvnet.lafwidget.utils
Class DeltaQueue.Deltable

java.lang.Object
  extended by org.jvnet.lafwidget.utils.DeltaQueue.Deltable
Direct Known Subclasses:
TabPreviewThread.TabPreviewInfo
Enclosing class:
DeltaQueue

public abstract static class DeltaQueue.Deltable
extends java.lang.Object

Base class for entries in a DeltaQueue.

Author:
Kirill Grouchnikov

Field Summary
protected  int delta
          Delta in application specific units.
 
Constructor Summary
DeltaQueue.Deltable()
          Creates a new delta.
 
Method Summary
 void decrementDelta(int diff)
          Decrements the delta value by the specified amount.
 int getDelta()
          Returns the current delta in application specific units.
 void incrementDelta(int diff)
          Increments the delta value by the specified amount.
 void setDelta(int delta)
          Sets the new value of delta in application specific units.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delta

protected int delta
Delta in application specific units.

Constructor Detail

DeltaQueue.Deltable

public DeltaQueue.Deltable()
Creates a new delta.

Method Detail

getDelta

public int getDelta()
Returns the current delta in application specific units.

Returns:
The current delta in application specific units.

setDelta

public void setDelta(int delta)
Sets the new value of delta in application specific units.

Parameters:
delta - New value of delta in application specific units.

incrementDelta

public void incrementDelta(int diff)
Increments the delta value by the specified amount.

Parameters:
diff - Amount for incrementing the delta value.

decrementDelta

public void decrementDelta(int diff)
Decrements the delta value by the specified amount.

Parameters:
diff - Amount for decrementing the delta value.