|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.topcat.plot2.MultiConfigger
public class MultiConfigger
Configger implementation that aggregates config entries from a number of subordinate configgers. The subordinate configgers can be either global (applying to all zones) or per-zone (applying to only a requested zone id).
Constructor Summary | |
---|---|
MultiConfigger()
Constructor. |
Method Summary | |
---|---|
void |
addGlobalConfigger(Configger configger)
Adds a global subordinate configger to the list. |
void |
addZoneConfigger(ZoneId zid,
Configger configger)
Adds a subordinate configger that contributes configuration specific to a given zone. |
uk.ac.starlink.ttools.plot2.config.ConfigMap |
getGlobalConfig()
Acquires that part of the configuration from subordinate configgers that applies to all zones. |
uk.ac.starlink.ttools.plot2.config.ConfigMap |
getZoneConfig(ZoneId zid)
Acquires all the configuration from subordinate configgers that applies to a given zone. |
Configger |
layerConfigger(uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> zsel)
Convenience method to return a dynamic configger whose configuration returns depend on the state at getConfig-time of a given zone selector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiConfigger()
Method Detail |
---|
public void addGlobalConfigger(Configger configger)
configger
- item whose config values will be gathered for the
result of this onepublic void addZoneConfigger(ZoneId zid, Configger configger)
zid
- zone idconfigger
- per-zone configgerpublic uk.ac.starlink.ttools.plot2.config.ConfigMap getGlobalConfig()
public uk.ac.starlink.ttools.plot2.config.ConfigMap getZoneConfig(ZoneId zid)
zid
- zone of interest
public Configger layerConfigger(uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> zsel)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |