Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

apollo.gui.genomemap
Class GraphView  view GraphView download GraphView.java

java.lang.Object
  extended byapollo.gui.genomemap.LinearView
      extended byapollo.gui.genomemap.GraphView
All Implemented Interfaces:
javax.swing.event.ChangeListener, java.util.EventListener, LinearViewI, PopupViewI, ViewI

public class GraphView
extends LinearView
implements javax.swing.event.ChangeListener, PopupViewI


Field Summary
(package private)  apollo.gui.ScoreCalculator calculator
           
(package private)  java.awt.Color plotColour
           
private static int prefHeight
           
private  int scroller
           
 
Fields inherited from class apollo.gui.genomemap.LinearView
backgroundColour, component, debug, foregroundColour, graphics, limitsSet, transformer, viewBounds, visible
 
Fields inherited from interface apollo.gui.genomemap.ViewI
LEFTSIDE, NONE, RIGHTSIDE
 
Constructor Summary
GraphView(javax.swing.JComponent component, java.lang.String name)
           
 
Method Summary
 java.awt.Color getPlotColour()
           
 java.awt.Rectangle getPreferredSize()
          Get the preferred size for the view
 apollo.gui.ScoreCalculator getScoreCalculator()
           
 void paintView()
          Paint the Drawable objects in the View.
 void setDrawBounds(java.awt.Rectangle rect)
           
 void setPlotColour(java.awt.Color colour)
           
 void setScoreCalculator(apollo.gui.ScoreCalculator calc)
           
 void setScrollFlag(int scroller)
           
 java.awt.Rectangle setScrollSpace(int where)
           
 void setXOrientation(int direction)
           
 void showPopupMenu(java.awt.event.MouseEvent evt)
           
 void stateChanged(javax.swing.event.ChangeEvent evt)
          I dont think this is actually used
 
Methods inherited from class apollo.gui.genomemap.LinearView
addViewListener, areLimitsSet, fireViewEvent, getBackgroundColour, getBounds, getCentre, getComponent, getDrawBounds, getForegroundColour, getLimits, getMaximum, getMinimum, getName, getTransform, getVisibleFeatures, getVisibleRange, init, isInvalid, isVisible, paintView, setBackgroundColour, setBounds, setCentre, setComponent, setDebug, setForegroundColour, setGraphics, setInvalidity, setLimits, setLimitsSet, setMaximum, setMinimum, setName, setTransform, setVisible, setZoomFactor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

calculator

apollo.gui.ScoreCalculator calculator

scroller

private int scroller

prefHeight

private static final int prefHeight
See Also:
Constant Field Values

plotColour

java.awt.Color plotColour
Constructor Detail

GraphView

public GraphView(javax.swing.JComponent component,
                 java.lang.String name)
Method Detail

getScoreCalculator

public apollo.gui.ScoreCalculator getScoreCalculator()

setScoreCalculator

public void setScoreCalculator(apollo.gui.ScoreCalculator calc)

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent evt)
I dont think this is actually used

Specified by:
stateChanged in interface javax.swing.event.ChangeListener

setScrollFlag

public void setScrollFlag(int scroller)

setScrollSpace

public java.awt.Rectangle setScrollSpace(int where)

setDrawBounds

public void setDrawBounds(java.awt.Rectangle rect)
Overrides:
setDrawBounds in class LinearView

paintView

public void paintView()
Description copied from interface: ViewI
Paint the Drawable objects in the View.

Specified by:
paintView in interface ViewI
Overrides:
paintView in class LinearView

setPlotColour

public void setPlotColour(java.awt.Color colour)

getPlotColour

public java.awt.Color getPlotColour()

getPreferredSize

public java.awt.Rectangle getPreferredSize()
Description copied from interface: ViewI
Get the preferred size for the view

Specified by:
getPreferredSize in interface ViewI
Overrides:
getPreferredSize in class LinearView

setXOrientation

public void setXOrientation(int direction)

showPopupMenu

public void showPopupMenu(java.awt.event.MouseEvent evt)
Specified by:
showPopupMenu in interface PopupViewI