org.jfree.chart.axis

Class MarkerAxisBand

public class MarkerAxisBand extends Object implements Serializable

A band that can be added to a number axis to display regions.
Constructor Summary
MarkerAxisBand(NumberAxis axis, double topOuterGap, double topInnerGap, double bottomOuterGap, double bottomInnerGap, Font font)
Constructs a new axis band.
Method Summary
voidaddMarker(IntervalMarker marker)
Adds a marker to the band.
voiddraw(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, double x, double y)
Draws the band.
booleanequals(Object obj)
Tests this axis for equality with another object.
doublegetHeight(Graphics2D g2)
Returns the height of the band.
inthashCode()
Returns a hash code for the object.

Constructor Detail

MarkerAxisBand

public MarkerAxisBand(NumberAxis axis, double topOuterGap, double topInnerGap, double bottomOuterGap, double bottomInnerGap, 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.

Method Detail

addMarker

public void addMarker(IntervalMarker marker)
Adds a marker to the band.

Parameters: marker the marker.

draw

public void draw(Graphics2D g2, Rectangle2D plotArea, 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.

equals

public boolean equals(Object obj)
Tests this axis for equality with another object. Note that the axis that the band belongs to is ignored in the test.

Parameters: obj the object (null permitted).

Returns: true or false.

getHeight

public double getHeight(Graphics2D g2)
Returns the height of the band.

Parameters: g2 the graphics device.

Returns: The height of the band.

hashCode

public int hashCode()
Returns a hash code for the object.

Returns: A hash code.

Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.