Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ZoneContent

        public ZoneContent​(PlotLayer[] layers,
                           javax.swing.Icon legend,
                           float[] legPos,
                           java.lang.String title)
        Constructor.
        Parameters:
        layers - plot layers to be painted
        legend - legend icon if required, or null
        legPos - legend position if intenal legend is required; 2-element (x,y) array, each element in range 0-1
        title - 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