Package org.jjazz.uiutilities.api
Interface Zoomable
public interface Zoomable
Zooming capabilities for an editor.
An editor which offers zoomable capabilities should put its Zoomable implementation in its TopComponent lookup, so that it will be automatically connected to the application-level X/Y zoom sliders when its TopComponent is active.
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Listen to the PROPERTY_ZOOM properties.int
int
void
void
setZoomXFactor
(int factor, boolean valueIsAdjusting) Set the X zoom factor.void
Ask to adjust automatically the zoomX factor to fit the editor's content.void
setZoomYFactor
(int factor, boolean valueIsAdjusting) Set the Y zoom factor.void
Ask to adjust automatically the zoomY factor to fit the editor's content.
-
Field Details
-
PROPERTY_ZOOM_X
- See Also:
-
PROPERTY_ZOOM_Y
- See Also:
-
-
Method Details
-
getZoomCapabilities
Zoomable.Capabilities getZoomCapabilities() -
getZoomYFactor
int getZoomYFactor()- Returns:
- A value between 0 and 100 included.
-
setZoomYFactor
void setZoomYFactor(int factor, boolean valueIsAdjusting) Set the Y zoom factor.If value is changed fire a PROPERTY_ZOOM_Y change event.
- Parameters:
factor
- A value between 0 and 100 included.valueIsAdjusting
- If true the value is still being adjusted, ie the user move is not finished (eg when moving a slider with the mouse).
-
setZoomYFactorToFitContent
void setZoomYFactorToFitContent()Ask to adjust automatically the zoomY factor to fit the editor's content. -
getZoomXFactor
int getZoomXFactor()- Returns:
- A value between 0 and 100 included.
-
setZoomXFactor
void setZoomXFactor(int factor, boolean valueIsAdjusting) Set the X zoom factor.If value is changed fire a PROPERTY_ZOOM_X change event.
- Parameters:
factor
- A value between 0 and 100 included.valueIsAdjusting
- If true the value is still being adjusted, ie the user move is not finished (eg when moving a slider with the mouse).
-
setZoomXFactorToFitContent
void setZoomXFactorToFitContent()Ask to adjust automatically the zoomX factor to fit the editor's content. -
addPropertyListener
Listen to the PROPERTY_ZOOM properties.- Parameters:
l
-
-
removePropertyListener
-