public abstract class TickSkyAxisLabeller extends Object implements SkyAxisLabeller
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
TickSkyAxisLabeller.SkyTick
Aggregates a line label, graphics position and text anchor. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static Anchor | 
X_ANCHOR  | 
static Anchor | 
Y_ANCHOR  | 
| Constructor and Description | 
|---|
TickSkyAxisLabeller(String name,
                   String description,
                   boolean labelSys)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract TickSkyAxisLabeller.SkyTick[] | 
calculateTicks(double[][][] lines,
              Caption[] labels,
              Rectangle plotBounds)
Returns a list of ticks for labelling lines produced by a
 GridLiner. 
 | 
AxisAnnotation | 
createAxisAnnotation(GridLiner gridLiner,
                    Captioner captioner,
                    SkySys skySys)
Returns an axis annotation object for a given grid painter and
 captioner. 
 | 
static TickSkyAxisLabeller.SkyTick | 
createExternalTick(Caption label,
                  double[][] line,
                  Rectangle bounds)
Constructs a single tick that sits outside the plot bounding box
 for a given grid line. 
 | 
static TickSkyAxisLabeller.SkyTick | 
createInternalTick(Caption label,
                  double[][] line)
Constructs a single tick that sits inside the plot bounding box
 for a given grid line. 
 | 
String | 
getLabellerDescription()
Returns a description for this mode. 
 | 
String | 
getLabellerName()
Returns a name for this axis labelling mode. 
 | 
protected TickSkyAxisLabeller.SkyTick[] | 
removeOverlaps(TickSkyAxisLabeller.SkyTick[] ticks,
              Captioner captioner)
Takes a list of ticks and removes some elements if they are
 so crowded together the labels overlap. 
 | 
public String getLabellerName()
SkyAxisLabellergetLabellerName in interface SkyAxisLabellerpublic String getLabellerDescription()
SkyAxisLabellergetLabellerDescription in interface SkyAxisLabellerpublic AxisAnnotation createAxisAnnotation(GridLiner gridLiner, Captioner captioner, SkySys skySys)
SkyAxisLabellercreateAxisAnnotation in interface SkyAxisLabellergridLiner - grid lines for a sky plotcaptioner - text rendererskySys - sky coordinate systemprotected abstract TickSkyAxisLabeller.SkyTick[] calculateTicks(double[][][] lines, Caption[] labels, Rectangle plotBounds)
lines - gridliner line point arraylabels - gridliner line label arrayplotBounds - extent of plot region in graphics coordinatesGridLinerprotected TickSkyAxisLabeller.SkyTick[] removeOverlaps(TickSkyAxisLabeller.SkyTick[] ticks, Captioner captioner)
ticks - input tick listcaptioner - text rendererpublic static TickSkyAxisLabeller.SkyTick createExternalTick(Caption label, double[][] line, Rectangle bounds)
label - tick textline - grid line coordinates - array of (x,y) arraysbounds - plot region boundspublic static TickSkyAxisLabeller.SkyTick createInternalTick(Caption label, double[][] line)
label - tick textline - grid line coordinates - array of (x,y) arraysCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.