public class ShadeAxis
extends java.lang.Object
Constructor and 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 and 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).
|
int |
getEndPadding()
Returns a nominal number of pixels required at the top and bottom
of the ramp icon to accommodated possible axis labels.
|
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
for the direction of 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()
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.