|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.gui.visualization.core.AbstractPaintlet
adams.gui.visualization.core.AbstractStrokePaintlet
adams.gui.visualization.container.AbstractDataContainerPaintlet
adams.gui.visualization.instance.InstanceLinePaintlet
public class InstanceLinePaintlet
Paintlet for generating a line plot for Instance objects.
Valid options are:-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-stroke-thickness <float> (property: strokeThickness) The thickness of the stroke. default: 1.0 minimum: 0.01
-markers-extent <int> (property: markerExtent) default: 7 minimum: 0
-markers-disabled (property: markersDisabled) If set to true, the markers are disabled.
| Nested Class Summary | |
|---|---|
static class |
InstanceLinePaintlet.MarkerShape
Enum for the marker shape to plot around the data points. |
| Field Summary | |
|---|---|
protected boolean |
m_AntiAliasingEnabled
whether anti-aliasing is enabled. |
protected int |
m_MarkerExtent
the maximum width/height of the shape to plot around the points (= data point marker), if there's enough space. |
protected boolean |
m_MarkersEnabled
indicates whether marker shapes are painted or not. |
| Fields inherited from class adams.gui.visualization.core.AbstractStrokePaintlet |
|---|
m_StrokeThickness |
| Fields inherited from class adams.gui.visualization.core.AbstractPaintlet |
|---|
m_Enabled, m_Initializing, m_Panel, m_RepaintOnChange |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
InstanceLinePaintlet()
|
|
| Method Summary | |
|---|---|
String |
antiAliasingEnabledTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
protected void |
drawData(Graphics g,
Instance data,
Color color,
InstanceLinePaintlet.MarkerShape marker)
Draws the data with the given color. |
Color |
getColor(int index)
Returns the color for the data with the given index. |
InstancePanel |
getInstancePanel()
Returns the sequence panel currently in use. |
int |
getMarkerExtent()
Returns the current marker extent (which is the width and height of the shape). |
protected InstanceLinePaintlet.MarkerShape |
getMarkerShape(int index)
Determines the shape to paint around the data points, based on the index of the data. |
PaintEvent.PaintMoment |
getPaintMoment()
Returns when this paintlet is to be executed. |
String |
globalInfo()
Returns a string describing the object. |
boolean |
isAntiAliasingEnabled()
Returns whether anti-aliasing is used. |
boolean |
isMarkersDisabled()
Returns whether marker shapes are disabled. |
String |
markersDisabledTipText()
Returns the tip text for this property. |
String |
markersExtentTipText()
Returns the tip text for this property. |
void |
performPaint(Graphics g,
PaintEvent.PaintMoment moment)
The paint routine of the paintlet. |
void |
setAntiAliasingEnabled(boolean value)
Sets whether to use anti-aliasing. |
void |
setMarkerExtent(int value)
Sets the extent (width and height of the shape around the plotted point). |
void |
setMarkersDisabled(boolean value)
Sets whether to draw markers or not. |
| Methods inherited from class adams.gui.visualization.container.AbstractDataContainerPaintlet |
|---|
getDataContainerPanel |
| Methods inherited from class adams.gui.visualization.core.AbstractStrokePaintlet |
|---|
getStrokeThickness, paint, setStrokeThickness, strokeThicknessTipText |
| Methods inherited from class adams.gui.visualization.core.AbstractPaintlet |
|---|
canPaint, finishInit, forCommandLine, forName, getPaintlets, getPanel, getPlot, getRepaintOnChange, hasPanel, initialize, isEnabled, isInitializing, memberChanged, memberChanged, repaint, setEnabled, setPanel, setRepaintOnChange, shallowCopy, shallowCopy, updatePanel |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int m_MarkerExtent
protected boolean m_MarkersEnabled
protected boolean m_AntiAliasingEnabled
| Constructor Detail |
|---|
public InstanceLinePaintlet()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractStrokePaintletpublic InstancePanel getInstancePanel()
public PaintEvent.PaintMoment getPaintMoment()
getPaintMoment in interface PaintletgetPaintMoment in class AbstractPaintletpublic Color getColor(int index)
index - the index of the chromatogram
public boolean isMarkersDisabled()
public void setMarkersDisabled(boolean value)
value - if true then marker shapes won't be drawnpublic String markersDisabledTipText()
public void setMarkerExtent(int value)
value - the new extentpublic int getMarkerExtent()
public String markersExtentTipText()
public void setAntiAliasingEnabled(boolean value)
setAntiAliasingEnabled in interface AntiAliasingPaintletvalue - if true then anti-aliasing is usedpublic boolean isAntiAliasingEnabled()
isAntiAliasingEnabled in interface AntiAliasingPaintletpublic String antiAliasingEnabledTipText()
antiAliasingEnabledTipText in interface AntiAliasingPaintlet
protected void drawData(Graphics g,
Instance data,
Color color,
InstanceLinePaintlet.MarkerShape marker)
g - the graphics contextdata - the data to drawcolor - the color to draw inmarker - the type of marker to drawprotected InstanceLinePaintlet.MarkerShape getMarkerShape(int index)
index - the index of the spectrum
public void performPaint(Graphics g,
PaintEvent.PaintMoment moment)
performPaint in interface PaintletperformPaint in class AbstractPaintletg - the graphics context to use for paintingmoment - what PaintEvent.PaintMoment is currently being painted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||