|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectjava.awt.event.ComponentAdapter
de.lmu.ifi.dbs.elki.visualization.batikutil.LazyCanvasResizer
public abstract class LazyCanvasResizer
Class to lazily process canvas resize events by applying a threshold.
| Field Summary | |
|---|---|
(package private) double |
activeRatio
Last ratio of the Canvas applied |
(package private) Component |
component
Component the ratio applies to. |
static double |
DEFAULT_THRESHOLD
Default threshold for resizing. |
(package private) double |
threshold
Active threshold |
| Constructor Summary | |
|---|---|
LazyCanvasResizer(Component component)
Simplified constructor using the default threshold DEFAULT_THRESHOLD |
|
LazyCanvasResizer(Component component,
double threshold)
Full constructor. |
|
| Method Summary | |
|---|---|
void |
componentResized(ComponentEvent e)
React to a component resize event. |
abstract void |
executeResize(double newratio)
Callback function that needs to be overridden with actual implementations. |
double |
getActiveRatio()
Get the components last applied ratio. |
double |
getCurrentRatio()
Get the components current ratio. |
| Methods inherited from class java.awt.event.ComponentAdapter |
|---|
componentHidden, componentMoved, componentShown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double DEFAULT_THRESHOLD
double threshold
double activeRatio
Component component
| Constructor Detail |
|---|
public LazyCanvasResizer(Component component,
double threshold)
component - Component to trackthreshold - Thresholdpublic LazyCanvasResizer(Component component)
DEFAULT_THRESHOLD
component - Component to track.| Method Detail |
|---|
public void componentResized(ComponentEvent e)
componentResized in interface ComponentListenercomponentResized in class ComponentAdapterpublic final double getCurrentRatio()
public abstract void executeResize(double newratio)
newratio - New ratio to apply.public double getActiveRatio()
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||