public class ShadeAxis
extends java.lang.Object
Constructor | Description |
---|---|
ShadeAxis(Shader shader,
Scaling scaling,
double dlo,
double dhi,
java.lang.String label,
Captioner captioner,
double crowding,
int rampWidth) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
javax.swing.Icon |
createAxisIcon(java.awt.Rectangle rampBounds) |
Returns an icon containing a graphical representation of the
shading axis including axis annotations (label and numbers).
|
double |
getCrowding() |
Returns the crowding factor for this axis.
|
double |
getDataHigh() |
Returns the maximum data value represented on this axis.
|
double |
getDataLow() |
Returns the minimum data value represented on this axis.
|
int |
getEndPadding() |
Returns a nominal number of pixels required at the top and bottom
of the ramp icon to accommodated possible axis labels.
|
java.lang.String |
getLabel() |
Returns the text label for this axis.
|
java.awt.Insets |
getRampInsets(java.awt.Rectangle rampBounds) |
Returns the insets that the bounds icon would like to have for
annotating the axis given the dimensions of the actual scale ramp
graphic.
|
int |
getRampWidth() |
Preferred number of pixels in the lateral direction for the axis
colour ramp.
|
public ShadeAxis(Shader shader, Scaling scaling, double dlo, double dhi, java.lang.String label, Captioner captioner, double crowding, int rampWidth)
shader
- object performing the actual shadingscaling
- maps data values to unit rangedlo
- minimum data valuedhi
- maximum data valuelabel
- axis labelcaptioner
- text rendering objectcrowding
- 1 for normal tick density, lower for fewer labels,
higher for morerampWidth
- preferred number of pixels in the lateral direction
for the the ramp icon;
this value is not used by this class, but this
class serves as a useful place to keep it@Equality public javax.swing.Icon createAxisIcon(java.awt.Rectangle rampBounds)
rampBounds
- ramp positionpublic java.awt.Insets getRampInsets(java.awt.Rectangle rampBounds)
rampBounds
- ramp positionrampBounds
required for annotationpublic int getEndPadding()
public int getRampWidth()
public double getDataLow()
public double getDataHigh()
public java.lang.String getLabel()
public double getCrowding()
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.