public class HighlightableDataset extends Dataset
Constructor and Description |
---|
HighlightableDataset()
Default contructor.
|
HighlightableDataset(java.awt.Color markerColor)
Contructor specifying the marker color.
|
HighlightableDataset(java.awt.Color markerColor,
java.awt.Color lineColor,
boolean connected)
Contructor specifying the marker color, line color, and whether
points are connected.
|
Modifier and Type | Method and Description |
---|---|
void |
append(double[] xarray,
double[] yarray)
Appends (x,y) arrays to the Dataset.
|
void |
append(double x,
double y)
Appends an (x,y) datum to the Dataset.
|
void |
clear()
Clear all data from this Dataset.
|
void |
clearHighlights()
.
|
void |
draw(DrawingPanel drawingPanel,
java.awt.Graphics g)
Draw this Dataset in the drawing panel.
|
static XML.ObjectLoader |
getLoader()
Returns the XML.ObjectLoader for this class.
|
boolean |
isHighlighted(int i)
Gets the highlighted flag for the specified point.
|
protected void |
moveDatum(int loc)
Move an out-of-place datum into its correct position.
|
void |
restoreHighlights()
Restores previous highlights.
|
void |
setHighlightColor(java.awt.Color color)
Sets the highlight color.
|
void |
setHighlighted(int i,
boolean highlight)
Sets the highlighted flag for the specified point.
|
void |
setHighlighted(int start,
int end,
boolean highlight)
Sets the highlighted flag for the specified point range.
|
append, append, convertTableColumnIndex, countColumnsVisible, drawFilledPlot, drawLinePlot, drawScatterPlot, getColumnClass, getColumnCount, getColumnName, getComplexDatasets, getData2D, getData3D, getDatasets, getEdgeColor, getFillColor, getID, getIndex, getLineColor, getMarkerShape, getMarkerSize, getName, getPoints, getRowCount, getValidXPoints, getValidYPoints, getValueAt, getVisible, getXColumnName, getXMax, getXMin, getXPoints, getYColumnName, getYMax, getYMin, getYPoints, insertionSort, isConnected, isMeasured, isSorted, isXColumnVisible, isYColumnVisible, read, recalculatePath, setConnected, setCustomMarker, setID, setLineColor, setMarkerColor, setMarkerColor, setMarkerColor, setMarkerShape, setMarkerSize, setMaximumPoints, setName, setSorted, setStride, setVisible, setXColumnVisible, setXYColumnNames, setXYColumnNames, setYColumnVisible, toString, write
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public HighlightableDataset()
public HighlightableDataset(java.awt.Color markerColor)
markerColor
- marker colorpublic HighlightableDataset(java.awt.Color markerColor, java.awt.Color lineColor, boolean connected)
markerColor
- marker colorlineColor
- line colorconnected
- true to connect points with linepublic void append(double x, double y)
public void append(double[] xarray, double[] yarray)
public void restoreHighlights()
public void clearHighlights()
public void setHighlighted(int i, boolean highlight)
i
- the array indexhighlight
- true to highlight the pointpublic void setHighlighted(int start, int end, boolean highlight)
start
- the start array indexend
- the start array indexhighlight
- true to highlight the pointspublic boolean isHighlighted(int i)
i
- the array indexpublic void setHighlightColor(java.awt.Color color)
color
- the colorprotected void moveDatum(int loc)
public void draw(DrawingPanel drawingPanel, java.awt.Graphics g)
public static XML.ObjectLoader getLoader()