public class MarkerAxisBand extends Object implements Serializable
Constructor and Description |
---|
MarkerAxisBand(NumberAxis axis,
double topOuterGap,
double topInnerGap,
double bottomOuterGap,
double bottomInnerGap,
Font font)
Constructs a new axis band.
|
Modifier and Type | Method and Description |
---|---|
void |
addMarker(IntervalMarker marker)
Adds a marker to the band.
|
void |
draw(Graphics2D g2,
Rectangle2D plotArea,
Rectangle2D dataArea,
double x,
double y)
Draws the band.
|
boolean |
equals(Object obj)
Tests this axis for equality with another object.
|
double |
getHeight(Graphics2D g2)
Returns the height of the band.
|
int |
hashCode()
Returns a hash code for the object.
|
public MarkerAxisBand(NumberAxis axis, double topOuterGap, double topInnerGap, double bottomOuterGap, double bottomInnerGap, Font font)
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.public void addMarker(IntervalMarker marker)
marker
- the marker.public double getHeight(Graphics2D g2)
g2
- the graphics device.public void draw(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, double x, double y)
g2
- the graphics device.plotArea
- the plot area.dataArea
- the data area.x
- the x-coordinate.y
- the y-coordinate.public boolean equals(Object obj)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics