<< Chapter < Page
  Digital signal processing - dsp     Page 9 / 27
Chapter >> Page >

(The two pages in Figure 5 were manually arranged as shown before capturing the screen shot to emphasize the transition of the data from onepage to the next. The large white rectangles in Figure 5 are the result of removing the background clutter in the image caused by icons on thedesktop.)

Proper locations for awt frame under winxp

These specific values and the locations in the data where they are placed provide visible confirmation that the transitions mentioned above are handledcorrectly by the plotting object. These are the correct locations for an AWT Frame object for Java running under WinXP. Note however that a Frame may have different inset values (border widths) under other operating systems, which may cause these specific locations to fail to match up for that operating system. In that case, thevalues will be plotted but they won't necessarily occur at the same physical locations in order to confirm the proper transition.

(They also match up properly for the Windows 7 Classic scheme, but not for the other Windows 7 themes.)

Information about plotting parameters

Information about the plotting parameters for each plotting object is displayed on the command line screen when this class is used for plotting. Thevalues shown below result from the execution of the main method of the PlotALot01 class for self-test purposes. One of the plotting objects instantiated by the main method is titled "A" and the other is titled "B" .

null

The graphic output produced for the object titled "A" is shown in Figure 5 . This output was based on plotting format parameters that were passed to theconstructor. The graphic output produced for the object titled "B" is shown in Figure 1 . This output was based on default plotting parameters.

Overloaded plotdata method

There are two overloaded versions of the plotData method. One version allows the user to specify the location on the screen where thestack of plotted pages will appear. This version requires two parameters, which are coordinate values in pixels. The first parameter specifies the horizontalcoordinate of the upper left corner of the stack of pages relative to the upper left corner of the screen. The second parameter specifies the verticalcoordinate of the upper left corner of the stack of pages relative to the upper left corner of the screen.

(Specifying coordinate values of 0,0 causes the stack to be located in the upper left corner of the screen. Positive vertical coordinatesprogress down the screen.)

The other overloaded version of plotData places the stack of pages in the upper left corner of the screen by default.

A windowlistener for program termination

Each page has a WindowListener that will terminate the program if the user clicks the close button on the Frame (the X-button in the upper-right corner) .

J2se 5.0 is required

The class was tested using J2SE 5.0 and WinXP. J2SE 5.0 is required because the class uses generics with an ArrayList object. (More recently, it was re-tested using java version "1.8.0_60" under Windows 7.)

Questions & Answers

if three forces F1.f2 .f3 act at a point on a Cartesian plane in the daigram .....so if the question says write down the x and y components ..... I really don't understand
Syamthanda Reply
hey , can you please explain oxidation reaction & redox ?
Boitumelo Reply
hey , can you please explain oxidation reaction and redox ?
Boitumelo
for grade 12 or grade 11?
Sibulele
the value of V1 and V2
Tumelo Reply
advantages of electrons in a circuit
Rethabile Reply
we're do you find electromagnetism past papers
Ntombifuthi
what a normal force
Tholulwazi Reply
it is the force or component of the force that the surface exert on an object incontact with it and which acts perpendicular to the surface
Sihle
what is physics?
Petrus Reply
what is the half reaction of Potassium and chlorine
Anna Reply
how to calculate coefficient of static friction
Lisa Reply
how to calculate static friction
Lisa
How to calculate a current
Tumelo
how to calculate the magnitude of horizontal component of the applied force
Mogano
How to calculate force
Monambi
a structure of a thermocouple used to measure inner temperature
Anna Reply
a fixed gas of a mass is held at standard pressure temperature of 15 degrees Celsius .Calculate the temperature of the gas in Celsius if the pressure is changed to 2×10 to the power 4
Amahle Reply
How is energy being used in bonding?
Raymond Reply
what is acceleration
Syamthanda Reply
a rate of change in velocity of an object whith respect to time
Khuthadzo
how can we find the moment of torque of a circular object
Kidist
Acceleration is a rate of change in velocity.
Justice
t =r×f
Khuthadzo
how to calculate tension by substitution
Precious Reply
hi
Shongi
hi
Leago
use fnet method. how many obects are being calculated ?
Khuthadzo
khuthadzo hii
Hulisani
how to calculate acceleration and tension force
Lungile Reply
you use Fnet equals ma , newtoms second law formula
Masego
please help me with vectors in two dimensions
Mulaudzi Reply
how to calculate normal force
Mulaudzi
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Digital signal processing - dsp. OpenStax CNX. Jan 06, 2016 Download for free at https://legacy.cnx.org/content/col11642/1.38
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Digital signal processing - dsp' conversation and receive update notifications?

Ask