private void InitRendererUI() { IRasterRendererUI pRasterRendererUI = null; if (_RasterRenderer is IRasterRGBRenderer) { return; } else if (_RasterRenderer is IRasterUniqueValueRenderer) { return; } else if (_RasterRenderer is IRasterStretchColorRampRenderer) { pRasterRendererUI = new frmStretchColorRampRenderer(); } else if (_RasterRenderer is IRasterClassifyColorRampRenderer) { return; } else { return; } if (_Layer != null) { pRasterRendererUI.InitRasterRendererObject(_Layer, _RasterRenderer); } m_RendererObject.Add(pRasterRendererUI.GetType().FullName, pRasterRendererUI); treeCatelog.SelectedNode = treeCatelog.FindNodeByName(pRasterRendererUI.GetType().FullName); }
private void InitRendererUI(List <FieldInfo> pFields) { IRendererUI pRendererUI = null; if (m_FeatureRenderer is ESRI.ArcGIS.Carto.ISimpleRenderer) { pRendererUI = new frmSimpleRenderer(); } else if (m_FeatureRenderer is ESRI.ArcGIS.Carto.IUniqueValueRenderer) { pRendererUI = new frmMFUVRenderer(); } else if (m_FeatureRenderer is ESRI.ArcGIS.Carto.IClassBreaksRenderer) { ESRI.ArcGIS.Carto.IClassBreaksUIProperties pUIProp = m_FeatureRenderer as ESRI.ArcGIS.Carto.IClassBreaksUIProperties; if (pUIProp.ColorRamp != "") { pRendererUI = new frmBreakColorRenderer(); } else { pRendererUI = new frmBreakSizeRenderer(); } } else if (m_FeatureRenderer is ESRI.ArcGIS.Carto.IChartRenderer) { IChartRenderer pChartRenderer = m_FeatureRenderer as IChartRenderer; IChartSymbol pChartSymbol = pChartRenderer.ChartSymbol; if (pChartSymbol is IPieChartSymbol) { pRendererUI = new frmPieChartRenderer();//yjl20110906 add } else if (pChartSymbol is IBarChartSymbol) { pRendererUI = new frmBarChartRenderer(); } else { pRendererUI = new frmStackedChartRenderer(); } } if (m_FeatureLayer == null) { pRendererUI.InitRendererObject(pFields, m_FeatureRenderer, m_StyleClass); } else { pRendererUI.InitRendererObject(m_FeatureLayer, m_FeatureRenderer, m_StyleClass); } m_RendererObject.Add(pRendererUI.GetType().FullName, pRendererUI); treeCatelog.SelectedNode = treeCatelog.FindNodeByName(pRendererUI.GetType().FullName); }