|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.lbl.genome.gui.AbstractCurveView
public abstract class AbstractCurveView
Title: AbstractCurveView
Description: This abstract class privides general curve drawing operations.
all real curves and images must be produced from this class
Copyright: Copyright (c) 2002 Ernest Orlando Lawrence Berkeley National Laboratory
Company: LBNL
Field Summary | |
---|---|
protected double |
adjustedGraphHeight
|
protected double |
adjustedGraphWidth
|
protected java.awt.Color |
curveColor
|
protected java.awt.Graphics2D |
g2d
|
protected GeneralGraphView |
graphView
|
protected int |
height
|
protected int |
lineNumber
|
protected int |
marginLeft
|
protected int |
marginRight
|
protected int |
marginTop
|
protected double |
maxX
|
protected double |
maxY
|
protected double |
minX
|
protected double |
minY
|
protected CurveModel |
model
|
protected int |
nPoints
|
protected Parameter |
param
|
protected double |
realGraphHeight
|
protected double |
realGraphWidth
|
protected java.awt.Stroke |
stroke
|
protected VistaApp |
va
|
protected int |
width
|
protected double |
xDifference
|
protected int[] |
xPoints
|
protected double |
yDifference
|
protected int[] |
yPoints
|
Constructor Summary | |
---|---|
AbstractCurveView()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
clone |
protected int |
convertX(double x)
convert graph coordinate into the screen coordinate |
protected int |
convertX(long x)
convert graph coordinate into the screen coordinate |
protected float |
convertY(double y)
convert graph coordinate into the screen coordinate |
CurveModel |
getCurveModel()
return Curve Model |
GeneralGraphView |
getGraphView()
return Graph View |
double |
getMaxX()
get Max X |
double |
getMaxY()
get Max Y |
double |
getMinX()
get Min X |
double |
getMinY()
get Min Y |
double |
getWidth()
return adjusted graph width |
void |
refresh(long minX,
long maxX)
request new information from the server |
protected void |
renderInitialize()
Initialize rendered This should be called every time the curve is rendered. |
void |
reRenderOff()
switch reRender Off |
void |
reRenderOn()
switch reRender On |
void |
setCurveModel(CurveModel model)
set Curve Model |
void |
setGraphView(GeneralGraphView graphView)
set Graph View |
void |
setLineNumber(int line)
set Line Number |
void |
setMarginLeft(int x)
set Left Margin |
void |
setMarginRight(int x)
set Right Margin |
void |
setMarginTop(int y)
set Top Margin |
void |
setMaxX(double x)
set Max X |
void |
setMaxY(double y)
set Max Y |
void |
setMinX(double x)
set Min X |
void |
setMinY(double y)
set Min Y |
void |
setSize(double width,
double height)
set Size |
void |
setStroke(java.awt.Stroke stroke)
set Stroke |
java.lang.String |
toString()
return text column with all points |
protected long |
xDisplay(int x)
convert screen coordinate into the graph coordinate |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gov.lbl.genome.gui.CurveView |
---|
render |
Field Detail |
---|
protected CurveModel model
protected GeneralGraphView graphView
protected java.awt.Stroke stroke
protected java.awt.Color curveColor
protected double minY
protected double maxY
protected double yDifference
protected double minX
protected double maxX
protected double xDifference
protected double realGraphHeight
protected double realGraphWidth
protected double adjustedGraphHeight
protected double adjustedGraphWidth
protected VistaApp va
protected java.awt.Graphics2D g2d
protected int[] xPoints
protected int[] yPoints
protected int nPoints
protected int lineNumber
protected int marginLeft
protected int marginRight
protected int marginTop
protected int width
protected int height
protected Parameter param
Constructor Detail |
---|
public AbstractCurveView()
Method Detail |
---|
public void setLineNumber(int line)
line
- intpublic double getMinX()
public double getMaxX()
public double getMinY()
public double getMaxY()
public void setMinX(double x)
x
- doublepublic void setMaxX(double x)
x
- doublepublic void setMinY(double y)
y
- doublepublic void setMaxY(double y)
y
- doublepublic void reRenderOff()
public void reRenderOn()
public void setSize(double width, double height)
width
- doubleheight
- doublepublic double getWidth()
protected void renderInitialize()
public void setGraphView(GeneralGraphView graphView)
setGraphView
in interface CurveView
graphView
- GeneralGraphViewpublic GeneralGraphView getGraphView()
getGraphView
in interface CurveView
public CurveModel getCurveModel()
getCurveModel
in interface CurveView
public void setCurveModel(CurveModel model)
setCurveModel
in interface CurveView
model
- CurveModelpublic void setStroke(java.awt.Stroke stroke)
stroke
- Strokeprotected final int convertX(double x)
x
- double
protected final int convertX(long x)
x
- long
protected long xDisplay(int x)
x
- int
protected final float convertY(double y)
y
- double
public void refresh(long minX, long maxX)
refresh
in interface CurveView
minX
- longmaxX
- longCurveModel.refresh(VistaApp,long,long)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public void setMarginLeft(int x)
x
- intpublic void setMarginRight(int x)
x
- intpublic void setMarginTop(int y)
y
- int
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |