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 SummaryNested Classes
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionvoidListen to the PROPERTY_ZOOM properties.intintvoidvoidsetZoomXFactor(int factor, boolean valueIsAdjusting) Set the X zoom factor.voidAsk to adjust automatically the zoomX factor to fit the editor's content.voidsetZoomYFactor(int factor, boolean valueIsAdjusting) Set the Y zoom factor.voidAsk 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- 
getZoomCapabilitiesZoomable.Capabilities getZoomCapabilities()
- 
getZoomYFactorint getZoomYFactor()- Returns:
- A value between 0 and 100 included.
 
- 
setZoomYFactorvoid 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).
 
- 
setZoomYFactorToFitContentvoid setZoomYFactorToFitContent()Ask to adjust automatically the zoomY factor to fit the editor's content.
- 
getZoomXFactorint getZoomXFactor()- Returns:
- A value between 0 and 100 included.
 
- 
setZoomXFactorvoid 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).
 
- 
setZoomXFactorToFitContentvoid setZoomXFactorToFitContent()Ask to adjust automatically the zoomX factor to fit the editor's content.
- 
addPropertyListenerListen to the PROPERTY_ZOOM properties.- Parameters:
- l-
 
- 
removePropertyListener
 
-