source: trunk/src/org/expeditee/core/Fill.java@ 1097

Last change on this file since 1097 was 1097, checked in by davidb, 6 years ago

Newly structured files from Corey's work on logic/graphics separation

File size: 766 bytes
Line 
1package org.expeditee.core;
2
3/**
4 * Represents a way of filling in an area with colour. This base Fill
5 * class represents just filling the entire area with a single solid
6 * colour, but inheriting classes may add other modes of filling.
7 *
8 * @author cts16
9 */
10public class Fill {
11
12 /** The colour with which to fill an area. */
13 private Colour _colour;
14
15 /** Standard constructor. */
16 public Fill(Colour colour)
17 {
18 setColour(colour);
19 }
20
21 /** Default constructor defaults to whatever the default Colour constructor provides. */
22 public Fill()
23 {
24 setColour(new Colour());
25 }
26
27 /** Sets the fill colour. */
28 public void setColour(Colour colour)
29 {
30 _colour = colour;
31 }
32
33 /** Gets the fill colour. */
34 public Colour getColour()
35 {
36 return _colour;
37 }
38
39}
Note: See TracBrowser for help on using the repository browser.