public class FXViewer extends AbstractViewer<javafx.scene.Node>
FXViewer is an AbstractViewer that is parameterized by
Node. It manages an InfiniteCanvas that displays the viewer's
contents, adds scrollbars when necessary, and renders a background grid.| Type | Property and Description |
|---|---|
javafx.beans.property.ReadOnlyBooleanProperty |
viewerFocused
Returns a
ReadOnlyBooleanProperty that represents the "focused"
state of this IViewer. |
active, adaptable, adaptersIAdaptable.Bound<A extends IAdaptable>IAdaptable.Bound.Impl<T extends IAdaptable>| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_STYLE
Defines the default CSS styling for the
InfiniteCanvas: no
background, no border. |
static java.lang.String |
FOCUSED_STYLE
Defines the CSS styling that is used to highlight a focused viewer.
|
protected InfiniteCanvas |
infiniteCanvas
The
InfiniteCanvas that displays the viewer's contents. |
ADAPTERS_PROPERTYACTIVE_PROPERTY| Modifier and Type | Method and Description |
|---|---|
InfiniteCanvas |
getCanvas()
Returns the
InfiniteCanvas that is managed by this
FXViewer . |
FXDomain |
getDomain()
|
javafx.scene.Scene |
getScene()
|
boolean |
isViewerFocused()
Gets the value of the property viewerFocused.
|
boolean |
isViewerVisual(javafx.scene.Node node)
Returns
true if the given visual is contained within this
IViewer. |
void |
reveal(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> visualPart)
Ensure that the visual of the given
IVisualPart is visible in
this viewer. |
javafx.beans.property.ReadOnlyBooleanProperty |
viewerFocusedProperty()
Returns a
ReadOnlyBooleanProperty that represents the "focused"
state of this IViewer. |
activate, activeProperty, adaptableProperty, adaptersProperty, deactivate, dispose, getAdaptable, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, getContentPartMap, getRootPart, getVisualPartMap, isActive, setAdaptable, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapterpublic javafx.beans.property.ReadOnlyBooleanProperty viewerFocusedProperty
isViewerFocused()public static final java.lang.String DEFAULT_STYLE
InfiniteCanvas: no
background, no border.public static final java.lang.String FOCUSED_STYLE
protected InfiniteCanvas infiniteCanvas
InfiniteCanvas that displays the viewer's contents.public FXViewer()
FXViewer.public InfiniteCanvas getCanvas()
InfiniteCanvas that is managed by this
FXViewer .InfiniteCanvas that is managed by this
FXViewer .public FXDomain getDomain()
IViewergetDomain 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 javafx.scene.Scene getScene()
Scene in which the InfiniteCanvas of this
FXViewer is displayed.public boolean isViewerFocused()
IViewer.viewerFocusedProperty().public boolean isViewerVisual(javafx.scene.Node node)
IViewerpublic void reveal(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> visualPart)
IViewerIVisualPart is visible in
this viewer.visualPart - The IVisualPart that is to be revealed.public javafx.beans.property.ReadOnlyBooleanProperty viewerFocusedProperty()
IViewerReadOnlyBooleanProperty that represents the "focused"
state of this IViewer. An IViewer is focused when its
visualization has keyboard focus and its window is active, i.e. it is
focused if it will receive keyboard events.isViewerFocused()Copyright (c) 2014 itemis AG and others. All rights reserved.