Search this API

y.view
Interface ViewContainer

All Known Implementing Classes:
Graph2DView, Overview

public interface ViewContainer

A ViewContainer is the owner of a set of views. One of its views is always marked as its current view, i.e. the one view that is active.

This interface informs registered ViewChangeListener instances that its current view has changed.

A ViewContainer provides a view control that is used for all of its views.

 

Method Summary
 void addViewChangeListener(ViewChangeListener l)
          Registers a ViewChangeListener to the ViewContainer.
 View getCurrentView()
          Returns the currently active view in the ViewContainer.
 ViewControl getViewControl()
          Returns the ViewControl that is used for all the views of the ViewContainer.
 

Method Detail

getCurrentView

View getCurrentView()
Returns the currently active view in the ViewContainer.


addViewChangeListener

void addViewChangeListener(ViewChangeListener l)
Registers a ViewChangeListener to the ViewContainer.


getViewControl

ViewControl getViewControl()
Returns the ViewControl that is used for all the views of the ViewContainer.


© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.