Main Page | Namespace List | Class Hierarchy | Class List | Class Members | Related Pages

gov::lbl::genome::gui::GeneralGraphView Class Reference

Inheritance diagram for gov::lbl::genome::gui::GeneralGraphView:

Inheritance graph
[legend]
Collaboration diagram for gov::lbl::genome::gui::GeneralGraphView:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GeneralGraphView (VistaApp vapp, GeneralGraphModel model, NumberFormat yUnitsFormat)
 GeneralGraphView (VistaApp vapp, GeneralGraphModel model, NumberFormat yUnitsFormat, int i)
GeneralGraphView getGeneralGraphView (int i, int number)
void clearChildren ()
void selectChildren ()
void unselectChildren ()
void setParent (GeneralGraphView p)
void setName (String name)
void addCurve (CurveView curve)
Iterator getCurveViews ()
void setContigs (Vector cont)
double getGraphWidth ()
double getGraphHeight ()
GeneralGraphModel getGraphModel ()
void setGraphModel (GeneralGraphModel gm)
GeneralGraphComp getGraphComp ()
void flipSelected ()
void select ()
boolean unselect ()
boolean isSelected ()
void setSelected (boolean s)
void paintComponent (Graphics g)
String getGraphName ()
String getLongName ()
int getGraphPos ()
void setGraphPos (int pos)
void refresh (long minX, long maxX)
String toString ()
Graphics2D createImage ()
void removeImage ()
void removeCompImage ()
ContigPanel getContigPanel ()
Vector getStatistics ()
void setVisible (boolean visible)
boolean isVisible ()
void checkVisible ()

Public Attributes

String minProc = ""
String maxProc = ""

Protected Member Functions

void uiInit ()

Protected Attributes

GeneralGraphModel model = null
GeneralGraphComp graph = null
GeneralGraphComp[] graphs = null
GeneralGraphView newGraphView = null
Collection curveViews = new Vector()
DisplayPanel dp
GeneralGraphView parent = null
Vector children = null
BufferedImage image = null
VGBPanel pnlName = new VGBPanel(va)
VGBPanel pnlYAxis = new VGBPanel(va)
VGBPanel[] pnlNames = null
VGBPanel[] pnlYAxiss = null
VGBPanel pnlGraph = new VGBPanel(va)
VGBPanel[] pnlGraphs = null
VGBPanel pnlContig = new VGBPanel(va)
VGBPanel pnlContainer = new VGBPanel(va)
VistaLabel lblName = null
VistaLabel lblMinY = null
VistaLabel lblMaxY = null
AxisPanel axisPanel = new AxisPanel(va)
ContigPanel contigPanel = null
NumberFormat yUnitsFormat = null
boolean selected = false

Static Protected Attributes

final int DEFAULT_GRAPH_WIDTH
final int DEFAULT_GRAPH_VIEW_HEIGHT

Package Attributes

MouseMotionListener onMML
MouseListener onML

Detailed Description

Title: GeneralGraphView

Description: This is the view of a graph.

Copyright: Copyright (c) 2002 Ernest Orlando Lawrence Berkeley National Laboratory

Company: LBNL

Author:
Lila Tretikov, Michael Teplitskiy
Version:
1.0


Constructor & Destructor Documentation

gov::lbl::genome::gui::GeneralGraphView::GeneralGraphView VistaApp  vapp,
GeneralGraphModel  model,
NumberFormat  yUnitsFormat
[inline]
 

create parent GeneralGraphView

Parameters:
vapp VistaApp
model GeneralGraphModel
yUnitsFormat NumberFormat

gov::lbl::genome::gui::GeneralGraphView::GeneralGraphView VistaApp  vapp,
GeneralGraphModel  model,
NumberFormat  yUnitsFormat,
int  i
[inline]
 

create child GeneralGraphView

Parameters:
vapp VistaApp
model GeneralGraphModel
yUnitsFormat NumberFormat
i int


Member Function Documentation

void gov::lbl::genome::gui::GeneralGraphView::addCurve CurveView  curve  )  [inline]
 

add Curve

Parameters:
curve CurveView

void gov::lbl::genome::gui::GeneralGraphView::checkVisible  )  [inline]
 

If graph vie contains invisible curve, then the graph view will be marked as invisible

See also:
setVisible(boolean)

void gov::lbl::genome::gui::GeneralGraphView::clearChildren  )  [inline]
 

remove Children

Graphics2D gov::lbl::genome::gui::GeneralGraphView::createImage  )  [inline]
 

create transparent Image if the graph view is not selected and semi-transparent gray bar if the graph view is selected

Returns:
Graphics2D

void gov::lbl::genome::gui::GeneralGraphView::flipSelected  )  [inline]
 

reverse selection

ContigPanel gov::lbl::genome::gui::GeneralGraphView::getContigPanel  )  [inline]
 

return Contig Panel

Returns:
ContigPanel

Iterator gov::lbl::genome::gui::GeneralGraphView::getCurveViews  )  [inline]
 

return Curve Views

Returns:
Iterator

GeneralGraphView gov::lbl::genome::gui::GeneralGraphView::getGeneralGraphView int  i,
int  number
[inline]
 

create child GeneralGraphView

Parameters:
i int line number
number int
Returns:
GeneralGraphView

GeneralGraphComp gov::lbl::genome::gui::GeneralGraphView::getGraphComp  )  [inline]
 

return GeneralGraphComp

Returns:
GeneralGraphComp

double gov::lbl::genome::gui::GeneralGraphView::getGraphHeight  )  [inline]
 

return Graph Height

Returns:
double

GeneralGraphModel gov::lbl::genome::gui::GeneralGraphView::getGraphModel  )  [inline]
 

return Graph Model

Returns:
GeneralGraphModel

String gov::lbl::genome::gui::GeneralGraphView::getGraphName  )  [inline]
 

return Name

Returns:
String
See also:
gov.lbl.genome.common.GeneralGraphModel::getName()

int gov::lbl::genome::gui::GeneralGraphView::getGraphPos  )  [inline]
 

return position of the graph view in the display panel

Returns:
int

double gov::lbl::genome::gui::GeneralGraphView::getGraphWidth  )  [inline]
 

return Graph Width

Returns:
double

String gov::lbl::genome::gui::GeneralGraphView::getLongName  )  [inline]
 

return Long Name

Returns:
String
See also:
gov.lbl.genome.common.GeneralGraphModel::getLongName()

Vector gov::lbl::genome::gui::GeneralGraphView::getStatistics  )  [inline]
 

return Statistics

See also:
gov.lbl.genome.gui.VistaCurveView::getStatistics()
Returns:
Vector

boolean gov::lbl::genome::gui::GeneralGraphView::isSelected  )  [inline]
 

return true if selected

Returns:
boolean

boolean gov::lbl::genome::gui::GeneralGraphView::isVisible  )  [inline]
 

return true if visible

Returns:
boolean

void gov::lbl::genome::gui::GeneralGraphView::paintComponent Graphics  g  )  [inline]
 

paint graph view

Parameters:
g Graphics

void gov::lbl::genome::gui::GeneralGraphView::refresh long  minX,
long  maxX
[inline]
 

refresh all curves

Parameters:
minX long
maxX long
See also:
gov.lbl.genome.gui.CurveView::refresh(long,long)

gov.lbl.genome.gui.AbstractCurveView::refresh(long,long)

void gov::lbl::genome::gui::GeneralGraphView::removeCompImage  )  [inline]
 

remove Comp Image and contig Image

void gov::lbl::genome::gui::GeneralGraphView::removeImage  )  [inline]
 

remove Images

void gov::lbl::genome::gui::GeneralGraphView::select  )  [inline]
 

select the graph view

void gov::lbl::genome::gui::GeneralGraphView::selectChildren  )  [inline]
 

select all Children

void gov::lbl::genome::gui::GeneralGraphView::setContigs Vector  cont  )  [inline]
 

set Contigs

Parameters:
cont Vector

void gov::lbl::genome::gui::GeneralGraphView::setGraphModel GeneralGraphModel  gm  )  [inline]
 

set Graph Model

Parameters:
gm GeneralGraphModel

void gov::lbl::genome::gui::GeneralGraphView::setGraphPos int  pos  )  [inline]
 

set position of the graph view in the display panel

Parameters:
pos int

void gov::lbl::genome::gui::GeneralGraphView::setName String  name  )  [inline]
 

set Name

Parameters:
name String

void gov::lbl::genome::gui::GeneralGraphView::setParent GeneralGraphView  p  )  [inline]
 

set Parent

Parameters:
p GeneralGraphView

void gov::lbl::genome::gui::GeneralGraphView::setSelected boolean  s  )  [inline]
 

set Selected

Parameters:
s boolean

void gov::lbl::genome::gui::GeneralGraphView::setVisible boolean  visible  )  [inline]
 

set Visible mode

Parameters:
visible boolean

String gov::lbl::genome::gui::GeneralGraphView::toString  )  [inline]
 

return graph name

Returns:
String

void gov::lbl::genome::gui::GeneralGraphView::uiInit  )  [inline, protected]
 

build graph view

boolean gov::lbl::genome::gui::GeneralGraphView::unselect  )  [inline]
 

unselect the graph view

Returns:
boolean

void gov::lbl::genome::gui::GeneralGraphView::unselectChildren  )  [inline]
 

unselect all Children


Member Data Documentation

final int gov::lbl::genome::gui::GeneralGraphView::DEFAULT_GRAPH_VIEW_HEIGHT [static, protected]
 

Initial value:

 UIConstants.
      GRAPH_HEIGHT + UIConstants.GRAPH_SPACER_HEIGHT

final int gov::lbl::genome::gui::GeneralGraphView::DEFAULT_GRAPH_WIDTH [static, protected]
 

Initial value:

 UIConstants.
      DEFAULT_GRAPH_WIDTH

MouseMotionListener gov::lbl::genome::gui::GeneralGraphView::onMML [package]
 

Initial value:

 new MouseMotionListener() {
    public void mouseMoved(MouseEvent e) {
      contigPanel.dispatch(SwingUtilities.convertMouseEvent(graph, e,
          contigPanel));
    }

    public void mouseDragged(MouseEvent e) {
      contigPanel.dispatch(SwingUtilities.convertMouseEvent(GGV, e, contigPanel));
    }
  }


The documentation for this class was generated from the following file:
Generated on Wed Jan 19 16:59:15 2005 by  doxygen 1.3.9.1