public Control CreateControlByGeometricEffect(IGeometricEffect pGE, BasicSymbolLayerBaseControl attControl) { if (pGE is IBasicMarkerSymbol) { return(new GeometricEffectMarkerPage(attControl)); } if (pGE is IBasicFillSymbol) { return(new GeometricEffectFillPage(attControl)); } if (pGE is IBasicLineSymbol) { return(new GeometricEffectLinePage(attControl)); } switch ((pGE as IGraphicAttributes).ClassName) { case "Cut curve": return(new GeometricCutCurverPage(attControl)); case "Add control points": return(new GeometricEffectAddControlPointsPage(attControl)); case "Buffer": return(new GeometricEffectBufferPage(attControl)); case "Dashes": return(new GeometricEffectDashesPage(attControl)); case "Donut": return(new GeometricEffectDonutPage(attControl)); case "Enclosing Polygon": return(new GeometricEffectEnclosingPolygonPage(attControl)); case "Fill": return(new GeometricEffectFillPage(attControl)); case "Line": return(new GeometricEffectLinePage(attControl)); case "Marker": return(new GeometricEffectMarkerPage(attControl)); case "Offset curve": return(new GeometricEffectOffsetCurvePage(attControl)); case "Radial from point": return(new GeometricEffectRadialfromPointPage(attControl)); case "Reverse curver": return(new GeometricEffectReverseCurverPage(attControl)); case "Simply": return(new GeometricEffectSimplyPage(attControl)); case "Smooth curver": return(new GeometricSmoothCurverPage(attControl)); } return(null); }
public GeometricEffectDashesPage(BasicSymbolLayerBaseControl pControl) { this.InitializeComponent(); if (base.m_pGeometricEffect == null) { base.m_pGeometricEffect = new GeometricEffectDashClass(); } this.m_pControl = pControl; }
public Control CreateMarkerPlaceControl(IMarkerPlacement pGE, BasicSymbolLayerBaseControl attControl) { IGraphicAttributes attributes = new MarkerPlacementInsidePolygonClass(); string className = attributes.ClassName; string str2 = (pGE as IGraphicAttributes).ClassName; switch ((pGE as IGraphicAttributes).ClassName) { case "Along line": return(new MarkerPlacementAlongLinePage(attControl)); case "At extremities": return(new MarkerPlacementAtExtremitiesPage(attControl)); case "Decorations": return(new MarkerPlacementDecorationPage(attControl)); case "Inside polygon": return(new MarkerPlacementInsidePolygonPage(attControl)); case "On line": return(new MarkerPlacementOnLinePage(attControl)); case "On point": return(new MarkerPlacementOnPointPage(attControl)); case "Polygon center": return(new MarkerPlacementPolygonCenterPage(attControl)); case "Randomly along": return(new MarkerPlacementRandomAlongLinePage(attControl)); case "Randomly inside polygon": return(new MarkerPlacementRandomInPolygonPage(attControl)); case "Variable size": return(new MarkerPlacementVariableAlongLinePage(attControl)); } return(null); }
public MarkerPlacementOnLinePage(BasicSymbolLayerBaseControl pControl) { this.InitializeComponent(); base.m_pControl = pControl; }
public GeometricEffectOffsetCurvePage(BasicSymbolLayerBaseControl pControl) { this.InitializeComponent(); base.m_pGeometricEffect = new GeometricEffectOffsetClass(); this.m_pControl = pControl; }
public GeometricEffectBufferPage(BasicSymbolLayerBaseControl pControl) { this.InitializeComponent(); this.m_pControl = pControl; base.m_pGeometricEffect = new GeometricEffectBufferClass(); }
public MarkerPlacementRandomInPolygonPage(BasicSymbolLayerBaseControl pControl) { this.InitializeComponent(); base.m_pControl = pControl; }
public GeometricEffectRadialfromPointPage(BasicSymbolLayerBaseControl pControl) { this.InitializeComponent(); base.m_pGeometricEffect = new GeometricEffectRadialClass(); this.m_pControl = pControl; }
public GeometricEffectFillPage(BasicSymbolLayerBaseControl pControl) { this.InitializeComponent(); base.m_pGeometricEffect = new BasicFillSymbolClass(); this.m_pControl = pControl; }
public GeometricEffectEnclosingPolygonPage(BasicSymbolLayerBaseControl pControl) { this.InitializeComponent(); this.m_pControl = pControl; base.m_pGeometricEffect = new GeometricEffectEnclosingPolygonClass(); }