|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.metnet.birdseyeview.AbstractView
public abstract class AbstractView
The AbstractView Class is a template for subclasses to implement specific Bird's Eye Views.
| Field Summary | |
|---|---|
protected static java.lang.String |
algorithm
|
protected java.util.ArrayList |
annotations
|
protected BirdsEyeView |
birdsEyeView
|
protected java.awt.Dimension |
size
|
protected ViewInfo |
viewInfo
|
| Constructor Summary | |
|---|---|
protected |
AbstractView(ViewInfo vi,
BirdsEyeView bev,
java.util.ArrayList anns,
java.awt.Dimension s,
java.lang.String alg)
Constructor. |
| Method Summary | |
|---|---|
abstract java.awt.Color |
getBackground()
Subclasses must indicate their background color so the parent can blend in if the display area is bigger than the view. |
abstract java.awt.Component |
getComponent()
Subclasses must return some sort of component to display as their view. |
java.awt.LayoutManager |
getLayout()
This method returns a layout which centers the view in the parent. |
ViewInfo |
getViewInfo()
This method returns the view info object for this view. |
void |
goDown()
This method does nothing by default. |
void |
goUp()
This method does nothing by default. |
abstract void |
loadConfiguration()
|
void |
loadData(java.util.ArrayList newAnnotations)
This method resets the annotation data and instructs subclasses to reload the data. |
abstract void |
reloadData()
Subclasses must reload the annotation data and modify their displays accordingly. |
abstract void |
setlevelCapacity(int c)
|
void |
toggleMapLabels(boolean booboo)
This method does nothing by default. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BirdsEyeView birdsEyeView
protected ViewInfo viewInfo
protected java.util.ArrayList annotations
protected java.awt.Dimension size
protected static java.lang.String algorithm
| Constructor Detail |
|---|
protected AbstractView(ViewInfo vi,
BirdsEyeView bev,
java.util.ArrayList anns,
java.awt.Dimension s,
java.lang.String alg)
vi - bev - anns - ArrayList of Annotation objectss - Size of viewalg - Treemaps| Method Detail |
|---|
public void goUp()
public void goDown()
public void toggleMapLabels(boolean booboo)
booboo - public java.awt.LayoutManager getLayout()
public void loadData(java.util.ArrayList newAnnotations)
newAnnotations - ArrayList of Annotation objectspublic abstract void loadConfiguration()
public ViewInfo getViewInfo()
public abstract java.awt.Component getComponent()
public abstract java.awt.Color getBackground()
public abstract void reloadData()
public abstract void setlevelCapacity(int c)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||