Class Colour

java.lang.Object
   |
   +----framework.ModuleData
           |
           +----Colour

class Colour
extends ModuleData
Colour is a data class that contains the data of a color picture.


Variable Index

 o height
 o pixels
All pixels of the Colour pixel are stored in an integer (32 bits).
 o width

Constructor Index

 o Colour()

Method Index

 o canLoad()
No load method implemented for Colour.
 o canSave()
No save method implemented for Colour.
 o display(String, String)
Display the Colour data in a dialog window.
 o getHeight()
Get the width of the picture.
 o getLoadTags()
No extensions have to be defined since no load method is implemented.
 o getSaveTags()
No extensions have to be defined since no save method is implemented.
 o getWidth()
Get the height of the picture.
 o makePixels(int, int)
Allocate the pixel array.

Variables

 o height
 private int height
 o width
 private int width
 o pixels
 public int pixels[]
All pixels of the Colour pixel are stored in an integer (32 bits).

Constructors

 o Colour
 Colour()

Methods

 o getWidth
 public int getWidth()
Get the height of the picture.

 o getHeight
 public int getHeight()
Get the width of the picture.

 o makePixels
 public void makePixels(int width,
                        int height)
Allocate the pixel array. The parameters width and height define the size of the pixel array.

 o canLoad
 public boolean canLoad()
No load method implemented for Colour.

Overrides:
canLoad in class ModuleData
 o canSave
 public boolean canSave()
No save method implemented for Colour.

Overrides:
canSave in class ModuleData
 o getLoadTags
 protected String[] getLoadTags()
No extensions have to be defined since no load method is implemented.

Overrides:
getLoadTags in class ModuleData
 o getSaveTags
 protected String[] getSaveTags()
No extensions have to be defined since no save method is implemented.

Overrides:
getSaveTags in class ModuleData
 o display
 public DataVisualisation display(String title,
                                  String filename)
Display the Colour data in a dialog window.

Overrides:
display in class ModuleData