/// <summary> /// Renders a single square on the given graphics context on the specified /// rectangle. /// /// <param name="square">The square to render.</param> /// <param name="g">The graphics context to draw on.</param> /// <param name="r">The position and dimension for rendering the square.</param> // tag::render[] private void Render(Square square, Graphics g, Rectangle r) { Point position = r.Position; square.Sprite.Draw(g, r); foreach (Unit unit in square.Occupants) { unit.Sprite.Draw(g, r); } }
// tag::drawBarChart[] public static void DrawBarChart(Graphics g, CategoryItemRendererState state, Rectangle graphArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset) { // .. }
public void Draw(Graphics g, Rectangle r) { }
public BarChart setGraphArea(Rectangle graphArea) { this.graphArea = graphArea; return(this); }
public BarChart setGraphArea(Rectangle graphArea) { this.graphArea = graphArea; return this; }