gov.lbl.genome.common
Interface CurveModel

All Known Implementing Classes:
AbstractCurveModel, CustomCurveModel, PCurveModel, VistaCurveModel

public interface CurveModel

Title: CurveModel

Description: All classes implementing this interface serve as models for curves in the Vista Genome Browser.

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

Company: LBNL


Method Summary
 void addPoint(java.awt.geom.Point2D.Float point)
          add Point
 java.util.Iterator getAllPoints()
          Use this method to get all the points in this CurveModel.
 java.awt.geom.Point2D getEndPoint()
          get End Point
 java.lang.Double getInterval()
          return Interval between two points
 java.lang.String getLongName()
          get Long Name
 java.lang.String getName()
          get Name
 int getNumberOfPoints()
          get Number Of Points
 java.lang.String getParameterString(VistaApp vapp)
          get Parameter String
 java.awt.geom.Point2D getStartPoint()
          get Start Point
 int getXType()
          return Type of the X axis
 int getYType()
          return Type of the Y axis
 boolean refresh(VistaApp vapp, long minx, long maxx)
          request information from the server
 

Method Detail

getStartPoint

java.awt.geom.Point2D getStartPoint()
get Start Point

Returns:
Point2D

getEndPoint

java.awt.geom.Point2D getEndPoint()
get End Point

Returns:
Point2D

getInterval

java.lang.Double getInterval()
return Interval between two points

Returns:
Double

getXType

int getXType()
return Type of the X axis

Returns:
int

getYType

int getYType()
return Type of the Y axis

Returns:
int

getAllPoints

java.util.Iterator getAllPoints()
Use this method to get all the points in this CurveModel.

Returns:
Iterator over collection of all Point2D objects in this CurveModel.

addPoint

void addPoint(java.awt.geom.Point2D.Float point)
              throws BadCoordinateTypeException
add Point

Parameters:
point - Float
Throws:
BadCoordinateTypeException

refresh

boolean refresh(VistaApp vapp,
                long minx,
                long maxx)
request information from the server

Parameters:
vapp - VistaApp
minx - long
maxx - long
Returns:
boolean

getLongName

java.lang.String getLongName()
get Long Name

Returns:
String

getName

java.lang.String getName()
get Name

Returns:
String

getParameterString

java.lang.String getParameterString(VistaApp vapp)
get Parameter String

Parameters:
vapp - VistaApp
Returns:
String

getNumberOfPoints

int getNumberOfPoints()
get Number Of Points

Returns:
int