public class ZestFxUiView extends FXView
ZestFxUiView
is an extension to the FXView
. It creates an
Injector
based on the ZestFxModule
and ZestFxUiModule
by default. Other than that, it provides a method
to
change the Graph
that is displayed.PROP_TITLE
Constructor and Description |
---|
ZestFxUiView()
Constructs a new
ZestFxUiView . |
ZestFxUiView(com.google.inject.Injector injector)
Constructs a new
ZestFxUiView . |
Modifier and Type | Method and Description |
---|---|
void |
setGraph(Graph graph)
Changes the contents of the
FXView.getViewer() to the given
Graph . |
activate, createCanvas, createPartControl, deactivate, dispose, getAdapter, getCanvas, getDomain, getViewer, hookViewers, init, setFocus, unhookViewers
checkSite, getViewSite, init, saveState, setContentDescription, setInitializationData, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
public ZestFxUiView()
ZestFxUiView
. Uses an Injector
that is
created from the ZestFxModule
and ZestFxUiModule
to
inject its members.public ZestFxUiView(com.google.inject.Injector injector)
ZestFxUiView
. Uses the given Injector
to
inject its members.injector
- The Injector
that is used to inject the members of
this ZestFxUiView
.public void setGraph(Graph graph)
FXView.getViewer()
to the given
Graph
. The contents are changed by changing the
ContentModel
.graph
- The new contents for the viewer.Copyright (c) 2014 itemis AG and others. All rights reserved.