public class FXViewer extends AbstractViewer<javafx.scene.Node>
FXViewer
is an AbstractViewer
that is parameterized by
Node
. It manages a ScrollPaneEx
and an FXGridLayer
.
The scroll pane displays the viewer's contents and adds scrollbars when
necessary. The grid layer displays a grid in the background when enabled.IAdaptable.Bound<A extends IAdaptable>
Modifier and Type | Field and Description |
---|---|
protected FXGridLayer |
gridLayer
The
FXGridLayer that displays the grid in the background. |
protected ScrollPaneEx |
scrollPane
The
ScrollPaneEx that displays the viewer's contents. |
pcs
ADAPTERS_PROPERTY
ACTIVE_PROPERTY
Constructor and Description |
---|
FXViewer() |
Modifier and Type | Method and Description |
---|---|
FXDomain |
getDomain()
|
FXGridLayer |
getGridLayer()
Returns the
FXGridLayer that is managed by this FXViewer . |
javafx.scene.Scene |
getScene()
|
ScrollPaneEx |
getScrollPane()
Returns the
ScrollPaneEx that is managed by this FXViewer
. |
void |
reveal(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> visualPart)
Ensure that the visual of the given
IVisualPart is visible in
this viewer. |
activate, addPropertyChangeListener, deactivate, dispose, getAdaptable, getAdapter, getAdapter, getAdapter, getAdapters, getAdapters, getContentPartMap, getRootPart, getVisualPartMap, isActive, removePropertyChangeListener, setAdaptable, setAdapter, setAdapter, setAdapter, setAdapters, unsetAdapter
protected ScrollPaneEx scrollPane
ScrollPaneEx
that displays the viewer's contents.protected FXGridLayer gridLayer
FXGridLayer
that displays the grid in the background.public FXDomain getDomain()
IViewer
getDomain
in interface IViewer<javafx.scene.Node>
getDomain
in class AbstractViewer<javafx.scene.Node>
IDomain
this IViewer
is bound to, or
null
if this IViewer
is not (yet) bound to
an IDomain
.IViewer.getDomain()
public FXGridLayer getGridLayer()
FXGridLayer
that is managed by this FXViewer
.FXGridLayer
that is managed by this FXViewer
.public javafx.scene.Scene getScene()
Scene
in which the ScrollPaneEx
of this
FXViewer
is displayed.public ScrollPaneEx getScrollPane()
ScrollPaneEx
that is managed by this FXViewer
.ScrollPaneEx
that is managed by this FXViewer
.public void reveal(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> visualPart)
IViewer
IVisualPart
is visible in
this viewer.visualPart
- The IVisualPart
that is to be revealed.Copyright (c) 2014 itemis AG and others. All rights reserved.