|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.plugins.AbstractChartPlugin<Chart2D>
lt.monarch.chart.plugins.ValueMarkerPainter
public class ValueMarkerPainter extends AbstractChartPlugin<Chart2D> implements java.awt.event.MouseMotionListener, java.awt.event.MouseListener
Plug-in for Chart2D LineSeries, which implements line value markers showing
| Constructor and Description |
|---|
ValueMarkerPainter(LineSeries lineSeries,
Axis2D axisX,
Axis2D axisY)
Constructs a new LineSeriesValueMarkerPainter for the specified line series and axes. |
ValueMarkerPainter(LineSeries lineSeries,
Axis2D axisX,
Axis2D axisY,
java.awt.Color markerColor,
java.awt.Color labelColor,
java.awt.Font labelFont,
int numbersPrecision,
java.util.Locale locale)
Constructs a new LineSeriesValueMarkerPainter for the specified line series and axes. |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Prepares the plug-in, when it is installed. |
protected java.lang.String |
assemblePointText(java.lang.Object objectX,
java.lang.Object objectY)
|
void |
deactivate()
Cleanups the plug-in, when it is uninstalled. |
java.awt.Color |
getLabelColor()
Gets the label color |
java.awt.Font |
getLabelFont()
Gets the label font |
java.util.Locale |
getLocale()
Gets locale for axis with Number or Date values |
java.awt.Color |
getMarkerColor()
Gets the marker color |
int |
getNumbersPrecision()
Gets number precision for axis with Number values |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
paint(AbstractGraphics g)
Does nothing- must be overridden in extending classes. |
void |
setLabelColor(java.awt.Color labelColor)
Sets the label color |
void |
setLabelFont(java.awt.Font labelFont)
Sets the label font |
void |
setLocale(java.util.Locale locale)
Sets locale for axis with Number or Date values |
void |
setMarkerColor(java.awt.Color markerColor)
Sets the marker color |
void |
setNumbersPrecision(int numbersPrecision)
Sets number precision for axis with Number values |
| Methods inherited from class lt.monarch.chart.plugins.AbstractChartPlugin |
|---|
adjustChart, chart, getChart, install, isActivated, uninstall |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValueMarkerPainter(LineSeries lineSeries,
Axis2D axisX,
Axis2D axisY)
LineSeriesValueMarkerPainter for the specified line series and axes.
lineSeries - line seriesaxisX - x AxisaxisY - y Axis
public ValueMarkerPainter(LineSeries lineSeries,
Axis2D axisX,
Axis2D axisY,
java.awt.Color markerColor,
java.awt.Color labelColor,
java.awt.Font labelFont,
int numbersPrecision,
java.util.Locale locale)
LineSeriesValueMarkerPainter for the specified line series and axes.
lineSeries - line seriesaxisX - x AxisaxisY - y AxismarkerColor - marker line colorlabelColor - marker label colorlabelFont - marker label fontnumbersPrecision - number precision for Number type axislocale - locale for label values converting| Method Detail |
|---|
public void activate()
AbstractChartPlugin
activate in class AbstractChartPlugin<Chart2D>public void deactivate()
AbstractChartPlugin
deactivate in class AbstractChartPlugin<Chart2D>public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void paint(AbstractGraphics g)
AbstractChartPlugin
paint in interface ChartPlugin<Chart2D>paint in class AbstractChartPlugin<Chart2D>g - the Graphics context in which chart is paintedChartPlugin.paint(lt.monarch.chart.engine.AbstractGraphics)
protected java.lang.String assemblePointText(java.lang.Object objectX,
java.lang.Object objectY)
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void setMarkerColor(java.awt.Color markerColor)
markerColor - Marker colorpublic java.awt.Color getMarkerColor()
public java.awt.Color getLabelColor()
public void setLabelColor(java.awt.Color labelColor)
labelColor - the labelColor to setpublic java.awt.Font getLabelFont()
public void setLabelFont(java.awt.Font labelFont)
labelFont - the labelFont to setpublic int getNumbersPrecision()
public void setNumbersPrecision(int numbersPrecision)
numbersPrecision - the numbersPrecision to setpublic java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
locale - the locale to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||