uk.ac.starlink.ttools.plot2
Interface GangerFactory<P,A>


public interface GangerFactory<P,A>

Generates Ganger instances for a particular purpose, for instance a particular type of plot, taking account of supplied user preferences. At present, the user preferences are just in the form of required margins outside the plot area, but it may acquire more detailed functions in the future.

You can find a basic single-zone implementation at SingleGanger.FACTORY.

Since:
12 Dec 2016
Author:
Mark Taylor

Method Summary
 Ganger<P,A> createGanger(Padding padding)
          Returns a ganger given user margin preferences.
 boolean isMultiZone()
          Indicates whether this ganger may generate multi-zone plots.
 

Method Detail

isMultiZone

boolean isMultiZone()
Indicates whether this ganger may generate multi-zone plots.

Returns:
false if returned gangers are always single-zone

createGanger

Ganger<P,A> createGanger(Padding padding)
Returns a ganger given user margin preferences.

Parameters:
padding - required padding around plot area


Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.