public class PherogramTraceCurveView extends TICComponent implements PherogramComponent
AlignmentArea
.
Concrete GUI components for Swing or SWT can be created using #createSwingComponent()
or
#createSWTWidget(org.eclipse.swt.widgets.Composite, int)
as this class is a TIC component.
PherogramView
,
PherogramArea
DISPATCHER_MAP, repaintRequested
Constructor and Description |
---|
PherogramTraceCurveView() |
Modifier and Type | Method and Description |
---|---|
protected SimpleSequenceInterval |
calculatePaintRange(TICPaintEvent e) |
PherogramFormats |
getFormats()
Returns the format object that is used to paint the displayed pherogram.
|
PherogramHeadingView |
getHeadingView() |
double |
getHorizontalScale() |
PherogramComponentModel |
getModel()
Returns the model providing the base call sequence, the trace curves and the cut positions.
|
PherogramPainter |
getPainter() |
java.awt.Dimension |
getSize() |
double |
getVerticalScale() |
int |
getWidth() |
void |
paint(TICPaintEvent e) |
protected void |
repaintAll()
Repaints this component and the associated heading component.
|
void |
setHeadingView(PherogramHeadingView headingView)
Use this method to specify the heading component used together with this component.
|
void |
setHorizontalScale(double horizontalScale) |
void |
setModel(PherogramComponentModel model) |
void |
setVerticalScale(double value)
Sets the horizontal zoom factor that shall used for displaying the trace curves.
|
protected void |
updateUI()
Resizes and repaints this component and the associated heading component.
|
addKeyListener, addMouseListener, addMouseWheelListener, assignSize, dispatchEvent, getCurrentToolkit, getKeyListenersSet, getMouseListenersSet, getMouseWheelListenersSet, getSwingComponentClassName, getSwingComponentConstructorParameters, getSWTComponentClassName, getSWTComponentConstructorParameters, getToolkitComponent, hasDefinedSize, hasToolkitComponent, isUpdateOngoing, removeKeyListener, removeMouseListener, removeWheelMouseListener, repaint, setToolkitComponent, setUpdateOngoing
public PherogramTraceCurveView()
protected void updateUI()
protected void repaintAll()
public PherogramComponentModel getModel()
PherogramComponent
getModel
in interface PherogramComponent
null
if not model has been specified yetpublic void setModel(PherogramComponentModel model)
public double getVerticalScale()
getVerticalScale
in interface PherogramComponent
public void setVerticalScale(double value)
PherogramComponent
setVerticalScale
in interface PherogramComponent
value
- the new zoom factor (must be greater than zero)public double getHorizontalScale()
public void setHorizontalScale(double horizontalScale)
public PherogramFormats getFormats()
PherogramComponent
getFormats
in interface PherogramComponent
public PherogramPainter getPainter()
public PherogramHeadingView getHeadingView()
public void setHeadingView(PherogramHeadingView headingView)
headingView
- the heading component used together with this instancepublic int getWidth()
public java.awt.Dimension getSize()
getSize
in class TICComponent
protected SimpleSequenceInterval calculatePaintRange(TICPaintEvent e)
public void paint(TICPaintEvent e)
paint
in class TICComponent