Class DeltaQueue.Deltable
java.lang.Object
org.pushingpixels.lafwidget.utils.DeltaQueue.Deltable
- Direct Known Subclasses:
TabPreviewThread.TabPreviewInfo
- Enclosing class:
DeltaQueue
Base class for entries in a
DeltaQueue.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecrementDelta(int diff) Decrements the delta value by the specified amount.intgetDelta()Returns the current delta in application specific units.voidincrementDelta(int diff) Increments the delta value by the specified amount.voidsetDelta(int delta) Sets the new value of delta in application specific units.
-
Field Details
-
delta
protected int deltaDelta in application specific units.
-
-
Constructor Details
-
Deltable
public Deltable()Creates a new delta.
-
-
Method Details
-
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.
-