Top Description Fields Constructors Methods
com.calendarfx.view.print

public Class ZoomPane

extends CalendarFXControl
Class Inheritance
Imports
com.calendarfx.view.CalendarFXControl, impl.com.calendarfx.view.print.ZoomPaneSkin, javafx.beans.property.DoubleProperty, .ObjectProperty, .SimpleDoubleProperty, .SimpleObjectProperty, javafx.scene.control.Skin, javafx.scene.layout.Region, java.util.Objects

The zoom pane manages a zoom property, which is used to scale the pane's content.

Field Summary

Modifier and TypeField and Description
private final ObjectProperty<Region>
public static final String
public static final double
public static final double
private final DoubleProperty

Constructor Summary

AccessConstructor and Description
public
ZoomPane()

Constructs a new zoom pane.

public
ZoomPane(Region
the initial content
content
)

Constructs a new zoom pane.

Method Summary

Modifier and TypeMethod and Description
public final ObjectProperty<Region>
protected Skin<?>
createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

Create a new instance of the default skin for this control.

public final Region
public final double
public final void
setContent(Region content)

public final void
setZoom(double zoom)

public final DoubleProperty
Inherited from com.calendarfx.view.CalendarFXControl:
getPropertySheetItemsgetUserAgentStylesheet

Field Detail

contentback to summary
private final ObjectProperty<Region> content
DEFAULT_STYLEback to summary
public static final String DEFAULT_STYLE
MAX_ZOOM_VALUEback to summary
public static final double MAX_ZOOM_VALUE
MIN_ZOOM_VALUEback to summary
public static final double MIN_ZOOM_VALUE
zoomback to summary
private final DoubleProperty zoom

Constructor Detail

ZoomPaneback to summary
public ZoomPane()

Constructs a new zoom pane.

ZoomPaneback to summary
public ZoomPane(Region content)

Constructs a new zoom pane.

Parameters
content:Region

the initial content

Method Detail

contentPropertyback to summary
public final ObjectProperty<Region> contentProperty()
createDefaultSkinback to summary
protected Skin<?> createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

Doc from javafx.scene.control.Control.createDefaultSkin.

Create a new instance of the default skin for this control. This is called to create a skin for the control if no skin is provided via CSS -fx-skin or set explicitly in a sub-class with setSkin(...).

Returns:Skin<?>

new instance of default skin for this control. If null then the control will have no skin unless one is provided by css.

Annotations
@Override
getContentback to summary
public final Region getContent()
getZoomback to summary
public final double getZoom()
setContentback to summary
public final void setContent(Region content)
setZoomback to summary
public final void setZoom(double zoom)
zoomPropertyback to summary
public final DoubleProperty zoomProperty()