public interface Plotter
Modifier and Type | Field and Description |
---|---|
static int |
ADD |
static int |
NORMAL |
static int |
OVERLAY |
static int |
STACK |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all data from this plot.
|
List<Object> |
getData()
Returns the list of data objects added to this plot.
|
void |
plot(Object data,
int mode)
Displays the specified object in this plot.
|
void |
plot(Object data,
int mode,
Object style,
String options)
Displays the specified object in this plot.
|
void |
remove(Object data)
Removes a data item from this plot.
|
Component |
viewable()
Returns a component that can be used to display this plot in some other swing component.
|
static final int NORMAL
static final int OVERLAY
static final int ADD
static final int STACK
void plot(Object data, int mode)
data
- The data to be plotted.mode
- One of (NORMAL, OVERLAY, ADD, STACK).UnsupportedOperationException
- if the specified data object is not of a compatible type.void plot(Object data, int mode, Object style, String options)
data
- The data to be plotted.mode
- One of (NORMAL, OVERLAY, ADD, STACK).style
- Style that affects the display of the data.options
- Additional options that affect the display of the data.UnsupportedOperationException
- if the specified data object is not of a compatible type.void remove(Object data)
void clear()
Component viewable()
Copyright © 2018. All rights reserved.