private void ScaleTypeComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { ComboBoxItem selectedComboBoxItem = ScalesComboBox.SelectedItem as ComboBoxItem; string scalesResourceKey = selectedComboBoxItem.Tag as string; ScaleCollection scales = Resources[scalesResourceKey] as ScaleCollection; GanttChartView.Scales = scales; }
public TransformedLayerWrapper(IPlotArea layer, double xinc, double yinc) { _layer = layer; _xScale = new TransformedScale(layer.XAxis, xinc); _yScale = new TransformedScale(layer.YAxis, yinc); _scales = new ScaleCollection(); _scales[0] = _xScale; _scales[1] = _yScale; }
public DensityLegendArea(DensityLegendArea from) { _size = from._size; _scales = from._scales.Clone(); _scales.ParentObject = this; _coordinateSystem = (CS.G2DCartesicCoordinateSystem)from._coordinateSystem.Clone(); _coordinateSystem.ParentObject = this; }
public DensityLegendArea(PointD2D size, bool isXYInterchanged, bool isXReversed, Scale scale, TickSpacing tickSpacing) { _size = size; _scales = new ScaleCollection() { ParentObject = this }; _scales[0] = scale; scale.TickSpacing = tickSpacing; _scales[1] = new LinearScale() { TickSpacing = new NoTickSpacing() }; _coordinateSystem = new Altaxo.Graph.Gdi.CS.G2DCartesicCoordinateSystem() { ParentObject = this }; _coordinateSystem.IsXYInterchanged = isXYInterchanged; _coordinateSystem.IsXReverse = isXReversed; _coordinateSystem.UpdateAreaSize(_size); }
public DensityLegendArea(DensityLegendArea from) { this._size = from._size; this._scales = from._scales.Clone(); this._scales.ParentObject = this; this._coordinateSystem = (CS.G2DCartesicCoordinateSystem)from._coordinateSystem.Clone(); this._coordinateSystem.ParentObject = this; }