|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--AFLPgui.GraphView
Displays a graph of a bin. This class manages the size of the graph
and draws the axis and axis labels. It also provides a slider
to manipulate the cutoffs in the bin. The actually drawing of the
graph is done by objects of the type Graph
. Normally,
the display is double-buffered, but this is disabled if the class is
drawing to a printer page. When it first displays, it will adjust the
cutoffs so that only one will appear in the bin, (the cutoff with
the largest starting position). The size of the display and the
graph can be manipulated by external classes.
Graph
,
CutoffSlider
, Serialized FormInner classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
GraphView(DataList lanes,
DataList bins,
java.awt.Frame parentWindow)
Create a new GraphView with the specified parameters. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Handles the buttons in the button bar. |
Bin |
getBin()
Gives the bin that was used to produce the graph. |
ButtonBar |
getButtonBar()
Gives the ButtonBar associated with the graph. |
int |
getGraphWidth()
Gets the width of the graph, which does not include borders. |
int |
getHeight()
Gives the height of the graph display area, including borders. |
Bar |
getInfoBar()
Returns a bar that displays information about the graph. |
int |
getWidth()
Gives the width of the graph display area, including borders. |
protected void |
handleScoreError(ScoringFailure error)
Shows an options dialog if an error occurs when scoring a bin. |
void |
init(Bin bin,
DataList lanes,
DataList bins)
Initialize the graph view. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
Changes the graph to the one selected in the choice box. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Unused |
void |
mouseDragged(java.awt.event.MouseEvent e)
Called when the mouse is dragged. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Unused |
void |
mouseExited(java.awt.event.MouseEvent e)
Unused |
void |
mouseMoved(java.awt.event.MouseEvent e)
Unused |
void |
mousePressed(java.awt.event.MouseEvent e)
Unused |
void |
mouseReleased(java.awt.event.MouseEvent e)
Called when the mouse is released. |
void |
paint(java.awt.Graphics g)
Draws the graph. |
void |
refresh()
Updates the display so that it matches the data. |
void |
setGraphWidth(int width)
Sets the width of the actual graph, which does not include the border. |
void |
setHeight(int height)
Sets the height of the graph display area, including borders, to the specified value. |
void |
setWidth(int width)
Sets the width of the graph display area, including borders, to the specified value. |
void |
update(java.awt.Graphics g)
Called to update the screen by Java. |
Methods inherited from class java.awt.Panel |
addNotify, getAccessibleContext |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GraphView(DataList lanes, DataList bins, java.awt.Frame parentWindow)
lanes
- the lanes to include in the graph.bins
- a list of bins in the gel.parentWindow
- an owner for dialog boxes.Method Detail |
public void init(Bin bin, DataList lanes, DataList bins)
bin
- the bin to show a graph forlanes
- the lanes to include in the graphbins
- a list of bins in the gel, used so the graph could switch
to another bin.public int getHeight()
getHeight
in class java.awt.Component
public void setHeight(int height)
height
- the new height for the viewpublic int getWidth()
getWidth
in class java.awt.Component
public void setWidth(int width)
width
- the new widthpublic int getGraphWidth()
Graph
public void setGraphWidth(int width)
width
- the new width for the graphGraph
public Bin getBin()
public void paint(java.awt.Graphics g)
Graph
object selected. The display is
normally double buffered, but double-buffering is disabled if
the method is drawing to a printed page.paint
in class java.awt.Container
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void update(java.awt.Graphics g)
update
in class java.awt.Container
public ButtonBar getButtonBar()
protected void handleScoreError(ScoringFailure error)
error
- the orignal failurepublic Bar getInfoBar()
public void refresh()
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |