apollo.gui.genomemap
Interface ViewI

All Known Subinterfaces:
DragViewI, ManagedViewI, PickViewI, SelectViewI, TierViewI
All Known Implementing Classes:
AnnotationView, ContainerView, DiscreteGraphView, DragView, FeatureView, GraphView, LaidoutViewContainer, LinearView, ManagedView, ResultView, ScaleView, ScrollAdjustedView, SiteView, SplitterView, TierView, TranslationView

public interface ViewI

An interface representing a View object which has defined extents eg a start and end base.


Field Summary
static int LEFTSIDE
           
static int NONE
           
static int RIGHTSIDE
           
 
Method Summary
 void addViewListener(ViewListener vl)
          Add a View event listener
 boolean areLimitsSet()
           
 void clear()
           
 java.awt.Rectangle getBounds()
          Get the coordinates of the rectangle containing the View.
 int getCentre()
          Get the maximum limit.
 javax.swing.JComponent getComponent()
          Get the component the view belongs to.
 int[] getLimits()
          Gets the minimum and maximum limits
 int getMaximum()
          Get the maximum limit.
 int getMinimum()
          Get the minimum limit.
 java.lang.String getName()
          Returns the name of the view.
 java.awt.Rectangle getPreferredSize()
          Get the preferred size for the view
 Transformer getTransform()
          Get the tranform object to convert between View and component coordinates.
 int[] getVisibleRange()
          Get the range on the linear axis that is visible
 boolean isInvalid()
          Get a flag indicating whether the view is invalid
 boolean isTransparent()
           
 boolean isVisible()
          return whether or not a view is visible
 void paintView()
          Paint the Drawable objects in the View.
 void setBounds(java.awt.Rectangle rect)
          Set the coordinates of the rectangle containing the View.
 void setCentre(int centre)
          Set the centre position.
 void setComponent(javax.swing.JComponent ap)
          Set the component the view belongs to.
 void setGraphics(java.awt.Graphics g)
          Set the Graphics to draw to.
 void setInvalidity(boolean state)
          Set a flag indicating whether the view is currently invalid
 void setLimits(int[] limits)
          Sets the minimum and maximum limits for the extent
 void setLimitsSet(boolean state)
           
 void setMaximum(int max)
          Sets the maximum limit for the extent
 void setMinimum(int min)
          Sets the minimum limit for the extent
 void setName(java.lang.String name)
          Sets the name of the view
 void setTransparent(boolean state)
           
 void setVisible(boolean state)
          Set whether or not a view is visible
 void setZoomFactor(double factor)
          Set the ZoomFactor along the linear axis
 

Field Detail

RIGHTSIDE

static final int RIGHTSIDE
See Also:
Constant Field Values

LEFTSIDE

static final int LEFTSIDE
See Also:
Constant Field Values

NONE

static final int NONE
See Also:
Constant Field Values
Method Detail

setComponent

void setComponent(javax.swing.JComponent ap)
Set the component the view belongs to.

Parameters:
component - The component containing the View.

getComponent

javax.swing.JComponent getComponent()
Get the component the view belongs to.


paintView

void paintView()
Paint the Drawable objects in the View. The graphics are clipped appropriately in ApolloPanel prior to calling paintView.


setInvalidity

void setInvalidity(boolean state)
Set a flag indicating whether the view is currently invalid


isInvalid

boolean isInvalid()
Get a flag indicating whether the view is invalid


getBounds

java.awt.Rectangle getBounds()
Get the coordinates of the rectangle containing the View.


getTransform

Transformer getTransform()
Get the tranform object to convert between View and component coordinates.


setBounds

void setBounds(java.awt.Rectangle rect)
Set the coordinates of the rectangle containing the View.

Parameters:
rect - The rectangle describing the new bounds of the View in parent component coordinates.

getPreferredSize

java.awt.Rectangle getPreferredSize()
Get the preferred size for the view


setGraphics

void setGraphics(java.awt.Graphics g)
Set the Graphics to draw to.

Parameters:
g - The new graphics to draw to. This will usually be the Graphics for the containing component (or for its offscreen buffer).

getName

java.lang.String getName()
Returns the name of the view.


setName

void setName(java.lang.String name)
Sets the name of the view

Parameters:
name - The name of the view.

addViewListener

void addViewListener(ViewListener vl)
Add a View event listener


setVisible

void setVisible(boolean state)
Set whether or not a view is visible


isVisible

boolean isVisible()
return whether or not a view is visible


setLimits

void setLimits(int[] limits)
Sets the minimum and maximum limits for the extent


setMinimum

void setMinimum(int min)
Sets the minimum limit for the extent


setMaximum

void setMaximum(int max)
Sets the maximum limit for the extent


getLimits

int[] getLimits()
Gets the minimum and maximum limits


getMinimum

int getMinimum()
Get the minimum limit.


getMaximum

int getMaximum()
Get the maximum limit.


setCentre

void setCentre(int centre)
Set the centre position.


getCentre

int getCentre()
Get the maximum limit.


setZoomFactor

void setZoomFactor(double factor)
Set the ZoomFactor along the linear axis


getVisibleRange

int[] getVisibleRange()
Get the range on the linear axis that is visible


areLimitsSet

boolean areLimitsSet()

setLimitsSet

void setLimitsSet(boolean state)

setTransparent

void setTransparent(boolean state)

isTransparent

boolean isTransparent()

clear

void clear()