public class ShadeAxis extends Object
| Constructor and Description |
|---|
ShadeAxis(Shader shader,
Scaler scaler,
String label,
Captioner captioner,
double crowding,
int rampWidth)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Icon |
createAxisIcon(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.
|
String |
getLabel()
Returns the text label for this axis.
|
Insets |
getRampInsets(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, Scaler scaler, String label, Captioner captioner, double crowding, int rampWidth)
shader - object performing the actual shadingscaler - maps data values to unit rangelabel - 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 Icon createAxisIcon(Rectangle rampBounds)
rampBounds - ramp positionpublic Insets getRampInsets(Rectangle rampBounds)
rampBounds - ramp positionrampBounds
required for annotationpublic int getEndPadding()
public int getRampWidth()
public double getDataLow()
public double getDataHigh()
public String getLabel()
public double getCrowding()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.