public class PolarPlotRenderer extends Renderer
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
mirror
if true, then mirror the image about angle=0.
|
protected java.lang.String |
origin |
protected boolean |
originNorth |
static java.lang.String |
PROP_CLOCKWISE |
static java.lang.String |
PROP_DRAWPOLARAXES |
static java.lang.String |
PROP_LINEWIDTH |
static java.lang.String |
PROP_MIRROR |
static java.lang.String |
PROP_ORIGIN
One of "", "N", "S", "E", "W"
|
static java.lang.String |
PROP_ORIGINNORTH
if true, then angle=0 is in the positive Y direction, otherwise
it is in the positive x direction
|
bottomDecorator, colorBar, control, CONTROL_KEY_COLOR, CONTROL_KEY_COLOR_TABLE, CONTROL_KEY_DRAW_ERROR, CONTROL_KEY_FILL_COLOR, CONTROL_KEY_FILL_DIRECTION, CONTROL_KEY_FILL_TEXTURE, CONTROL_KEY_FONT_SIZE, CONTROL_KEY_LINE_STYLE, CONTROL_KEY_LINE_THICK, CONTROL_KEY_MODULO_X, CONTROL_KEY_MODULO_Y, CONTROL_KEY_REFERENCE, CONTROL_KEY_SPECIAL_COLORS, CONTROL_KEY_SYMBOL, CONTROL_KEY_SYMBOL_SIZE, drawLegendLabel, ds, firstValidIndex, id, lastException, lastValidIndex, legendLabel, logger, MARKER_DATASET, MARKER_X_AXIS_RANGE, MARKER_Y_AXIS_RANGE, needWorkMarkers, PROP_ACTIVE, PROP_BOTTOMDECORATOR, PROP_COLORBAR, PROP_CONTROL, PROP_DRAWLEGENDLABEL, PROP_ID, PROP_LEGENDLABEL, PROP_RECORDFILE, PROP_TOPDECORATOR, propertyChangeSupport, renderException, topDecorator| Constructor and Description |
|---|
PolarPlotRenderer(DasColorBar cb) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptContext(int x,
int y)
Returns true if the render will accept the context for a point.
|
static boolean |
acceptsData(QDataSet ds)
accepts data that is rank 2 and not a timeseries.
|
static QDataSet |
doAutorange(QDataSet tds)
autorange the data set.
|
java.awt.Color |
getColor()
Get the color for contour lines
|
java.lang.String |
getControl()
get the string which summarizes the state of the renderer.
|
double |
getLineWidth()
get the width, in pixels of the contour lines.
|
javax.swing.Icon |
getListIcon()
experiment with drawing the list icon dynamically.
|
java.lang.String |
getOrigin() |
protected void |
installRenderer() |
boolean |
isClockwise()
true if increasing angle corresponds to clockwise when not mirror.
|
boolean |
isDrawPolarAxes() |
boolean |
isMirror() |
boolean |
isOriginNorth() |
void |
render(java.awt.Graphics2D g1,
DasAxis xAxis,
DasAxis yAxis)
Render is called whenever the image needs to be refreshed or the content
has changed.
|
java.awt.Shape |
selectionArea() |
void |
setClockwise(boolean clockwise)
true if increasing angle corresponds to clockwise when not mirror.
|
void |
setColor(java.awt.Color color)
Set the color for contour lines
|
void |
setColorBar(DasColorBar colorBar)
set a colorbar for the renderer.
|
void |
setControl(java.lang.String s)
set the control string which contains a number of properties.
|
void |
setDrawPolarAxes(boolean drawPolarAxes) |
void |
setLineWidth(double lineWidth) |
void |
setMirror(boolean mirror) |
void |
setOrigin(java.lang.String origin) |
void |
setOriginNorth(boolean originNorth) |
protected void |
uninstallRenderer() |
void |
update()
Something has changed with the Render, and the plot should come back
to allow this render to repaint.
|
acceptsDataSet, addPropertyChangeListener, addPropertyChangeListener, addToStats, decodeDatum, decodeFillStyle, decodePlotSymbolConnectorControl, decodePlotSymbolControl, drawListIcon, encodeBooleanControl, encodeColorControl, encodeDatum, encodeFillStyle, encodePlotSymbolConnectorControl, encodePlotSymbolControl, formatControl, getAffineTransform, getBooleanControl, getBottomDecorator, getColorBar, getColorControl, getConsumedDataSet, getControl, getDataLoader, getDataSet, getDataSetDescriptor, getDataSetID, getDatumControl, getDoubleArrayControl, getDoubleControl, getId, getIntegerControl, getInternalDataSet, getLastException, getLegendLabel, getListLabel, getParent, getRenderCount, getStatsFile, getTopDecorator, getUpdateCount, getXmemento, getYmemento, hasControl, incrementRenderCount, incrementUpdateCount, invalidateParentCacheImage, isActive, isDrawLegendLabel, isDumpDataSet, isTableDataSet, parseControl, parseLayoutString, postException, postMessage, postMessage, refresh, refreshImage, removePropertyChangeListener, removePropertyChangeListener, renderException, resetCounters, setActive, setBottomDecorator, setDataSet, setDataSetDescriptor, setDataSetID, setDataSetLoader, setDrawLegendLabel, setDumpDataSet, setException, setId, setLastException, setLegendLabel, setParent, setStatsFile, setTopDecorator, setUpFont, setUpFont, updateCacheImage, updateImmediately, updatePlotImagepublic static final java.lang.String PROP_LINEWIDTH
public static final java.lang.String PROP_ORIGINNORTH
protected boolean originNorth
public static final java.lang.String PROP_CLOCKWISE
public static final java.lang.String PROP_ORIGIN
protected java.lang.String origin
public static final java.lang.String PROP_DRAWPOLARAXES
protected boolean mirror
public static final java.lang.String PROP_MIRROR
public PolarPlotRenderer(DasColorBar cb)
public javax.swing.Icon getListIcon()
getListIcon in interface DisplayablegetListIcon in class Rendererpublic boolean acceptContext(int x,
int y)
RendereracceptContext in class Rendererx - the x coordinate in the canvas coordinate system.y - the y coordinate in the canvas coordinate system.public java.awt.Shape selectionArea()
public static boolean acceptsData(QDataSet ds)
ds - public final void setColorBar(DasColorBar colorBar)
RenderersetColorBar in class RenderercolorBar - a colorbarpublic void update()
Rendererpublic double getLineWidth()
public void setLineWidth(double lineWidth)
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color - the color for contour linespublic static QDataSet doAutorange(QDataSet tds)
tds - public void render(java.awt.Graphics2D g1,
DasAxis xAxis,
DasAxis yAxis)
Rendererprotected void installRenderer()
installRenderer in class Rendererprotected void uninstallRenderer()
uninstallRenderer in class Rendererpublic java.lang.String getControl()
RenderergetControl in class Rendererpublic void setControl(java.lang.String s)
RenderersetControl in class Renderers - the controletcpublic boolean isOriginNorth()
public void setOriginNorth(boolean originNorth)
public boolean isClockwise()
public void setClockwise(boolean clockwise)
clockwise - true if increasing angle corresponds to clockwisepublic java.lang.String getOrigin()
public void setOrigin(java.lang.String origin)
public boolean isDrawPolarAxes()
public void setDrawPolarAxes(boolean drawPolarAxes)
public boolean isMirror()
public void setMirror(boolean mirror)