コード例 #1
0
        private static LabelGenerationStrategy createStrategy(LabelGenerationStrategyId labelGenerationStrategyId, string displayName)
        {
            var strategy = new LabelGenerationStrategy(labelGenerationStrategyId, displayName);

            _allLabelGenerationStrategies.Add(strategy);
            return(strategy);
        }
コード例 #2
0
 public NumberOfBinsGroupingDefinition(string fieldName) : base(fieldName)
 {
     StartColor              = PKSimColors.StartGroupingColor;
     EndColor                = PKSimColors.EndGroupingColor;
     NamingPattern           = LabelGenerationOptions.DEFAULT_NAMING_PATTERN;
     Strategy                = LabelGenerationStrategies.Numeric;
     _groupingLabelGenerator = new GroupingLabelGenerator();
 }
コード例 #3
0
        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;
        }
コード例 #4
0
 public NumberOfBinsGroupingDefinition()
 {
     Strategy = LabelGenerationStrategies.Numeric;
     _groupingLabelGenerator = new GroupingLabelGenerator();
 }