I have an object called ColumnSection which represents a reinforced concrete
column. This object contains an arraylist called Diagrams which contains
Graph2D objects which are essentially X-Y plots. The Graph2D object has 2
public methods - Draw, which draws the plot on a bitmap in memory and
DisplayGraph which blits the bitmap on to a Panel or PictureBox.
I have a public ReadOnly property in the ColumnSection called
InteractionDiagrams which returns the Diagrams arraylist. I want to be able
to get the arraylist in a form with a PictureBox.
Questions:
1. Should the InteractionDiagrams property return the Diagrams arraylist or
a clone of the Diagrams arraylist? Are there any issues either way?
2. Is there anything wrong in calling either the Draw or DisplayGraph
methods of the Graph2D objects in the Diagrams arraylist from the form with
the PictureBox?
Any thoughts would be greatly appreciated.
Keith.