com.jrefinery.chart
Class HorizontalMarkerAxisBand
java.lang.Object
|
+--com.jrefinery.chart.HorizontalMarkerAxisBand
- public class HorizontalMarkerAxisBand
- extends java.lang.Object
A band that can be added to a horizontal axis to display regions.
- Author:
- DG
Method Summary |
void |
addMarker(Marker marker)
Adds a marker to the band. |
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
java.awt.geom.Rectangle2D dataArea,
double x,
double y)
Draws the band. |
double |
getHeight(java.awt.Graphics2D g2)
Returns the height of the band. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HorizontalMarkerAxisBand
public HorizontalMarkerAxisBand(HorizontalNumberAxis axis,
double topOuterGap,
double topInnerGap,
double bottomOuterGap,
double bottomInnerGap,
java.awt.Font font)
- Constructs a new axis band.
- Parameters:
axis
- the owner.topOuterGap
- the top outer gap.topInnerGap
- the top inner gap.bottomOuterGap
- the bottom outer gap.bottomInnerGap
- the bottom inner gap.font
- the font.
addMarker
public void addMarker(Marker marker)
- Adds a marker to the band.
- Parameters:
marker
- the marker.
getHeight
public double getHeight(java.awt.Graphics2D g2)
- Returns the height of the band.
- Parameters:
g2
- the graphics device.- Returns:
- the height of the band.
draw
public void draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
java.awt.geom.Rectangle2D dataArea,
double x,
double y)
- Draws the band.
- Parameters:
g2
- the graphics device.plotArea
- the plot area.dataArea
- the data area.x
- the x-coordinate.y
- the y-coordinate.