Package uk.ac.starlink.ttools.plot2
Class ZoneContent
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.ZoneContent
-
public class ZoneContent extends java.lang.Object
Aggregates a list of items describing what appears in one zone of a Gang.- Since:
- 25 Jan 2016
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description ZoneContent(PlotLayer[] layers, javax.swing.Icon legend, float[] legPos, java.lang.String title)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlotLayer[]
getLayers()
Returns plot layers.javax.swing.Icon
getLegend()
Returns legend icon.float[]
getLegendPosition()
Returns legend position if internal legend is required.java.lang.String
getTitle()
Returns plot title if required.
-
-
-
Constructor Detail
-
ZoneContent
public ZoneContent(PlotLayer[] layers, javax.swing.Icon legend, float[] legPos, java.lang.String title)
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 Detail
-
getLayers
public PlotLayer[] getLayers()
Returns plot layers.- Returns:
- layers to paint in zone
-
getLegend
public javax.swing.Icon 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
public java.lang.String getTitle()
Returns plot title if required.- Returns:
- title text, or null
-
-