UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.lib.satin.view
Class MultiplexedMultiViewImpl

java.lang.Object
  |
  +--edu.berkeley.guir.lib.satin.view.ViewImpl
        |
        +--edu.berkeley.guir.lib.satin.view.DefaultMultiViewImpl
              |
              +--edu.berkeley.guir.lib.satin.view.MultiplexedMultiViewImpl
All Implemented Interfaces:
Cloneable, MultiView, SatinConstants, Serializable, View

public class MultiplexedMultiViewImpl
extends DefaultMultiViewImpl

Let's you explicitly choose one of many views.

This software is distributed under the Berkeley Software License.

 Revisions:  - SATIN-v1.0-1.0.0, Apr 20 2000, JH
               Created class
             - SATIN-v2.1-1.0.0, Aug 11 2000, JH
               Touched for SATIN release
 

Since:
JDK 1.3RC3
Version:
SATIN-v2.1-1.0.0, Aug 11 2000
Author:
Jason Hong ( jasonh@cs.berkeley.edu )
See Also:
Serialized Form

Inner classes inherited from class edu.berkeley.guir.lib.satin.SatinConstants
SatinConstants.ObjectPoolAffineTransform, SatinConstants.ObjectPoolPoint2D, SatinConstants.ObjectPoolPolygon2D, SatinConstants.ObjectPoolRectangle2D, SatinConstants.ObjectPoolStringBuffer, SatinConstants.UniqueAffineTransform, SatinConstants.UniquePoint2D, SatinConstants.UniquePolygon2D, SatinConstants.UniqueRectangle2D
 
Fields inherited from class edu.berkeley.guir.lib.satin.view.ViewImpl
gob, poly
 
Fields inherited from interface edu.berkeley.guir.lib.satin.SatinConstants
ABOVE, ALL, BAR, BELOW, clipboard, clprops, cmdqueue, cmdsubsys, CONTAINEDBY, CONTAINS, COORD_ABS, COORD_LOCAL, COORD_REL, DAMAGE_LATER, DAMAGE_NOW, DEBUG_GRAPHICS_OFFSET, DEBUG_STYLE_FILE, DEBUG_STYLE_GPROPERTY, DEEP, DEFAULT_POINT2D_POOL_SIZE, DEFAULT_POLYGON2D_POOL_SIZE, DEFAULT_RECTANGLE_POOL_SIZE, DEFAULT_REPAINT_THRESHOLD, DEFAULT_SELECT_THRESHOLD, DEFAULT_STRINGBUFFER_POOL_SIZE, DEFAULT_TRANSFORM_POOL_SIZE, DIR_CENTER, DIR_DOWN, DIR_DOWN_LEFT, DIR_DOWN_RIGHT, DIR_LEFT, DIR_RIGHT, DIR_UP, DIR_UP_LEFT, DIR_UP_RIGHT, FILTER_THRESHOLD, FIRST, FLOATING_PT_TOLERANCE, glprops, INTERSECTS, KEY_STYLE_DASHARRAY, KEY_STYLE_DASHPHASE, KEY_STYLE_DRAWCOLOR, KEY_STYLE_DRAWFONT, KEY_STYLE_DRAWTRANSPARENCY, KEY_STYLE_ENDCAP, KEY_STYLE_FILLCOLOR, KEY_STYLE_FILLTRANSPARENCY, KEY_STYLE_LINEJOIN, KEY_STYLE_LINEWIDTH, KEY_STYLE_MITERLIMIT, NEAR, NOTIFY_BOUNDS, NOTIFY_LAYER, NOTIFY_LOCATION, NOTIFY_STYLE, NOTIFY_TRANSFORM, poolPoints, poolPolys, poolRects, poolStrbuf, poolTx, rand, SATIN_DATA_DIRECTORY_DEFAULT, SATIN_DATA_DIRECTORY_GPROPERTY, SATIN_PROPERTIES_FILENAME, SHALLOW
 
Constructor Summary
MultiplexedMultiViewImpl()
          Does nothing.
 
Method Summary
 View add(View v)
          If no views are currently contained, makes the first view added the current view.
 Object clone()
          Implementation of the Sorceror's Apprentice algorithm.
protected  MultiplexedMultiViewImpl clone(MultiplexedMultiViewImpl vm)
          Clone chain.
 Polygon2D getBoundingPoints2DRef()
          Returns the bounding box of all of the contained AND visible views.
protected  Iterator getValidViews()
          Modified from parent class to just return the currently selected view.
 boolean isVisible()
          Checks if the selected view is visible.
 void render(SatinGraphics g)
          Render this view.
 void setCurrent(int index)
          Set which view is active.
 void setCurrent(View v)
          Set which view is active.
 
Methods inherited from class edu.berkeley.guir.lib.satin.view.DefaultMultiViewImpl
clear, clone, contains, get, getViewDisplayValue, iterator, remove, setAttachedGraphicalObject, setBoundingPoints2DRef, size, sortViewsByDisplayValue, toString
 
Methods inherited from class edu.berkeley.guir.lib.satin.view.ViewImpl
clone, getAttachedGraphicalObject, getName, setName, setVisible
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.berkeley.guir.lib.satin.view.View
getAttachedGraphicalObject, getName, setName, setVisible
 

Constructor Detail

MultiplexedMultiViewImpl

public MultiplexedMultiViewImpl()
Does nothing.
Method Detail

add

public View add(View v)
If no views are currently contained, makes the first view added the current view.
Overrides:
add in class DefaultMultiViewImpl
Following copied from interface: edu.berkeley.guir.lib.satin.view.MultiView
Parameters:
v - is the view to add.
Returns:
a reference to v.

setCurrent

public void setCurrent(int index)
Set which view is active.

setCurrent

public void setCurrent(View v)
Set which view is active.

getBoundingPoints2DRef

public Polygon2D getBoundingPoints2DRef()
Description copied from class: DefaultMultiViewImpl
Returns the bounding box of all of the contained AND visible views.
Overrides:
getBoundingPoints2DRef in class DefaultMultiViewImpl
Following copied from interface: edu.berkeley.guir.lib.satin.view.View
Returns:
the polygon bounds.

getValidViews

protected Iterator getValidViews()
Modified from parent class to just return the currently selected view.
Overrides:
getValidViews in class DefaultMultiViewImpl

isVisible

public boolean isVisible()
Checks if the selected view is visible.
Overrides:
isVisible in class DefaultMultiViewImpl
Following copied from interface: edu.berkeley.guir.lib.satin.view.View
Returns:
true if the view is visible, false otherwise.

render

public void render(SatinGraphics g)
Description copied from interface: View
Render this view. Use (0,0) as the top-left corner of this view. Any transformations that the attached GraphicalObject has will automatically be applied, so all you have to do is render the view normally.
Overrides:
render in class DefaultMultiViewImpl

clone

public Object clone()
Description copied from interface: View
Implementation of the Sorceror's Apprentice algorithm. Needs to be a DEEP clone.
Overrides:
clone in class DefaultMultiViewImpl

clone

protected MultiplexedMultiViewImpl clone(MultiplexedMultiViewImpl vm)
Clone chain.

Copyright Information