public class WaferMapPlot extends Plot implements RendererChangeListener, Cloneable, Serializable
Modifier and Type | Field and Description |
---|---|
static Paint |
DEFAULT_CROSSHAIR_PAINT
The default crosshair paint.
|
static Stroke |
DEFAULT_CROSSHAIR_STROKE
The default crosshair stroke.
|
static boolean |
DEFAULT_CROSSHAIR_VISIBLE
The default crosshair visibility.
|
static Paint |
DEFAULT_GRIDLINE_PAINT
The default grid line paint.
|
static Stroke |
DEFAULT_GRIDLINE_STROKE
The default grid line stroke.
|
DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_INSETS, DEFAULT_LEGEND_ITEM_BOX, DEFAULT_LEGEND_ITEM_CIRCLE, DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, MINIMUM_HEIGHT_TO_DRAW, MINIMUM_WIDTH_TO_DRAW, ZERO
Constructor and Description |
---|
WaferMapPlot()
Creates a new plot with no dataset.
|
WaferMapPlot(WaferMapDataset dataset)
Creates a new plot.
|
WaferMapPlot(WaferMapDataset dataset,
WaferMapRenderer renderer)
Creates a new plot.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g2,
Rectangle2D area,
Point2D anchor,
PlotState state,
PlotRenderingInfo info)
Draws the wafermap view.
|
WaferMapDataset |
getDataset()
Returns the dataset
|
LegendItemCollection |
getLegendItems()
Return the legend items from the renderer.
|
String |
getPlotType()
Returns the plot type as a string.
|
void |
rendererChanged(RendererChangeEvent event)
Notifies all registered listeners of a renderer change.
|
void |
setDataset(WaferMapDataset dataset)
Sets the dataset used by the plot and sends a
PlotChangeEvent
to all registered listeners. |
void |
setRenderer(WaferMapRenderer renderer)
Sets the item renderer, and notifies all listeners of a change to the
plot.
|
addChangeListener, annotationChanged, axisChanged, clone, datasetChanged, drawBackground, drawBackgroundImage, drawOutline, equals, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getDatasetGroup, getDrawingSupplier, getForegroundAlpha, getInsets, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getOutlinePaint, getOutlineStroke, getParent, getRootPlot, handleClick, isNotify, isOutlineVisible, isSubplot, markerChanged, notifyListeners, removeChangeListener, resolveDomainAxisLocation, resolveRangeAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundImageAlpha, setBackgroundPaint, setDrawingSupplier, setDrawingSupplier, setForegroundAlpha, setInsets, setInsets, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setNotify, setOutlinePaint, setOutlineStroke, setOutlineVisible, setParent, zoom
public static final Stroke DEFAULT_GRIDLINE_STROKE
public static final Paint DEFAULT_GRIDLINE_PAINT
public static final boolean DEFAULT_CROSSHAIR_VISIBLE
public static final Stroke DEFAULT_CROSSHAIR_STROKE
public static final Paint DEFAULT_CROSSHAIR_PAINT
public WaferMapPlot()
public WaferMapPlot(WaferMapDataset dataset)
dataset
- the dataset (null
permitted).public WaferMapPlot(WaferMapDataset dataset, WaferMapRenderer renderer)
dataset
- the dataset (null
permitted).renderer
- the renderer (null
permitted).public String getPlotType()
getPlotType
in class Plot
public WaferMapDataset getDataset()
null
).public void setDataset(WaferMapDataset dataset)
PlotChangeEvent
to all registered listeners.dataset
- the dataset (null
permitted).public void setRenderer(WaferMapRenderer renderer)
null
, no chart will be
drawn.renderer
- the new renderer (null
permitted).public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState state, PlotRenderingInfo info)
public LegendItemCollection getLegendItems()
getLegendItems
in interface LegendItemSource
getLegendItems
in class Plot
public void rendererChanged(RendererChangeEvent event)
rendererChanged
in interface RendererChangeListener
event
- the event.Jas4pp 1.5 © Java Analysis Studio for Particle Physics