|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTerpPaintContainer
public class TerpPaintContainer
TerpPaintContainer is used to hold a TerpPaint class object. It also implements TerpOfficeAppInterface. There is no visible state for this class. It works with all operating systems and hardware. The OS is windows. There is no implementation variances. There is no security constaints. There is no external secification.
Field Summary | |
---|---|
TerpPaint[] |
Instances
A TerpPaint object array to hold multiple instances of TerpPaint. |
(package private) int |
maxSize
Integer representing the Maximum size. |
TerpPaint |
newInstance
This is the TerpPaint object which is used to store a TerpPaint object that is passed from the constructor. |
int |
size
An integer that represents the number of instances in 'Instances'. |
(package private) boolean |
standalone
This is a boolean which is used to store a boolean value which is passed from the constructor. |
Constructor Summary | |
---|---|
TerpPaintContainer(boolean alone)
Constructor of the TerpPaintContainer. |
Method Summary | |
---|---|
void |
Add()
Adds a new window This method closes Terp Paint main program. |
boolean |
alive()
The TerpPaint object, newInstance created in TerpPaintContainer class, calls the isDisplayable function from the TerpPaint class. |
void |
close()
A TerpPaint object created in TerpPaintContainer class calls a dipose function from TerpPaint class. |
void |
launch(java.io.File file)
This function launches the program and sets a new main canvase image to the newInstance object, which is from the TerpPaint class. |
void |
launchFixed(java.io.File file)
This function launches the program and sets a new main canvase image to the newInstance object, which is from the TerpPaint class. |
void |
launchPrompt(java.io.File file)
This function launches the program and sets a new main canvase image to the newInstance object, which is from the TerpPaint class. |
boolean |
Remove(TerpPaint removeMe)
removes a TerpPaint object and returns true if there is only one left also if you remove the last one creates a new one and again returns true This method closes Terp Paint main program. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public TerpPaint newInstance
public TerpPaint[] Instances
int maxSize
public int size
boolean standalone
Constructor Detail |
---|
public TerpPaintContainer(boolean alone)
alone
- Boolean value that indicates the program runs.Method Detail |
---|
public void Add()
public boolean Remove(TerpPaint removeMe)
removeMe
- a TerpPaint instance to remove
public void close()
close
in interface TerpOfficeAppInterface
public void launch(java.io.File file)
launch
in interface TerpOfficeAppInterface
file
- FileInputStream object used to set the new main canvas image.public void launchPrompt(java.io.File file)
file
- FileInputStream object used to set the new main canvas image.public void launchFixed(java.io.File file)
file
- FileInputStream object used to set the new main canvas image.public boolean alive()
alive
in interface TerpOfficeAppInterface
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |