Changeset 13112
- Timestamp:
- 11/03/15 17:12:08 (9 years ago)
- Location:
- branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3
- Files:
-
- 6 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/Chart.cs
r13105 r13112 30 30 private PointD originalUpperRight; 31 31 protected List<Offset> zoomHistory; 32 protected List<RenderStage> renderStages; 32 33 33 34 private bool enabled; … … 88 89 Scale = 1.0; 89 90 Group = new Group(this); 91 renderStages = new List<RenderStage> { 92 new BackgroundColorRenderStage(this), 93 new GridRenderStage(this), 94 new GroupRenderStage(this), 95 new EnabledRenderStage(this) 96 }; 90 97 Group.RedrawRequired += GroupOnRedrawRequired; 91 98 MinimumZoomDistance = 0.01; … … 239 246 public virtual void Render(Graphics graphics, int width, int height) { 240 247 mySizeInPixels = new Size(width, height); 241 graphics.Clear(backgroundColor); 242 Group.PreDraw(graphics); 243 Group.Draw(graphics); 244 Group.PostDraw(graphics); 245 if (!enabled) { 246 var disabledColor = Color.FromArgb(150, SystemColors.Control); 247 var brush = new SolidBrush(disabledColor); 248 var rectangle = new System.Drawing.Rectangle(new Point(0, 0), mySizeInPixels); 249 graphics.FillRectangle(brush, rectangle); 250 } 248 foreach (var renderStage in renderStages) 249 renderStage.Render(graphics); 251 250 } 252 251 -
branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/HeuristicLab.Visualization-3.3.csproj
r13105 r13112 139 139 </Compile> 140 140 <Compile Include="ChartModes\SelectChartMode.cs" /> 141 <Compile Include="RenderStage.cs" /> 142 <Compile Include="RenderStages\BackgroundColorRenderStage.cs" /> 143 <Compile Include="RenderStages\EnabledRenderStage.cs" /> 144 <Compile Include="RenderStages\GridRenderStage.cs" /> 145 <Compile Include="RenderStages\GroupRenderStage.cs" /> 141 146 <Compile Include="Trees\LayoutEngines\BoxesLayoutEngine.cs" /> 142 147 <Compile Include="Trees\LayoutEngines\ILayoutEngine.cs" />
Note: See TracChangeset
for help on using the changeset viewer.