public interface ScalableComponent
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ScalableComponent.UpdateListener |
| Modifier and Type | Method and Description |
|---|---|
void |
addUpdateListener(ScalableComponent.UpdateListener listener)
Adds an updatelistener to this scalable component.
|
javax.swing.JComponent |
getComponent()
Returns the component that will be scaled using getScale and setScale
methods
Most implementations will actually override JComponent and return
this in this method. |
double |
getScale()
Returns the current scale.
|
void |
removeUpdateListener(ScalableComponent.UpdateListener listener)
Removes an updatelistener from this scalable component.
|
void |
setScale(double newScale)
Sets the current scale.
|
javax.swing.JComponent getComponent()
this in this method.double getScale()
void setScale(double newScale)
newValue - the new scalevoid addUpdateListener(ScalableComponent.UpdateListener listener)
listener - void removeUpdateListener(ScalableComponent.UpdateListener listener)
listener -