public class MatrixGangerFactory extends Object implements GangerFactory<PlaneSurfaceFactory.Profile,PlaneAspect>
Modifier and Type | Field and Description |
---|---|
static IntegerConfigKey |
CELLGAP_KEY
Config key for gap between matrix cells.
|
static ConfigKey<MatrixFormat> |
FORMAT_KEY
Config key for matrix format.
|
static MatrixGangerFactory |
INSTANCE
Sole instance.
|
static int |
MAX_NCOORD_GUI
Maximum number of coords offered by NCOORD_KEY Specifier.
|
static IntegerConfigKey |
NCOORD_KEY
Config key for number of input coordinates.
|
static BooleanConfigKey |
SQUARES_KEY
Config key for whether cells are constrained to be square.
|
Modifier and Type | Method and Description |
---|---|
Ganger<PlaneSurfaceFactory.Profile,PlaneAspect> |
createGanger(Padding padding,
ConfigMap config,
GangContext context)
Creates a ganger.
|
ConfigKey<?>[] |
getGangerKeys()
Returns the configuration keys that can be used to configure
the gangers produced by this factory.
|
MatrixShape |
getShape(ConfigMap config,
Plotter<?>[] plotters)
Returns the matrix shape that this factory will use given a
set of plot types and a configuration map.
|
boolean |
hasIndependentZones()
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 MatrixGangerFactory |
instance()
Returns the sole instance of this class.
|
public static final IntegerConfigKey NCOORD_KEY
public static final ConfigKey<MatrixFormat> FORMAT_KEY
public static final BooleanConfigKey SQUARES_KEY
public static final IntegerConfigKey CELLGAP_KEY
public static final int MAX_NCOORD_GUI
public static final MatrixGangerFactory INSTANCE
instance()
.public boolean hasIndependentZones()
GangerFactory
hasIndependentZones
in interface GangerFactory<PlaneSurfaceFactory.Profile,PlaneAspect>
public ConfigKey<?>[] getGangerKeys()
GangerFactory
getGangerKeys
in interface GangerFactory<PlaneSurfaceFactory.Profile,PlaneAspect>
public Ganger<PlaneSurfaceFactory.Profile,PlaneAspect> createGanger(Padding padding, ConfigMap config, GangContext context)
GangerFactory
createGanger
in interface GangerFactory<PlaneSurfaceFactory.Profile,PlaneAspect>
padding
- required padding around plot areaconfig
- configuration map that may contain keys from
getGangerKeyscontext
- additional context required for ganger creationpublic MatrixShape getShape(ConfigMap config, Plotter<?>[] plotters)
config
- config mapplotters
- plotters generating plots on the matrixpublic static MatrixGangerFactory instance()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.