Package uk.ac.starlink.ttools.plot2
Class ZoneContent
java.lang.Object
uk.ac.starlink.ttools.plot2.ZoneContent
Aggregates a list of items describing what appears in one zone of
a Gang.
- Since:
- 25 Jan 2016
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionZoneContent
(PlotLayer[] layers, Icon legend, float[] legPos, String title) Constructor. -
Method Summary
-
Constructor Details
-
ZoneContent
Constructor.- Parameters:
layers
- plot layers to be paintedlegend
- legend icon if required, or nulllegPos
- legend position if intenal legend is required; 2-element (x,y) array, each element in range 0-1title
- title text, or null
-
-
Method Details
-
getLayers
Returns plot layers.- Returns:
- layers to paint in zone
-
getLegend
Returns legend icon.- Returns:
- legend icon, or null
-
getLegendPosition
public float[] getLegendPosition()Returns legend position if internal legend is required.- Returns:
- 2-element (x,y) array, each element in range 0-1, or null
-
getTitle
Returns plot title if required.- Returns:
- title text, or null
-