|
|||||||||
| 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.AxisRangeAdjuster
public class AxisRangeAdjuster extends AbstractChartPlugin<Chart2D> implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener
Plug-in for axis range adjusting and shifting.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AxisRangeAdjuster.Operation
Inner enum for operation description |
| Constructor and Description |
|---|
AxisRangeAdjuster(Axis2D axis)
Constructs a axis range adjuster plug-in. |
AxisRangeAdjuster(Axis2D axis,
Axis2D[] relatedAxis)
Constructs a axis range adjuster plug-in. |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activates the plug-in. |
void |
deactivate()
Deactivates the plug-in. |
protected void |
drawRangeRectangle(AbstractGraphics g,
Rectangle2D r,
java.awt.Color backgroundColor,
java.awt.Color foregroundColor,
Alignment al)
|
double |
getHeight()
Returns height for range adjuster. |
java.awt.Color |
getMaxRangeBackground()
Returns maximum range adjuster background color. |
java.awt.Color |
getMaxRangeForeground()
Returns maximum range adjuster foreground color. |
java.awt.Color |
getMinRangeBackground()
Returns minimum range adjuster background color. |
java.awt.Color |
getMinRangeForeground()
Returns minimum range adjuster foreground color. |
java.awt.Composite |
getRangeComposite()
Returns range paint composite. |
java.awt.Color |
getShiftRangeBackground()
Returns shift range adjuster background color. |
java.awt.Color |
getShiftRangeForeground()
Returns shift range adjuster foreground color. |
double |
getWidth()
Returns width of minimum, maximum range adjusters and minimal width for shift range adjuster. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on a chart. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on a chart and then dragged. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a chart. |
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a chart. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse button has been moved on a chart (with no buttons no down). |
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a chart. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a chart. |
void |
paint(AbstractGraphics g)
Validates and paints range adjusters rectangles. |
void |
setHeight(double height)
Sets height for range adjuster. |
void |
setMaxRangeBackground(java.awt.Color maxRangeBackground)
Sets maximum range adjuster background color. |
void |
setMaxRangeForeground(java.awt.Color maxRangeForeground)
Sets maximum range adjuster foreground color. |
void |
setMinRangeBackground(java.awt.Color minRangeBackground)
Sets minimum range adjuster background color. |
void |
setMinRangeForeground(java.awt.Color minRangeForeground)
Sets minimum range adjuster foreground color. |
void |
setRangeComposite(java.awt.Composite rangeComposite)
Sets range paint composite. |
void |
setShiftRangeBackground(java.awt.Color shiftRangeBackground)
Sets shift range adjuster background color. |
void |
setShiftRangeForeground(java.awt.Color shiftRangeForeground)
Sets shift range adjuster foreground color. |
void |
setWidth(double width)
Sets width of minimum, maximum range adjusters and minimal width for shift range adjuster. |
protected void |
validate()
Setups rectangles for range adjusting: axisMinRangeBounds, axisShiftRangeBounds, axisMaxRangeBounds. |
| 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 AxisRangeAdjuster(Axis2D axis)
axis - Axis2D object
public AxisRangeAdjuster(Axis2D axis,
Axis2D[] relatedAxis)
axis - Axis2D objectrelatedAxis - Axis2D objects for which range must be equal with main axis| Method Detail |
|---|
public double getWidth()
public void setWidth(double width)
width - the width to setpublic double getHeight()
public void setHeight(double height)
height - the height to setpublic java.awt.Color getMinRangeBackground()
public void setMinRangeBackground(java.awt.Color minRangeBackground)
minRangeBackground - the background color to setpublic java.awt.Color getMinRangeForeground()
public void setMinRangeForeground(java.awt.Color minRangeForeground)
minRangeForeground - the foreground color to setpublic java.awt.Color getShiftRangeBackground()
public void setShiftRangeBackground(java.awt.Color shiftRangeBackground)
shiftRangeBackground - the background color to setpublic java.awt.Color getShiftRangeForeground()
public void setShiftRangeForeground(java.awt.Color shiftRangeForeground)
shiftRangeForeground - the foreground color to setpublic java.awt.Color getMaxRangeBackground()
public void setMaxRangeBackground(java.awt.Color maxRangeBackground)
maxRangeBackground - the background color to setpublic java.awt.Color getMaxRangeForeground()
public void setMaxRangeForeground(java.awt.Color maxRangeForeground)
maxRangeForeground - the foreground color to setpublic java.awt.Composite getRangeComposite()
public void setRangeComposite(java.awt.Composite rangeComposite)
rangeComposite - the range composite to setpublic void activate()
activate in class AbstractChartPlugin<Chart2D>public void deactivate()
deactivate in class AbstractChartPlugin<Chart2D>public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenere - the mouse eventpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenere - the mouse eventpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenere - the mouse eventpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenere - the mouse eventpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenere - the mouse eventpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenere - the mouse eventpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenere - the mouse eventpublic void paint(AbstractGraphics g)
paint in interface ChartPlugin<Chart2D>paint in class AbstractChartPlugin<Chart2D>g - the Graphics context in which to paint zoom frameChartPlugin.paint(lt.monarch.chart.engine.AbstractGraphics)protected void validate()
protected void drawRangeRectangle(AbstractGraphics g,
Rectangle2D r,
java.awt.Color backgroundColor,
java.awt.Color foregroundColor,
Alignment al)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||