|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.metnet.birdseyeview.AbstractView
edu.iastate.metnet.birdseyeview.goview.GoView
public abstract class GoView
The GoView Class encapsulates the common functionality of the different GO views.
| Field Summary | |
|---|---|
protected int |
bottomLevel
|
protected int |
currentLevel
|
protected java.util.ArrayList |
goLevelColors
|
protected java.util.ArrayList |
goLevels
|
static int |
MaxLevel
|
protected GoNode |
rootNode
|
| Fields inherited from class edu.iastate.metnet.birdseyeview.AbstractView |
|---|
algorithm, annotations, birdsEyeView, size, viewInfo |
| Constructor Summary | |
|---|---|
GoView(ViewInfo vi,
BirdsEyeView bev,
java.util.ArrayList anns,
java.awt.Dimension s,
java.lang.String alg,
int rootID)
Constructor. |
|
| Method Summary | |
|---|---|
abstract void |
addGenesToNodes(java.util.ArrayList nodes)
Subclasses must provide a way to match nodes and annotations (genes). |
protected java.util.ArrayList |
createLevelColors(double hue,
double hIncrement,
double saturation,
double sIncrement,
double brightness,
double bIncrement)
This method creates an array with slightly different colors. |
void |
displayChildren(GoNode node,
boolean populateLevel)
This method displays the child nodes for the given node. |
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. |
java.awt.Component |
getComponent()
Subclasses must return some sort of component to display as their view. |
GoLevel |
getCurrentGoLevel()
This method returns the level object for the current level. |
java.awt.LayoutManager |
getLayout()
This method returns a layout which centers the view in the parent. |
abstract java.util.ArrayList |
getLevelColors()
Subclasses must provide the different level colors. |
void |
goDown()
This method does nothing by default. |
void |
goUp()
This method does nothing by default. |
void |
loadConfiguration()
|
abstract void |
redisplayGenesToNodes(java.util.ArrayList nodes)
|
void |
reloadData()
Subclasses must reload the annotation data and modify their displays accordingly. |
void |
replayChildren(GoNode node,
boolean populateLevel)
This method displays the child nodes for the given node. |
void |
setlevelCapacity(int c)
|
| Methods inherited from class edu.iastate.metnet.birdseyeview.AbstractView |
|---|
getViewInfo, loadData, toggleMapLabels |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GoNode rootNode
protected java.util.ArrayList goLevels
protected int currentLevel
protected int bottomLevel
protected java.util.ArrayList goLevelColors
public static final int MaxLevel
| Constructor Detail |
|---|
public GoView(ViewInfo vi,
BirdsEyeView bev,
java.util.ArrayList anns,
java.awt.Dimension s,
java.lang.String alg,
int rootID)
vi - bev - anns - List of Annotation objectss - Size of the viewalg - Treemap algorithmrootID - The GO ID of the root node| Method Detail |
|---|
public java.awt.Color getBackground()
AbstractView
getBackground in class AbstractViewpublic void reloadData()
AbstractView
reloadData in class AbstractViewpublic void setlevelCapacity(int c)
setlevelCapacity in class AbstractViewpublic void loadConfiguration()
loadConfiguration in class AbstractViewpublic void goUp()
AbstractView
goUp in class AbstractViewpublic void goDown()
AbstractView
goDown in class AbstractViewpublic java.awt.LayoutManager getLayout()
AbstractView
getLayout in class AbstractViewpublic java.awt.Component getComponent()
AbstractView
getComponent in class AbstractView
public void displayChildren(GoNode node,
boolean populateLevel)
node - The parent nodepopulateLevel - Flag indicating if new GO level should be populated
public void replayChildren(GoNode node,
boolean populateLevel)
node - The parent nodepopulateLevel - Flag indicating if new GO level should be populated
protected java.util.ArrayList createLevelColors(double hue,
double hIncrement,
double saturation,
double sIncrement,
double brightness,
double bIncrement)
hue - Starting huehIncrement - Hue increment; difference in hue between 2 adjacent levelssaturation - Starting saturationsIncrement - Saturation increment; difference between 2 adjacent levelsbrightness - Starting brightnessbIncrement - Brightness increment; difference between 2 adjacent levels
public GoLevel getCurrentGoLevel()
public abstract java.util.ArrayList getLevelColors()
public abstract void addGenesToNodes(java.util.ArrayList nodes)
nodes - Array List of GoNode objectspublic abstract void redisplayGenesToNodes(java.util.ArrayList nodes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||