edu.cmu.sun.view
Class WindowContentView
java.lang.Object
Component3D
edu.cmu.sun.view.WindowContentView
public class WindowContentView
- extends Component3D
creating a ListView is expensive. So, we try to recycle them here
between layouts.
- Author:
- Administrator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
abstractListViews
java.util.List<AbstractListView> abstractListViews
recycledListViews
java.util.LinkedList<ListView> recycledListViews
contents
Component3D contents
WindowContentView
public WindowContentView()
syncToLayout
public void syncToLayout(Layout activeLayout,
AnimationPlan plan)
- make this windowContents match the given layout.
does this right away
- Parameters:
activeLayout -
getViewForLayout
private AbstractListView getViewForLayout(LayoutComponent layoutComp,
AnimationPlan plan,
javax.vecmath.Vector3f position)
cleanComponents
private void cleanComponents(AnimationPlan plan)
- we remove all components in abstractListViews
we place ListViews in the recycle bin.
- Parameters:
plan -
makeNewViewForLayout
private AbstractListView makeNewViewForLayout(LayoutComponent layoutComp)
update
public void update(AnimationPlan plan,
int msec)
getItemViewMatchingModel
public ItemView getItemViewMatchingModel(ItemModel itemModel)