|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.ShadeAxis
public class ShadeAxis
Graphical representation of aux shading range which can be placed near the plot.
Constructor Summary | |
---|---|
ShadeAxis(Shader shader,
Scaling scaling,
double dlo,
double dhi,
String label,
Captioner captioner,
double crowding)
Constructor. |
Method Summary | |
---|---|
Icon |
createAxisIcon(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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShadeAxis(Shader shader, Scaling scaling, double dlo, double dhi, String label, Captioner captioner, double crowding)
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 moreMethod Detail |
---|
@Equality public Icon createAxisIcon(Rectangle rampBounds)
rampBounds
- ramp position
public Insets getRampInsets(Rectangle rampBounds)
rampBounds
- ramp position
rampBounds
required for annotationpublic int getEndPadding()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |