private static LabelGenerationStrategy createStrategy(LabelGenerationStrategyId labelGenerationStrategyId, string displayName) { var strategy = new LabelGenerationStrategy(labelGenerationStrategyId, displayName); _allLabelGenerationStrategies.Add(strategy); return(strategy); }
public NumberOfBinsGroupingDefinition(string fieldName) : base(fieldName) { StartColor = PKSimColors.StartGroupingColor; EndColor = PKSimColors.EndGroupingColor; NamingPattern = LabelGenerationOptions.DEFAULT_NAMING_PATTERN; Strategy = LabelGenerationStrategies.Numeric; _groupingLabelGenerator = new GroupingLabelGenerator(); }
public override void UpdatePropertiesFrom(IUpdatable source, ICloneManager cloneManager) { base.UpdatePropertiesFrom(source, cloneManager); var numberOfBinsGroupingDefinition = source as NumberOfBinsGroupingDefinition; if (numberOfBinsGroupingDefinition == null) { return; } NumberOfBins = numberOfBinsGroupingDefinition.NumberOfBins; NamingPattern = numberOfBinsGroupingDefinition.NamingPattern; StartColor = numberOfBinsGroupingDefinition.StartColor; EndColor = numberOfBinsGroupingDefinition.EndColor; Strategy = numberOfBinsGroupingDefinition.Strategy; }
public NumberOfBinsGroupingDefinition() { Strategy = LabelGenerationStrategies.Numeric; _groupingLabelGenerator = new GroupingLabelGenerator(); }