Package org.eclipse.gef.mvc.fx.viewer
Class InfiniteCanvasViewer
java.lang.Object
org.eclipse.gef.mvc.fx.viewer.InfiniteCanvasViewer
- All Implemented Interfaces:
- IActivatable,- IAdaptable,- IAdaptable.Bound<IDomain>,- IDisposable,- IViewer
The 
InfiniteCanvasViewer is an IViewer that manages an
 InfiniteCanvas to display the viewer's contents.- 
Property SummaryPropertiesTypePropertyDescriptionfinal javafx.beans.property.ReadOnlyBooleanPropertyjavafx.beans.property.ReadOnlyObjectProperty<IDomain>javafx.beans.property.ReadOnlyMapProperty<AdapterKey<?>,Object> javafx.beans.property.ReadOnlyMapProperty<Object,IContentPart<? extends javafx.scene.Node>> Returns an unmodifiable read-only map property that contains the registeredIContentParts mapped to their respective content.javafx.beans.property.ReadOnlyListProperty<Object>A read-only property containing the current content objects.javafx.beans.property.ReadOnlyBooleanPropertyReturns aReadOnlyBooleanPropertythat represents the "focused" state of thisIViewer.javafx.beans.property.ReadOnlyMapProperty<javafx.scene.Node,IVisualPart<? extends javafx.scene.Node>> Returns an unmodifiable read-only map property that contains the registeredIVisualParts mapped to their respective visual.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptableIAdaptable.Bound<A extends IAdaptable>Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable.BoundIAdaptable.Bound.Impl<T extends IAdaptable>
- 
Field SummaryFields inherited from interface org.eclipse.gef.common.activate.IActivatableACTIVE_PROPERTYFields inherited from interface org.eclipse.gef.common.adapt.IAdaptableADAPTERS_PROPERTYFields inherited from interface org.eclipse.gef.mvc.fx.viewer.IViewerCONTENT_PART_MAP_PROPERTY, CONTENTS_PROPERTY, VISUAL_PART_MAP_PROPERTY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal voidactivate()protected voidActivates the adapters registered at thisInfiniteCanvasViewer.final javafx.beans.property.ReadOnlyBooleanPropertyjavafx.beans.property.ReadOnlyObjectProperty<IDomain>javafx.beans.property.ReadOnlyMapProperty<AdapterKey<?>,Object> javafx.beans.property.ReadOnlyMapProperty<Object,IContentPart<? extends javafx.scene.Node>> Returns an unmodifiable read-only map property that contains the registeredIContentParts mapped to their respective content.javafx.beans.property.ReadOnlyListProperty<Object>A read-only property containing the current content objects.final voidprotected voidDeactivates the adapters registered at thisInfiniteCanvasViewer.voiddispose()protected voidActivates thisInfiniteCanvasViewer, which activates its adapters.protected voidDeactivates thisInfiniteCanvasViewer, which deactivates its adapters.Gets the value of the property adaptable.<T> TgetAdapter(TypeToken<T> key) <T> TgetAdapter(Class<T> classKey) <T> TgetAdapter(AdapterKey<T> key) <T> AdapterKey<T>getAdapterKey(T adapter) javafx.collections.ObservableMap<AdapterKey<?>,Object> Gets the value of the property adapters.<T> Map<AdapterKey<? extends T>,T> getAdapters(TypeToken<? super T> key) <T> Map<AdapterKey<? extends T>,T> getAdapters(Class<? super T> classKey) Returns theInfiniteCanvasthat is managed by thisInfiniteCanvasViewer.Map<Object,IContentPart<? extends javafx.scene.Node>> Returns theMapfor registeringIContentParts by their content.javafx.collections.ObservableList<Object>Gets the value of the property contents.IRootPart<? extends javafx.scene.Node>Returns theIRootPartof this viewer.javafx.scene.ScenegetScene()Map<javafx.scene.Node,IVisualPart<? extends javafx.scene.Node>> Returns theMapfor registeringIVisualParts by their visual.final booleanisActive()Gets the value of the property active.booleanGets the value of the property viewerFocused.voidreveal(IVisualPart<? extends javafx.scene.Node> visualPart) Ensure that the visual of the givenIVisualPartis visible in this viewer.voidsetAdaptable(IDomain domain) Sets the value of the property adaptable.<T> voidsetAdapter(TypeToken<T> adapterType, T adapter) <T> voidsetAdapter(TypeToken<T> adapterType, T adapter, String role) <T> voidsetAdapter(T adapter) <T> voidsetAdapter(T adapter, String role) <T> voidunsetAdapter(T adapter) javafx.beans.property.ReadOnlyBooleanPropertyReturns aReadOnlyBooleanPropertythat represents the "focused" state of thisIViewer.javafx.beans.property.ReadOnlyMapProperty<javafx.scene.Node,IVisualPart<? extends javafx.scene.Node>> Returns an unmodifiable read-only map property that contains the registeredIVisualParts mapped to their respective visual.
- 
Property Details- 
activepublic final javafx.beans.property.ReadOnlyBooleanProperty activeProperty- Specified by:
- activePropertyin interface- IActivatable
- See Also:
 
- 
adaptable- Specified by:
- adaptablePropertyin interface- IAdaptable.Bound<IDomain>
- See Also:
 
- 
adapters- Specified by:
- adaptersPropertyin interface- IAdaptable
- See Also:
 
- 
contentPartMappublic javafx.beans.property.ReadOnlyMapProperty<Object,IContentPart<? extends javafx.scene.Node>> contentPartMapProperty- Specified by:
- contentPartMapPropertyin interface- IViewer
- Returns:
- An unmodifiable read-only map property.
- See Also:
 
- 
contents- Specified by:
- contentsPropertyin interface- IViewer
- Returns:
- A read-only list property named IViewer.CONTENTS_PROPERTY.
- See Also:
 
- 
viewerFocusedpublic javafx.beans.property.ReadOnlyBooleanProperty viewerFocusedProperty- Specified by:
- viewerFocusedPropertyin interface- IViewer
- Returns:
- A ReadOnlyBooleanPropertythat represents the "focused" state of thisIViewer.
- See Also:
 
- 
visualPartMappublic javafx.beans.property.ReadOnlyMapProperty<javafx.scene.Node,IVisualPart<? extends javafx.scene.Node>> visualPartMapProperty- Specified by:
- visualPartMapPropertyin interface- IViewer
- Returns:
- An unmodifiable read-only map property.
- See Also:
 
 
- 
- 
Constructor Details- 
InfiniteCanvasViewerpublic InfiniteCanvasViewer()Creates a newInfiniteCanvasViewer.
 
- 
- 
Method Details- 
activatepublic final void activate()- Specified by:
- activatein interface- IActivatable
 
- 
activateAdaptersprotected void activateAdapters()Activates the adapters registered at thisInfiniteCanvasViewer.
- 
activePropertypublic final javafx.beans.property.ReadOnlyBooleanProperty activeProperty()- Specified by:
- activePropertyin interface- IActivatable
- See Also:
 
- 
adaptableProperty- Specified by:
- adaptablePropertyin interface- IAdaptable.Bound<IDomain>
- See Also:
 
- 
adaptersProperty- Specified by:
- adaptersPropertyin interface- IAdaptable
- See Also:
 
- 
contentPartMapPropertypublic javafx.beans.property.ReadOnlyMapProperty<Object,IContentPart<? extends javafx.scene.Node>> contentPartMapProperty()Description copied from interface:IViewerReturns an unmodifiable read-only map property that contains the registeredIContentParts mapped to their respective content.- Specified by:
- contentPartMapPropertyin interface- IViewer
- Returns:
- An unmodifiable read-only map property.
- See Also:
 
- 
contentsPropertyDescription copied from interface:IViewerA read-only property containing the current content objects.- Specified by:
- contentsPropertyin interface- IViewer
- Returns:
- A read-only list property named IViewer.CONTENTS_PROPERTY.
- See Also:
 
- 
deactivatepublic final void deactivate()- Specified by:
- deactivatein interface- IActivatable
 
- 
deactivateAdaptersprotected void deactivateAdapters()Deactivates the adapters registered at thisInfiniteCanvasViewer.
- 
disposepublic void dispose()- Specified by:
- disposein interface- IDisposable
 
- 
doActivateprotected void doActivate()Activates thisInfiniteCanvasViewer, which activates its adapters.
- 
doDeactivateprotected void doDeactivate()Deactivates thisInfiniteCanvasViewer, which deactivates its adapters.
- 
getAdaptableGets the value of the property adaptable.- Specified by:
- getAdaptablein interface- IAdaptable.Bound<IDomain>
- Property description:
 
- 
getAdapter- Specified by:
- getAdapterin interface- IAdaptable
 
- 
getAdapter- Specified by:
- getAdapterin interface- IAdaptable
 
- 
getAdapter- Specified by:
- getAdapterin interface- IAdaptable
 
- 
getAdapterKey- Specified by:
- getAdapterKeyin interface- IAdaptable
 
- 
getAdaptersGets the value of the property adapters.- Specified by:
- getAdaptersin interface- IAdaptable
- Property description:
 
- 
getAdapters- Specified by:
- getAdaptersin interface- IAdaptable
 
- 
getAdapters- Specified by:
- getAdaptersin interface- IAdaptable
 
- 
getCanvasReturns theInfiniteCanvasthat is managed by thisInfiniteCanvasViewer.- Specified by:
- getCanvasin interface- IViewer
- Returns:
- The InfiniteCanvasthat is managed by thisInfiniteCanvasViewer.
 
- 
getContentPartMapDescription copied from interface:IViewerReturns theMapfor registeringIContentParts by their content.- Specified by:
- getContentPartMapin interface- IViewer
- Returns:
- The content part map
- See Also:
 
- 
getContentsGets the value of the property contents.- Specified by:
- getContentsin interface- IViewer
- Property description:
- Returns:
- An ObservableList.
 
- 
getDomainDescription copied from interface:IViewer
- 
getRootPartDescription copied from interface:IViewerReturns theIRootPartof this viewer. TheIRootPartis a specialIVisualPartthat serves as the parent to all containedIContentParts,IHandleParts, andIFeedbackParts.- Specified by:
- getRootPartin interface- IViewer
- Returns:
- The IRootPartof this viewer.
 
- 
getScenepublic javafx.scene.Scene getScene()- Returns:
- The Scenein which theInfiniteCanvasof thisInfiniteCanvasVieweris displayed.
 
- 
getVisualPartMapDescription copied from interface:IViewerReturns theMapfor registeringIVisualParts by their visual. This map is used for hit-testing. Hit testing is performed by first determining which visual is hit, and then mapping that to anIVisualPart.Note, that when looking up an IVisualPartfor a given visual in the map, it is required to walk up the visual hierarchy until a registered visual is found, because anIVisualPartonly has to register its "main" visual (i.e. the one returned byIVisualPart.getVisual()) at the visual-part-map, but potential children visuals do not have to be registered.- Specified by:
- getVisualPartMapin interface- IViewer
- Returns:
- The visual-to-visual-part map.
- See Also:
 
- 
isActivepublic final boolean isActive()Gets the value of the property active.- Specified by:
- isActivein interface- IActivatable
- Property description:
 
- 
isViewerFocusedpublic boolean isViewerFocused()Gets the value of the property viewerFocused.- Specified by:
- isViewerFocusedin interface- IViewer
- Property description:
- Returns:
- The value of the property IViewer.viewerFocusedProperty().
 
- 
revealDescription copied from interface:IViewerEnsure that the visual of the givenIVisualPartis visible in this viewer.- Specified by:
- revealin interface- IViewer
- Parameters:
- visualPart- The- IVisualPartthat is to be revealed.
 
- 
setAdaptableSets the value of the property adaptable.- Specified by:
- setAdaptablein interface- IAdaptable.Bound<IDomain>
- Property description:
 
- 
setAdapterpublic <T> void setAdapter(T adapter) - Specified by:
- setAdapterin interface- IAdaptable
 
- 
setAdapter- Specified by:
- setAdapterin interface- IAdaptable
 
- 
setAdapter- Specified by:
- setAdapterin interface- IAdaptable
 
- 
setAdapter- Specified by:
- setAdapterin interface- IAdaptable
 
- 
unsetAdapterpublic <T> void unsetAdapter(T adapter) - Specified by:
- unsetAdapterin interface- IAdaptable
 
- 
viewerFocusedPropertypublic javafx.beans.property.ReadOnlyBooleanProperty viewerFocusedProperty()Description copied from interface:IViewerReturns aReadOnlyBooleanPropertythat represents the "focused" state of thisIViewer. AnIVieweris focused when its visualization has keyboard focus and its window is active, i.e. it is focused if it will receive keyboard events.- Specified by:
- viewerFocusedPropertyin interface- IViewer
- Returns:
- A ReadOnlyBooleanPropertythat represents the "focused" state of thisIViewer.
- See Also:
 
- 
visualPartMapPropertypublic javafx.beans.property.ReadOnlyMapProperty<javafx.scene.Node,IVisualPart<? extends javafx.scene.Node>> visualPartMapProperty()Description copied from interface:IViewerReturns an unmodifiable read-only map property that contains the registeredIVisualParts mapped to their respective visual.- Specified by:
- visualPartMapPropertyin interface- IViewer
- Returns:
- An unmodifiable read-only map property.
- See Also:
 
 
-