|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.das2.graph.Renderer
org.das2.graph.ContoursRenderer
public class ContoursRenderer
Renderer for making contour plots
Field Summary | |
---|---|
static java.lang.String |
PROP_LINETHICK
|
static java.lang.String |
PROP_SIMPLIFYPATHS
|
Fields inherited from class org.das2.graph.Renderer |
---|
ds, lastException, logger, propertyChangeSupport, renderException |
Constructor Summary | |
---|---|
ContoursRenderer()
Creates a new instance of ContoursRenderer |
Method Summary | |
---|---|
boolean |
acceptContext(int x,
int y)
Returns true if the render thinks it can provide the context for a point. |
java.awt.Color |
getColor()
Getter for property color. |
java.lang.String |
getContours()
Getter for property contours. |
protected org.w3c.dom.Element |
getDOMElement(org.w3c.dom.Document document)
|
double |
getLabelCadence()
Getter for property labelCadence. |
double |
getLineThick()
|
javax.swing.Icon |
getListIcon()
An icon can be provided that will be shown in a list along with the textual description of the element. |
java.lang.String |
getListLabel()
return a String that will help the user
identify this item when choosing from a list. |
protected void |
installRenderer()
|
boolean |
isDrawLabels()
Getter for property drawLabels. |
boolean |
isSimplifyPaths()
|
void |
render(java.awt.Graphics g1,
DasAxis xAxis,
DasAxis yAxis,
ProgressMonitor mon)
Render is called whenever the image needs to be refreshed or the content has changed. |
void |
setColor(java.awt.Color color)
Setter for property color. |
void |
setContours(java.lang.String contours)
Setter for property contours. |
void |
setDrawLabels(boolean drawLabels)
Setter for property drawLabels. |
void |
setLabelCadence(double labelCadence)
Setter for property labelCadence. |
void |
setLineThick(double newlineThick)
|
void |
setSimplifyPaths(boolean newsimplifyPaths)
|
protected void |
uninstallRenderer()
|
void |
updatePlotImage(DasAxis xAxis,
DasAxis yAxis,
ProgressMonitor monitor)
updatePlotImage is called once the expensive operation of loading the data is completed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_SIMPLIFYPATHS
public static final java.lang.String PROP_LINETHICK
Constructor Detail |
---|
public ContoursRenderer()
Method Detail |
---|
public void render(java.awt.Graphics g1, DasAxis xAxis, DasAxis yAxis, ProgressMonitor mon)
Renderer
render
in class Renderer
protected void installRenderer()
installRenderer
in class Renderer
protected void uninstallRenderer()
uninstallRenderer
in class Renderer
protected org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)
getDOMElement
in class Renderer
public javax.swing.Icon getListIcon()
Displayable
null
if there
is no icon available.
getListIcon
in interface Displayable
public void updatePlotImage(DasAxis xAxis, DasAxis yAxis, ProgressMonitor monitor) throws DasException
Renderer
updatePlotImage
in class Renderer
DasException
public java.lang.String getContours()
public void setContours(java.lang.String contours)
contours
- New value of property contours.public double getLabelCadence()
public void setLabelCadence(double labelCadence)
labelCadence
- New value of property labelCadence.public boolean acceptContext(int x, int y)
Renderer
acceptContext
in class Renderer
x
- the x coordinate in the canvas coordinate system.y
- the y coordinate in the canvas coordinate system.public boolean isDrawLabels()
public void setDrawLabels(boolean drawLabels)
drawLabels
- New value of property drawLabels.public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- New value of property color.public java.lang.String getListLabel()
Displayable
String
that will help the user
identify this item when choosing from a list.
getListLabel
in interface Displayable
public boolean isSimplifyPaths()
public void setSimplifyPaths(boolean newsimplifyPaths)
public double getLineThick()
public void setLineThick(double newlineThick)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |