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.
-
height
-
-
pixels
- All pixels of the Colour pixel are stored in an integer (32 bits).
-
width
-
-
Colour()
-
-
canLoad()
- No load method implemented for Colour.
-
canSave()
- No save method implemented for Colour.
-
display(String, String)
- Display the Colour data in a dialog window.
-
getHeight()
- Get the width of the picture.
-
getLoadTags()
- No extensions have to be defined since no load method is implemented.
-
getSaveTags()
- No extensions have to be defined since no save method is implemented.
-
getWidth()
- Get the height of the picture.
-
makePixels(int, int)
- Allocate the pixel array.
height
private int height
width
private int width
pixels
public int pixels[]
- All pixels of the Colour pixel are stored in an integer (32 bits).
Colour
Colour()
getWidth
public int getWidth()
- Get the height of the picture.
getHeight
public int getHeight()
- Get the width of the picture.
makePixels
public void makePixels(int width,
int height)
- Allocate the pixel array. The parameters width and height define
the size of the pixel array.
canLoad
public boolean canLoad()
- No load method implemented for Colour.
- Overrides:
- canLoad in class ModuleData
canSave
public boolean canSave()
- No save method implemented for Colour.
- Overrides:
- canSave in class ModuleData
getLoadTags
protected String[] getLoadTags()
- No extensions have to be defined since no load method is implemented.
- Overrides:
- getLoadTags in class ModuleData
getSaveTags
protected String[] getSaveTags()
- No extensions have to be defined since no save method is implemented.
- Overrides:
- getSaveTags in class ModuleData
display
public DataVisualisation display(String title,
String filename)
- Display the Colour data in a dialog window.
- Overrides:
- display in class ModuleData