Package uk.ac.starlink.ttools.plot2
Class SingleGangerFactory<P,A>
java.lang.Object
uk.ac.starlink.ttools.plot2.SingleGangerFactory<P,A>
- All Implemented Interfaces:
GangerFactory<P,
A>
GangerFactory implementation for single-zone gangs.
- Since:
- 25 Jan 2016
- Author:
- Mark Taylor
-
Method Summary
Modifier and TypeMethodDescriptionstatic <P,
A> Ganger<P, A> Returns a single-zone ganger with default padding.static <P,
A> Ganger<P, A> createGanger
(Padding padding) Returns a single-zone ganger with specified padding.createGanger
(Padding padding, ConfigMap config, GangContext context) Creates a ganger.ConfigKey<?>[]
Returns the configuration keys that can be used to configure the gangers produced by this factory.boolean
Indicates whether this ganger factory has zones that can be created according to the details of the plot and controlled independently by user request.static <P,
A> SingleGangerFactory<P, A> instance()
Returns the sole instance of this class.
-
Method Details
-
hasIndependentZones
public boolean hasIndependentZones()Description copied from interface:GangerFactory
Indicates whether this ganger factory has zones that can be created according to the details of the plot and controlled independently by user request.- Specified by:
hasIndependentZones
in interfaceGangerFactory<P,
A> - Returns:
- true iff zones can be manipulated explicitly by the user
-
getGangerKeys
Description copied from interface:GangerFactory
Returns the configuration keys that can be used to configure the gangers produced by this factory.- Specified by:
getGangerKeys
in interfaceGangerFactory<P,
A> - Returns:
- ganger configuration keys
-
createGanger
Description copied from interface:GangerFactory
Creates a ganger.- Specified by:
createGanger
in interfaceGangerFactory<P,
A> - Parameters:
padding
- required padding around plot areaconfig
- configuration map that may contain keys from getGangerKeyscontext
- additional context required for ganger creation- Returns:
- new ganger
-
instance
Returns the sole instance of this class.- Returns:
- factory instance
-
createGanger
Returns a single-zone ganger with specified padding.- Parameters:
padding
- padding, may be null- Returns:
- new ganger
-
createGanger
Returns a single-zone ganger with default padding.- Returns:
- new ganger
-