org.opensourcephysics.cabrillo.tracker
Interface TView

All Superinterfaces:
java.util.EventListener, java.beans.PropertyChangeListener
All Known Implementing Classes:
MainTView, PageTView, PlotTView, TableTView, TrackChooserTView, WorldTView

public interface TView
extends java.beans.PropertyChangeListener

This is a view of a tracker panel that can be added to a TViewChooser. Classes that implement TView must descend from JComponent.

Author:
Douglas Brown

Method Summary
 void cleanup()
          Cleans up the view
 java.util.ArrayList<java.awt.Component> getToolBarComponents()
          Gets the toolbar components for this view
 TrackerPanel getTrackerPanel()
          Gets the TrackerPanel containing the track data
 javax.swing.Icon getViewIcon()
          Gets the icon for this view
 java.lang.String getViewName()
          Gets the name of the view
 void init()
          Initializes the view
 boolean isCustomState()
          Returns true if this view is in a custom state.
 void refresh()
          Refreshes the view
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Method Detail

init

void init()
Initializes the view


refresh

void refresh()
Refreshes the view


cleanup

void cleanup()
Cleans up the view


getTrackerPanel

TrackerPanel getTrackerPanel()
Gets the TrackerPanel containing the track data

Returns:
the tracker panel containing the data to be viewed

getViewName

java.lang.String getViewName()
Gets the name of the view

Returns:
the name of the view

getViewIcon

javax.swing.Icon getViewIcon()
Gets the icon for this view

Returns:
the icon for the view

getToolBarComponents

java.util.ArrayList<java.awt.Component> getToolBarComponents()
Gets the toolbar components for this view

Returns:
an ArrayList of components to be added to a toolbar

isCustomState

boolean isCustomState()
Returns true if this view is in a custom state.

Returns:
true if in a custom state, false if in the default state