Final OOP-Lesson 8 Flashcards
always closes the shape and has a fill method while polyline doesn’t have.
Polygon
remains open unless to close it.
Polyline
gives the directory where the file is located
getCodeBase()
gives the full address where your file is
located including the filename.
getDocumentBase()
are the only audio file format being
supported by Java.
.wav, .au, and .mid
.Wav stands for?
Waveform Audio File
.Au stands for
AUdio file
.Mid/Midi
Musical Instrument Digital Interface
music stops when finished
variable.play()
music continues playing
variable.loop()
syntax for adding Sound/Music
AudioClip variable = getAudioClip(getCodeBase()/getDocumentBase(), “filename.___”);
syntax for Polyline and Polygon
Data type variable[ ] = {elements};
.drawPolyline(xPoints[ ], yPoints[ ], nPoints);
.drawPolygon(xPoints[ ], yPoints[ ], nPoints);
.fillPolygon(xPoints[ ], yPoints[ ], nPoints);