Initial commit
This commit is contained in:
commit
881ceee934
27 changed files with 6013 additions and 0 deletions
19
JOE.txt
Normal file
19
JOE.txt
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
/*
|
||||||
|
* JUSTIFICATION FOR NOT HAVING SEPERATE CLASSES FOR PLANETS AND MOONS
|
||||||
|
*
|
||||||
|
* I did originally have that, but once I implemented the ability to switch the focused planet
|
||||||
|
* (press the numbers keys), differentiating between 'planet' and 'moon' became meaningless as
|
||||||
|
* any given point was either the centre point (as represented by the `CentrePoint` class) or a
|
||||||
|
* satellite of it. The only difference between a planet-type and moon-type satellite was whether
|
||||||
|
* they orbited the centre point in the Sol view, or another satellite. As such, having separate
|
||||||
|
* classes for them seemed incorrect, so I went for overloaded constructors instead. It would be
|
||||||
|
* easy enough to return to `Planet` and `Moon` classes that extend `Satellite` with their seperate
|
||||||
|
* constructors, however. As per polymorphism any instance of a `Satellite` object being expected
|
||||||
|
* in `Solar` could take a `Planet` or `Moon` object as its argument and be fine, so `Solar` might
|
||||||
|
* not even have to be changed at all.
|
||||||
|
*
|
||||||
|
* However, I've included an alternate version with Moon and Planet classes that is fully functional,
|
||||||
|
* to demonstrate my understanding of inheritance and polymorphism. As this was completed after the
|
||||||
|
* review, I've marked it as such and included the original version with the overloaded constructors
|
||||||
|
* that was marked.[NOTE: This alternate version has not been included here]
|
||||||
|
*/
|
674
LICENSE
Executable file
674
LICENSE
Executable file
|
@ -0,0 +1,674 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
258
doc/CentrePoint.html
Executable file
258
doc/CentrePoint.html
Executable file
|
@ -0,0 +1,258 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:18 GMT 2015 -->
|
||||||
|
<title>CentrePoint</title>
|
||||||
|
<meta name="date" content="2015-10-29">
|
||||||
|
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||||
|
<script type="text/javascript" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
try {
|
||||||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||||||
|
parent.document.title="CentrePoint";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(err) {
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
<div>JavaScript is disabled on your browser.</div>
|
||||||
|
</noscript>
|
||||||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||||
|
<div class="topNav"><a name="navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.top.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li class="navBarCell1Rev">Class</li>
|
||||||
|
<li><a href="package-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev Class</li>
|
||||||
|
<li><a href="Point.html" title="class in <Unnamed>"><span class="typeNameLink">Next Class</span></a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?CentrePoint.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="CentrePoint.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_top">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Summary: </li>
|
||||||
|
<li>Nested | </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||||
|
<li><a href="#methods.inherited.from.class.Point">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Detail: </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||||
|
<li>Method</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||||
|
<!-- ======== START OF CLASS DATA ======== -->
|
||||||
|
<div class="header">
|
||||||
|
<h2 title="Class CentrePoint" class="title">Class CentrePoint</h2>
|
||||||
|
</div>
|
||||||
|
<div class="contentContainer">
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li>java.lang.Object</li>
|
||||||
|
<li>
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li><a href="Point.html" title="class in <Unnamed>">Point</a></li>
|
||||||
|
<li>
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li>CentrePoint</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<div class="description">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<hr>
|
||||||
|
<br>
|
||||||
|
<pre>public class <span class="typeNameLabel">CentrePoint</span>
|
||||||
|
extends <a href="Point.html" title="class in <Unnamed>">Point</a></pre>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="summary">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="constructor.summary">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Constructor Summary</h3>
|
||||||
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
||||||
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
||||||
|
<tr>
|
||||||
|
<th class="colOne" scope="col">Constructor and Description</th>
|
||||||
|
</tr>
|
||||||
|
<tr class="altColor">
|
||||||
|
<td class="colOne"><code><span class="memberNameLink"><a href="CentrePoint.html#CentrePoint-double-java.lang.String-java.lang.String-">CentrePoint</a></span>(double radius,
|
||||||
|
java.lang.String name,
|
||||||
|
java.lang.String colour)</code>
|
||||||
|
<div class="block">Constructor method.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<!-- ========== METHOD SUMMARY =========== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="method.summary">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Method Summary</h3>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="methods.inherited.from.class.Point">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Methods inherited from class <a href="Point.html" title="class in <Unnamed>">Point</a></h3>
|
||||||
|
<code><a href="Point.html#getColour--">getColour</a>, <a href="Point.html#getDiameter--">getDiameter</a>, <a href="Point.html#getFocus--">getFocus</a>, <a href="Point.html#getName--">getName</a>, <a href="Point.html#getRadius--">getRadius</a>, <a href="Point.html#setColour-java.lang.String-">setColour</a>, <a href="Point.html#setDiameter-double-">setDiameter</a>, <a href="Point.html#setFocus-boolean-">setFocus</a>, <a href="Point.html#setName-java.lang.String-">setName</a></code></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Methods inherited from class java.lang.Object</h3>
|
||||||
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="details">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="constructor.detail">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Constructor Detail</h3>
|
||||||
|
<a name="CentrePoint-double-java.lang.String-java.lang.String-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockListLast">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>CentrePoint</h4>
|
||||||
|
<pre>public CentrePoint(double radius,
|
||||||
|
java.lang.String name,
|
||||||
|
java.lang.String colour)</pre>
|
||||||
|
<div class="block">Constructor method. Used for central points in the simulation.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||||
|
<dd><code>radius</code> - The radius of the body (the table I used for values had
|
||||||
|
radii rather than diameters).</dd>
|
||||||
|
<dd><code>name</code> - The name of the body.</dd>
|
||||||
|
<dd><code>colour</code> - The colour of the body.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- ========= END OF CLASS DATA ========= -->
|
||||||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||||
|
<div class="bottomNav"><a name="navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.bottom.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li class="navBarCell1Rev">Class</li>
|
||||||
|
<li><a href="package-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev Class</li>
|
||||||
|
<li><a href="Point.html" title="class in <Unnamed>"><span class="typeNameLink">Next Class</span></a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?CentrePoint.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="CentrePoint.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Summary: </li>
|
||||||
|
<li>Nested | </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||||
|
<li><a href="#methods.inherited.from.class.Point">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Detail: </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||||
|
<li>Method</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||||
|
</body>
|
||||||
|
</html>
|
454
doc/Point.html
Executable file
454
doc/Point.html
Executable file
|
@ -0,0 +1,454 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:18 GMT 2015 -->
|
||||||
|
<title>Point</title>
|
||||||
|
<meta name="date" content="2015-10-29">
|
||||||
|
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||||
|
<script type="text/javascript" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
try {
|
||||||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||||||
|
parent.document.title="Point";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(err) {
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10};
|
||||||
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
||||||
|
var altColor = "altColor";
|
||||||
|
var rowColor = "rowColor";
|
||||||
|
var tableTab = "tableTab";
|
||||||
|
var activeTableTab = "activeTableTab";
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
<div>JavaScript is disabled on your browser.</div>
|
||||||
|
</noscript>
|
||||||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||||
|
<div class="topNav"><a name="navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.top.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li class="navBarCell1Rev">Class</li>
|
||||||
|
<li><a href="package-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="CentrePoint.html" title="class in <Unnamed>"><span class="typeNameLink">Prev Class</span></a></li>
|
||||||
|
<li><a href="Satellite.html" title="class in <Unnamed>"><span class="typeNameLink">Next Class</span></a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?Point.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="Point.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_top">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Summary: </li>
|
||||||
|
<li>Nested | </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||||
|
<li><a href="#method.summary">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Detail: </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||||
|
<li><a href="#method.detail">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||||
|
<!-- ======== START OF CLASS DATA ======== -->
|
||||||
|
<div class="header">
|
||||||
|
<h2 title="Class Point" class="title">Class Point</h2>
|
||||||
|
</div>
|
||||||
|
<div class="contentContainer">
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li>java.lang.Object</li>
|
||||||
|
<li>
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li>Point</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<div class="description">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<dl>
|
||||||
|
<dt>Direct Known Subclasses:</dt>
|
||||||
|
<dd><a href="CentrePoint.html" title="class in <Unnamed>">CentrePoint</a>, <a href="Satellite.html" title="class in <Unnamed>">Satellite</a></dd>
|
||||||
|
</dl>
|
||||||
|
<hr>
|
||||||
|
<br>
|
||||||
|
<pre>public class <span class="typeNameLabel">Point</span>
|
||||||
|
extends java.lang.Object</pre>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="summary">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="constructor.summary">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Constructor Summary</h3>
|
||||||
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
||||||
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
||||||
|
<tr>
|
||||||
|
<th class="colOne" scope="col">Constructor and Description</th>
|
||||||
|
</tr>
|
||||||
|
<tr class="altColor">
|
||||||
|
<td class="colOne"><code><span class="memberNameLink"><a href="Point.html#Point-double-java.lang.String-java.lang.String-boolean-">Point</a></span>(double radius,
|
||||||
|
java.lang.String name,
|
||||||
|
java.lang.String colour,
|
||||||
|
boolean focus)</code>
|
||||||
|
<div class="block">Constructor method.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<!-- ========== METHOD SUMMARY =========== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="method.summary">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Method Summary</h3>
|
||||||
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
||||||
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
||||||
|
<tr>
|
||||||
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||||
|
<th class="colLast" scope="col">Method and Description</th>
|
||||||
|
</tr>
|
||||||
|
<tr id="i0" class="altColor">
|
||||||
|
<td class="colFirst"><code>java.lang.String</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="Point.html#getColour--">getColour</a></span>()</code>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i1" class="rowColor">
|
||||||
|
<td class="colFirst"><code>double</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="Point.html#getDiameter--">getDiameter</a></span>()</code>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i2" class="altColor">
|
||||||
|
<td class="colFirst"><code>boolean</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="Point.html#getFocus--">getFocus</a></span>()</code>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i3" class="rowColor">
|
||||||
|
<td class="colFirst"><code>java.lang.String</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="Point.html#getName--">getName</a></span>()</code>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i4" class="altColor">
|
||||||
|
<td class="colFirst"><code>double</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="Point.html#getRadius--">getRadius</a></span>()</code>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i5" class="rowColor">
|
||||||
|
<td class="colFirst"><code>void</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="Point.html#setColour-java.lang.String-">setColour</a></span>(java.lang.String colour)</code>
|
||||||
|
<div class="block">Mutator function.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i6" class="altColor">
|
||||||
|
<td class="colFirst"><code>void</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="Point.html#setDiameter-double-">setDiameter</a></span>(double diameter)</code>
|
||||||
|
<div class="block">Mutator function.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i7" class="rowColor">
|
||||||
|
<td class="colFirst"><code>void</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="Point.html#setFocus-boolean-">setFocus</a></span>(boolean focus)</code>
|
||||||
|
<div class="block">Mutator function.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i8" class="altColor">
|
||||||
|
<td class="colFirst"><code>void</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="Point.html#setName-java.lang.String-">setName</a></span>(java.lang.String name)</code>
|
||||||
|
<div class="block">Mutator function.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Methods inherited from class java.lang.Object</h3>
|
||||||
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="details">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="constructor.detail">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Constructor Detail</h3>
|
||||||
|
<a name="Point-double-java.lang.String-java.lang.String-boolean-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockListLast">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>Point</h4>
|
||||||
|
<pre>public Point(double radius,
|
||||||
|
java.lang.String name,
|
||||||
|
java.lang.String colour,
|
||||||
|
boolean focus)</pre>
|
||||||
|
<div class="block">Constructor method.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||||
|
<dd><code>radius</code> - The radius of the body (the table I used for values had
|
||||||
|
radii rather than diameters).</dd>
|
||||||
|
<dd><code>name</code> - The name of the body.</dd>
|
||||||
|
<dd><code>colour</code> - The colour of the body.</dd>
|
||||||
|
<dd><code>focus</code> - Whether the body is the current focus or not.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<!-- ============ METHOD DETAIL ========== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="method.detail">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Method Detail</h3>
|
||||||
|
<a name="getFocus--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>getFocus</h4>
|
||||||
|
<pre>public boolean getFocus()</pre>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||||||
|
<dd>Whether the body is the current focus or not.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="getDiameter--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>getDiameter</h4>
|
||||||
|
<pre>public double getDiameter()</pre>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||||||
|
<dd>The body's diameter.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="getRadius--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>getRadius</h4>
|
||||||
|
<pre>public double getRadius()</pre>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||||||
|
<dd>The body's radius.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="getName--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>getName</h4>
|
||||||
|
<pre>public java.lang.String getName()</pre>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||||||
|
<dd>The body's name.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="getColour--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>getColour</h4>
|
||||||
|
<pre>public java.lang.String getColour()</pre>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||||||
|
<dd>The body's colour.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="setFocus-boolean-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>setFocus</h4>
|
||||||
|
<pre>public void setFocus(boolean focus)</pre>
|
||||||
|
<div class="block">Mutator function.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||||
|
<dd><code>focus</code> - Whether the body is in focus or not.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="setDiameter-double-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>setDiameter</h4>
|
||||||
|
<pre>public void setDiameter(double diameter)</pre>
|
||||||
|
<div class="block">Mutator function.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||||
|
<dd><code>diameter</code> - The new diameter.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="setName-java.lang.String-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>setName</h4>
|
||||||
|
<pre>public void setName(java.lang.String name)</pre>
|
||||||
|
<div class="block">Mutator function.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||||
|
<dd><code>name</code> - The new name.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="setColour-java.lang.String-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockListLast">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>setColour</h4>
|
||||||
|
<pre>public void setColour(java.lang.String colour)</pre>
|
||||||
|
<div class="block">Mutator function.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||||
|
<dd><code>colour</code> - The new colour.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- ========= END OF CLASS DATA ========= -->
|
||||||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||||
|
<div class="bottomNav"><a name="navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.bottom.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li class="navBarCell1Rev">Class</li>
|
||||||
|
<li><a href="package-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="CentrePoint.html" title="class in <Unnamed>"><span class="typeNameLink">Prev Class</span></a></li>
|
||||||
|
<li><a href="Satellite.html" title="class in <Unnamed>"><span class="typeNameLink">Next Class</span></a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?Point.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="Point.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Summary: </li>
|
||||||
|
<li>Nested | </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||||
|
<li><a href="#method.summary">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Detail: </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||||
|
<li><a href="#method.detail">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||||
|
</body>
|
||||||
|
</html>
|
442
doc/Satellite.html
Executable file
442
doc/Satellite.html
Executable file
|
@ -0,0 +1,442 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:18 GMT 2015 -->
|
||||||
|
<title>Satellite</title>
|
||||||
|
<meta name="date" content="2015-10-29">
|
||||||
|
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||||
|
<script type="text/javascript" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
try {
|
||||||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||||||
|
parent.document.title="Satellite";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(err) {
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10};
|
||||||
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
||||||
|
var altColor = "altColor";
|
||||||
|
var rowColor = "rowColor";
|
||||||
|
var tableTab = "tableTab";
|
||||||
|
var activeTableTab = "activeTableTab";
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
<div>JavaScript is disabled on your browser.</div>
|
||||||
|
</noscript>
|
||||||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||||
|
<div class="topNav"><a name="navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.top.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li class="navBarCell1Rev">Class</li>
|
||||||
|
<li><a href="package-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="Point.html" title="class in <Unnamed>"><span class="typeNameLink">Prev Class</span></a></li>
|
||||||
|
<li><a href="Solar.html" title="class in <Unnamed>"><span class="typeNameLink">Next Class</span></a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?Satellite.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="Satellite.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_top">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Summary: </li>
|
||||||
|
<li>Nested | </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||||
|
<li><a href="#method.summary">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Detail: </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||||
|
<li><a href="#method.detail">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||||
|
<!-- ======== START OF CLASS DATA ======== -->
|
||||||
|
<div class="header">
|
||||||
|
<h2 title="Class Satellite" class="title">Class Satellite</h2>
|
||||||
|
</div>
|
||||||
|
<div class="contentContainer">
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li>java.lang.Object</li>
|
||||||
|
<li>
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li><a href="Point.html" title="class in <Unnamed>">Point</a></li>
|
||||||
|
<li>
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li>Satellite</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<div class="description">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<hr>
|
||||||
|
<br>
|
||||||
|
<pre>public class <span class="typeNameLabel">Satellite</span>
|
||||||
|
extends <a href="Point.html" title="class in <Unnamed>">Point</a></pre>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="summary">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="constructor.summary">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Constructor Summary</h3>
|
||||||
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
||||||
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
||||||
|
<tr>
|
||||||
|
<th class="colOne" scope="col">Constructor and Description</th>
|
||||||
|
</tr>
|
||||||
|
<tr class="altColor">
|
||||||
|
<td class="colOne"><code><span class="memberNameLink"><a href="Satellite.html#Satellite-double-double-double-double-java.lang.String-java.lang.String-">Satellite</a></span>(double distance,
|
||||||
|
double angle,
|
||||||
|
double radius,
|
||||||
|
double speed,
|
||||||
|
java.lang.String name,
|
||||||
|
java.lang.String colour)</code>
|
||||||
|
<div class="block">Constructor function.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="rowColor">
|
||||||
|
<td class="colOne"><code><span class="memberNameLink"><a href="Satellite.html#Satellite-double-double-double-double-java.lang.String-java.lang.String-Satellite-">Satellite</a></span>(double distance,
|
||||||
|
double angle,
|
||||||
|
double radius,
|
||||||
|
double speed,
|
||||||
|
java.lang.String name,
|
||||||
|
java.lang.String colour,
|
||||||
|
<a href="Satellite.html" title="class in <Unnamed>">Satellite</a> primary)</code>
|
||||||
|
<div class="block">Constructor method.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<!-- ========== METHOD SUMMARY =========== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="method.summary">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Method Summary</h3>
|
||||||
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
||||||
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
||||||
|
<tr>
|
||||||
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||||
|
<th class="colLast" scope="col">Method and Description</th>
|
||||||
|
</tr>
|
||||||
|
<tr id="i0" class="altColor">
|
||||||
|
<td class="colFirst"><code>double</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="Satellite.html#getAngle--">getAngle</a></span>()</code>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i1" class="rowColor">
|
||||||
|
<td class="colFirst"><code>double</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="Satellite.html#getDistance--">getDistance</a></span>()</code>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i2" class="altColor">
|
||||||
|
<td class="colFirst"><code><a href="Satellite.html" title="class in <Unnamed>">Satellite</a></code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="Satellite.html#getPrimary--">getPrimary</a></span>()</code>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i3" class="rowColor">
|
||||||
|
<td class="colFirst"><code>double</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="Satellite.html#getSpeed--">getSpeed</a></span>()</code>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i4" class="altColor">
|
||||||
|
<td class="colFirst"><code>void</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="Satellite.html#move--">move</a></span>()</code>
|
||||||
|
<div class="block">Moves the body along its orbit according to its current speed.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i5" class="rowColor">
|
||||||
|
<td class="colFirst"><code>void</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="Satellite.html#setSpeed-double-">setSpeed</a></span>(double speed)</code>
|
||||||
|
<div class="block">Mutator function.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="methods.inherited.from.class.Point">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Methods inherited from class <a href="Point.html" title="class in <Unnamed>">Point</a></h3>
|
||||||
|
<code><a href="Point.html#getColour--">getColour</a>, <a href="Point.html#getDiameter--">getDiameter</a>, <a href="Point.html#getFocus--">getFocus</a>, <a href="Point.html#getName--">getName</a>, <a href="Point.html#getRadius--">getRadius</a>, <a href="Point.html#setColour-java.lang.String-">setColour</a>, <a href="Point.html#setDiameter-double-">setDiameter</a>, <a href="Point.html#setFocus-boolean-">setFocus</a>, <a href="Point.html#setName-java.lang.String-">setName</a></code></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Methods inherited from class java.lang.Object</h3>
|
||||||
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="details">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="constructor.detail">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Constructor Detail</h3>
|
||||||
|
<a name="Satellite-double-double-double-double-java.lang.String-java.lang.String-Satellite-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>Satellite</h4>
|
||||||
|
<pre>public Satellite(double distance,
|
||||||
|
double angle,
|
||||||
|
double radius,
|
||||||
|
double speed,
|
||||||
|
java.lang.String name,
|
||||||
|
java.lang.String colour,
|
||||||
|
<a href="Satellite.html" title="class in <Unnamed>">Satellite</a> primary)</pre>
|
||||||
|
<div class="block">Constructor method. Used for moon-type satellites.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||||
|
<dd><code>distance</code> - The distance of the body from its primary.</dd>
|
||||||
|
<dd><code>radius</code> - The radius of the body (the table I used for values had
|
||||||
|
radii rather than diameters).</dd>
|
||||||
|
<dd><code>angle</code> - The starting position of the body along its orbit.</dd>
|
||||||
|
<dd><code>speed</code> - The speed of the body.</dd>
|
||||||
|
<dd><code>name</code> - The name of the body.</dd>
|
||||||
|
<dd><code>colour</code> - The colour of the body.</dd>
|
||||||
|
<dd><code>primary</code> - The primary, or orbital target, of the satellite.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="Satellite-double-double-double-double-java.lang.String-java.lang.String-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockListLast">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>Satellite</h4>
|
||||||
|
<pre>public Satellite(double distance,
|
||||||
|
double angle,
|
||||||
|
double radius,
|
||||||
|
double speed,
|
||||||
|
java.lang.String name,
|
||||||
|
java.lang.String colour)</pre>
|
||||||
|
<div class="block">Constructor function. Used for non-moon-type satellites.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||||
|
<dd><code>distance</code> - The distance of the body from its primary.</dd>
|
||||||
|
<dd><code>radius</code> - The radius of the body (the table I used for values had
|
||||||
|
radii rather than diameters).</dd>
|
||||||
|
<dd><code>angle</code> - The starting position of the body along its orbit.</dd>
|
||||||
|
<dd><code>speed</code> - The speed of the body.</dd>
|
||||||
|
<dd><code>name</code> - The name of the body.</dd>
|
||||||
|
<dd><code>colour</code> - The colour of the body.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<!-- ============ METHOD DETAIL ========== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="method.detail">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Method Detail</h3>
|
||||||
|
<a name="move--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>move</h4>
|
||||||
|
<pre>public void move()</pre>
|
||||||
|
<div class="block">Moves the body along its orbit according to its current speed.</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="getDistance--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>getDistance</h4>
|
||||||
|
<pre>public double getDistance()</pre>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||||||
|
<dd>The distance between this body and its primary.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="getAngle--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>getAngle</h4>
|
||||||
|
<pre>public double getAngle()</pre>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||||||
|
<dd>The angle along this body's orbit it is currently at.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="getSpeed--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>getSpeed</h4>
|
||||||
|
<pre>public double getSpeed()</pre>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||||||
|
<dd>The speed of this body.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="getPrimary--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>getPrimary</h4>
|
||||||
|
<pre>public <a href="Satellite.html" title="class in <Unnamed>">Satellite</a> getPrimary()</pre>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||||||
|
<dd>The primary of this body (where applicable).</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="setSpeed-double-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockListLast">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>setSpeed</h4>
|
||||||
|
<pre>public void setSpeed(double speed)</pre>
|
||||||
|
<div class="block">Mutator function.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||||
|
<dd><code>speed</code> - Sets the speed of this body.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- ========= END OF CLASS DATA ========= -->
|
||||||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||||
|
<div class="bottomNav"><a name="navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.bottom.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li class="navBarCell1Rev">Class</li>
|
||||||
|
<li><a href="package-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="Point.html" title="class in <Unnamed>"><span class="typeNameLink">Prev Class</span></a></li>
|
||||||
|
<li><a href="Solar.html" title="class in <Unnamed>"><span class="typeNameLink">Next Class</span></a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?Satellite.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="Satellite.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Summary: </li>
|
||||||
|
<li>Nested | </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||||
|
<li><a href="#method.summary">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Detail: </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||||
|
<li><a href="#method.detail">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||||
|
</body>
|
||||||
|
</html>
|
273
doc/Solar.html
Executable file
273
doc/Solar.html
Executable file
|
@ -0,0 +1,273 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:18 GMT 2015 -->
|
||||||
|
<title>Solar</title>
|
||||||
|
<meta name="date" content="2015-10-29">
|
||||||
|
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||||
|
<script type="text/javascript" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
try {
|
||||||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||||||
|
parent.document.title="Solar";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(err) {
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
var methods = {"i0":9};
|
||||||
|
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
|
||||||
|
var altColor = "altColor";
|
||||||
|
var rowColor = "rowColor";
|
||||||
|
var tableTab = "tableTab";
|
||||||
|
var activeTableTab = "activeTableTab";
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
<div>JavaScript is disabled on your browser.</div>
|
||||||
|
</noscript>
|
||||||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||||
|
<div class="topNav"><a name="navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.top.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li class="navBarCell1Rev">Class</li>
|
||||||
|
<li><a href="package-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="Satellite.html" title="class in <Unnamed>"><span class="typeNameLink">Prev Class</span></a></li>
|
||||||
|
<li><a href="SolarSystem.html" title="class in <Unnamed>"><span class="typeNameLink">Next Class</span></a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?Solar.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="Solar.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_top">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Summary: </li>
|
||||||
|
<li>Nested | </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||||
|
<li><a href="#method.summary">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Detail: </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||||
|
<li><a href="#method.detail">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||||
|
<!-- ======== START OF CLASS DATA ======== -->
|
||||||
|
<div class="header">
|
||||||
|
<h2 title="Class Solar" class="title">Class Solar</h2>
|
||||||
|
</div>
|
||||||
|
<div class="contentContainer">
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li>java.lang.Object</li>
|
||||||
|
<li>
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li>Solar</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<div class="description">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<hr>
|
||||||
|
<br>
|
||||||
|
<pre>public class <span class="typeNameLabel">Solar</span>
|
||||||
|
extends java.lang.Object</pre>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="summary">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="constructor.summary">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Constructor Summary</h3>
|
||||||
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
||||||
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
||||||
|
<tr>
|
||||||
|
<th class="colOne" scope="col">Constructor and Description</th>
|
||||||
|
</tr>
|
||||||
|
<tr class="altColor">
|
||||||
|
<td class="colOne"><code><span class="memberNameLink"><a href="Solar.html#Solar--">Solar</a></span>()</code> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<!-- ========== METHOD SUMMARY =========== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="method.summary">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Method Summary</h3>
|
||||||
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
||||||
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
||||||
|
<tr>
|
||||||
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||||
|
<th class="colLast" scope="col">Method and Description</th>
|
||||||
|
</tr>
|
||||||
|
<tr id="i0" class="altColor">
|
||||||
|
<td class="colFirst"><code>static void</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="Solar.html#main-java.lang.String:A-">main</a></span>(java.lang.String[] args)</code>
|
||||||
|
<div class="block">Populates the solar system and animates the orbiting.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Methods inherited from class java.lang.Object</h3>
|
||||||
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="details">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="constructor.detail">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Constructor Detail</h3>
|
||||||
|
<a name="Solar--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockListLast">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>Solar</h4>
|
||||||
|
<pre>public Solar()</pre>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<!-- ============ METHOD DETAIL ========== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="method.detail">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Method Detail</h3>
|
||||||
|
<a name="main-java.lang.String:A-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockListLast">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>main</h4>
|
||||||
|
<pre>public static void main(java.lang.String[] args)</pre>
|
||||||
|
<div class="block">Populates the solar system and animates the orbiting.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||||
|
<dd><code>args</code> - arguments passed in from the command line.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- ========= END OF CLASS DATA ========= -->
|
||||||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||||
|
<div class="bottomNav"><a name="navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.bottom.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li class="navBarCell1Rev">Class</li>
|
||||||
|
<li><a href="package-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="Satellite.html" title="class in <Unnamed>"><span class="typeNameLink">Prev Class</span></a></li>
|
||||||
|
<li><a href="SolarSystem.html" title="class in <Unnamed>"><span class="typeNameLink">Next Class</span></a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?Solar.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="Solar.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Summary: </li>
|
||||||
|
<li>Nested | </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||||
|
<li><a href="#method.summary">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Detail: </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||||
|
<li><a href="#method.detail">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||||
|
</body>
|
||||||
|
</html>
|
689
doc/SolarSystem.html
Executable file
689
doc/SolarSystem.html
Executable file
|
@ -0,0 +1,689 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:18 GMT 2015 -->
|
||||||
|
<title>SolarSystem</title>
|
||||||
|
<meta name="date" content="2015-10-29">
|
||||||
|
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||||
|
<script type="text/javascript" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
try {
|
||||||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||||||
|
parent.document.title="SolarSystem";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(err) {
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10};
|
||||||
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
||||||
|
var altColor = "altColor";
|
||||||
|
var rowColor = "rowColor";
|
||||||
|
var tableTab = "tableTab";
|
||||||
|
var activeTableTab = "activeTableTab";
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
<div>JavaScript is disabled on your browser.</div>
|
||||||
|
</noscript>
|
||||||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||||
|
<div class="topNav"><a name="navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.top.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li class="navBarCell1Rev">Class</li>
|
||||||
|
<li><a href="package-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="Solar.html" title="class in <Unnamed>"><span class="typeNameLink">Prev Class</span></a></li>
|
||||||
|
<li>Next Class</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?SolarSystem.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="SolarSystem.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_top">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Summary: </li>
|
||||||
|
<li><a href="#nested.classes.inherited.from.class.javax.swing.JFrame">Nested</a> | </li>
|
||||||
|
<li><a href="#fields.inherited.from.class.javax.swing.JFrame">Field</a> | </li>
|
||||||
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||||
|
<li><a href="#method.summary">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Detail: </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||||
|
<li><a href="#method.detail">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||||
|
<!-- ======== START OF CLASS DATA ======== -->
|
||||||
|
<div class="header">
|
||||||
|
<h2 title="Class SolarSystem" class="title">Class SolarSystem</h2>
|
||||||
|
</div>
|
||||||
|
<div class="contentContainer">
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li>java.lang.Object</li>
|
||||||
|
<li>
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li>java.awt.Component</li>
|
||||||
|
<li>
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li>java.awt.Container</li>
|
||||||
|
<li>
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li>java.awt.Window</li>
|
||||||
|
<li>
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li>java.awt.Frame</li>
|
||||||
|
<li>
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li>javax.swing.JFrame</li>
|
||||||
|
<li>
|
||||||
|
<ul class="inheritance">
|
||||||
|
<li>SolarSystem</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<div class="description">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<dl>
|
||||||
|
<dt>All Implemented Interfaces:</dt>
|
||||||
|
<dd>java.awt.event.KeyListener, java.awt.event.MouseWheelListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants</dd>
|
||||||
|
</dl>
|
||||||
|
<hr>
|
||||||
|
<br>
|
||||||
|
<pre>public class <span class="typeNameLabel">SolarSystem</span>
|
||||||
|
extends javax.swing.JFrame
|
||||||
|
implements java.awt.event.MouseWheelListener, java.awt.event.KeyListener</pre>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="seeLabel">See Also:</span></dt>
|
||||||
|
<dd><a href="serialized-form.html#SolarSystem">Serialized Form</a></dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="summary">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="nested.class.summary">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Nested Class Summary</h3>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="nested.classes.inherited.from.class.javax.swing.JFrame">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Nested classes/interfaces inherited from class javax.swing.JFrame</h3>
|
||||||
|
<code>javax.swing.JFrame.AccessibleJFrame</code></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="nested.classes.inherited.from.class.java.awt.Frame">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Nested classes/interfaces inherited from class java.awt.Frame</h3>
|
||||||
|
<code>java.awt.Frame.AccessibleAWTFrame</code></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="nested.classes.inherited.from.class.java.awt.Window">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Nested classes/interfaces inherited from class java.awt.Window</h3>
|
||||||
|
<code>java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type</code></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="nested.classes.inherited.from.class.java.awt.Container">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Nested classes/interfaces inherited from class java.awt.Container</h3>
|
||||||
|
<code>java.awt.Container.AccessibleAWTContainer</code></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="nested.classes.inherited.from.class.java.awt.Component">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Nested classes/interfaces inherited from class java.awt.Component</h3>
|
||||||
|
<code>java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy</code></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<!-- =========== FIELD SUMMARY =========== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="field.summary">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Field Summary</h3>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="fields.inherited.from.class.javax.swing.JFrame">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Fields inherited from class javax.swing.JFrame</h3>
|
||||||
|
<code>accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled</code></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="fields.inherited.from.class.java.awt.Frame">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Fields inherited from class java.awt.Frame</h3>
|
||||||
|
<code>CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR</code></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="fields.inherited.from.class.java.awt.Component">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Fields inherited from class java.awt.Component</h3>
|
||||||
|
<code>BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT</code></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="fields.inherited.from.class.javax.swing.WindowConstants">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Fields inherited from interface javax.swing.WindowConstants</h3>
|
||||||
|
<code>DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE</code></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="fields.inherited.from.class.java.awt.image.ImageObserver">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Fields inherited from interface java.awt.image.ImageObserver</h3>
|
||||||
|
<code>ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH</code></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="constructor.summary">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Constructor Summary</h3>
|
||||||
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
||||||
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
||||||
|
<tr>
|
||||||
|
<th class="colOne" scope="col">Constructor and Description</th>
|
||||||
|
</tr>
|
||||||
|
<tr class="altColor">
|
||||||
|
<td class="colOne"><code><span class="memberNameLink"><a href="SolarSystem.html#SolarSystem--">SolarSystem</a></span>()</code>
|
||||||
|
<div class="block">Create a view of the Solar System.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<!-- ========== METHOD SUMMARY =========== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="method.summary">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Method Summary</h3>
|
||||||
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
||||||
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
||||||
|
<tr>
|
||||||
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||||
|
<th class="colLast" scope="col">Method and Description</th>
|
||||||
|
</tr>
|
||||||
|
<tr id="i0" class="altColor">
|
||||||
|
<td class="colFirst"><code>void</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="SolarSystem.html#drawSolarObject-double-double-double-java.lang.String-">drawSolarObject</a></span>(double distance,
|
||||||
|
double angle,
|
||||||
|
double diameter,
|
||||||
|
java.lang.String col)</code>
|
||||||
|
<div class="block">Draws a round shape in the window at the given co-ordinates that
|
||||||
|
represents an object in the solar system.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i1" class="rowColor">
|
||||||
|
<td class="colFirst"><code>void</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="SolarSystem.html#drawSolarObjectAbout-double-double-double-java.lang.String-double-double-">drawSolarObjectAbout</a></span>(double distance,
|
||||||
|
double angle,
|
||||||
|
double diameter,
|
||||||
|
java.lang.String col,
|
||||||
|
double centreOfRotationDistance,
|
||||||
|
double centreOfRotationAngle)</code>
|
||||||
|
<div class="block">Draws a round shape in the window at the given co-ordinates.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i2" class="altColor">
|
||||||
|
<td class="colFirst"><code>void</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="SolarSystem.html#finishedDrawing--">finishedDrawing</a></span>()</code>
|
||||||
|
<div class="block">Makes all objects drawn recently drawn to be made visible on the screen.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i3" class="rowColor">
|
||||||
|
<td class="colFirst"><code>int</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="SolarSystem.html#getFocus--">getFocus</a></span>()</code> </td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i4" class="altColor">
|
||||||
|
<td class="colFirst"><code>int</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="SolarSystem.html#getHeight--">getHeight</a></span>()</code> </td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i5" class="rowColor">
|
||||||
|
<td class="colFirst"><code>int</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="SolarSystem.html#getWidth--">getWidth</a></span>()</code> </td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i6" class="altColor">
|
||||||
|
<td class="colFirst"><code>double</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="SolarSystem.html#getZoom--">getZoom</a></span>()</code> </td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i7" class="rowColor">
|
||||||
|
<td class="colFirst"><code>void</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="SolarSystem.html#keyPressed-java.awt.event.KeyEvent-">keyPressed</a></span>(java.awt.event.KeyEvent e)</code>
|
||||||
|
<div class="block">Handle the key-pressed event from the text field.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i8" class="altColor">
|
||||||
|
<td class="colFirst"><code>void</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="SolarSystem.html#keyReleased-java.awt.event.KeyEvent-">keyReleased</a></span>(java.awt.event.KeyEvent e)</code> </td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i9" class="rowColor">
|
||||||
|
<td class="colFirst"><code>void</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="SolarSystem.html#keyTyped-java.awt.event.KeyEvent-">keyTyped</a></span>(java.awt.event.KeyEvent e)</code>
|
||||||
|
<div class="block">Handle the key typed event from the text field.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i10" class="altColor">
|
||||||
|
<td class="colFirst"><code>void</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="SolarSystem.html#mouseWheelMoved-java.awt.event.MouseWheelEvent-">mouseWheelMoved</a></span>(java.awt.event.MouseWheelEvent e)</code> </td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i11" class="rowColor">
|
||||||
|
<td class="colFirst"><code>void</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="SolarSystem.html#paint-java.awt.Graphics-">paint</a></span>(java.awt.Graphics gr)</code>
|
||||||
|
<div class="block">A method called by the operating system to draw onto the screen -</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="i12" class="altColor">
|
||||||
|
<td class="colFirst"><code>void</code></td>
|
||||||
|
<td class="colLast"><code><span class="memberNameLink"><a href="SolarSystem.html#setZoom-double-">setZoom</a></span>(double zoom)</code> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="methods.inherited.from.class.javax.swing.JFrame">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Methods inherited from class javax.swing.JFrame</h3>
|
||||||
|
<code>addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update</code></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="methods.inherited.from.class.java.awt.Frame">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Methods inherited from class java.awt.Frame</h3>
|
||||||
|
<code>addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated</code></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="methods.inherited.from.class.java.awt.Window">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Methods inherited from class java.awt.Window</h3>
|
||||||
|
<code>addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront</code></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="methods.inherited.from.class.java.awt.Container">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Methods inherited from class java.awt.Container</h3>
|
||||||
|
<code>add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree</code></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="methods.inherited.from.class.java.awt.Component">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Methods inherited from class java.awt.Component</h3>
|
||||||
|
<code>action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle</code></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Methods inherited from class java.lang.Object</h3>
|
||||||
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="methods.inherited.from.class.java.awt.MenuContainer">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Methods inherited from interface java.awt.MenuContainer</h3>
|
||||||
|
<code>getFont, postEvent</code></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="details">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="constructor.detail">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Constructor Detail</h3>
|
||||||
|
<a name="SolarSystem--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockListLast">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>SolarSystem</h4>
|
||||||
|
<pre>public SolarSystem()</pre>
|
||||||
|
<div class="block">Create a view of the Solar System.
|
||||||
|
Once an instance of the SolarSystem class is created,
|
||||||
|
a window of the appropriate size is displayed, and
|
||||||
|
objects can be displayed in the solar system</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<!-- ============ METHOD DETAIL ========== -->
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="method.detail">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Method Detail</h3>
|
||||||
|
<a name="paint-java.awt.Graphics-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>paint</h4>
|
||||||
|
<pre>public void paint(java.awt.Graphics gr)</pre>
|
||||||
|
<div class="block">A method called by the operating system to draw onto the screen -
|
||||||
|
<p><B>YOU DO NOT (AND SHOULD NOT) NEED TO CALL THIS METHOD.</b></p></div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||||||
|
<dd><code>paint</code> in class <code>java.awt.Window</code></dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="drawSolarObject-double-double-double-java.lang.String-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>drawSolarObject</h4>
|
||||||
|
<pre>public void drawSolarObject(double distance,
|
||||||
|
double angle,
|
||||||
|
double diameter,
|
||||||
|
java.lang.String col)</pre>
|
||||||
|
<div class="block">Draws a round shape in the window at the given co-ordinates that
|
||||||
|
represents an object in the solar system.
|
||||||
|
The SolarSystem class uses <i>Polar Co-ordinates</i> to represent the
|
||||||
|
location of objects in the solar system.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||||
|
<dd><code>distance</code> - the distance from the sun to the object.</dd>
|
||||||
|
<dd><code>angle</code> - the angle (in degrees) that represents how far the planet is
|
||||||
|
around its orbit of the sun.</dd>
|
||||||
|
<dd><code>diameter</code> - the size of the object.</dd>
|
||||||
|
<dd><code>col</code> - the colour of this object, as a string. Case insentive. <p>One
|
||||||
|
of: BLACK, BLUE, CYAN, DARK_GRAY, GRAY, GREEN, LIGHT_GRAY,
|
||||||
|
MAGENTA, ORANGE, PINK, RED, WHITE, YELLOW</p></dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="drawSolarObjectAbout-double-double-double-java.lang.String-double-double-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>drawSolarObjectAbout</h4>
|
||||||
|
<pre>public void drawSolarObjectAbout(double distance,
|
||||||
|
double angle,
|
||||||
|
double diameter,
|
||||||
|
java.lang.String col,
|
||||||
|
double centreOfRotationDistance,
|
||||||
|
double centreOfRotationAngle)</pre>
|
||||||
|
<div class="block">Draws a round shape in the window at the given co-ordinates.
|
||||||
|
The SolarSystem class uses <i>Polar Co-ordinates</i> to represent the
|
||||||
|
location of objects in the solar system. This method operates in the same
|
||||||
|
fashion as drawSolarObject, but provides additional co-ordinates to allow
|
||||||
|
the programmer to use an arbitrary point about which the object orbits
|
||||||
|
(e.g. a planet rather than the sun).</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||||
|
<dd><code>distance</code> - the distance from this object to the point about which it
|
||||||
|
is orbiting.</dd>
|
||||||
|
<dd><code>angle</code> - the angle (in degrees) that represents how far the object is
|
||||||
|
around its orbit.</dd>
|
||||||
|
<dd><code>diameter</code> - the size of the object.</dd>
|
||||||
|
<dd><code>col</code> - the colour of this object, as a string. Case insentive. <p>One
|
||||||
|
of: BLACK, BLUE, CYAN, DARK_GRAY, GRAY, GREEN, LIGHT_GRAY,
|
||||||
|
MAGENTA, ORANGE, PINK, RED, WHITE, YELLOW</p></dd>
|
||||||
|
<dd><code>centreOfRotationDistance</code> - the distance part of the polar co-ordinate
|
||||||
|
about which this object orbits.</dd>
|
||||||
|
<dd><code>centreOfRotationAngle</code> - the angular part of the polar co-ordinate
|
||||||
|
about which this object orbits.</dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="finishedDrawing--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>finishedDrawing</h4>
|
||||||
|
<pre>public void finishedDrawing()</pre>
|
||||||
|
<div class="block">Makes all objects drawn recently drawn to be made visible on the screen.
|
||||||
|
|
||||||
|
Once called, all suns, planets and moons are displayed in the window.</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="mouseWheelMoved-java.awt.event.MouseWheelEvent-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>mouseWheelMoved</h4>
|
||||||
|
<pre>public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)</pre>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||||
|
<dd><code>mouseWheelMoved</code> in interface <code>java.awt.event.MouseWheelListener</code></dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="keyTyped-java.awt.event.KeyEvent-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>keyTyped</h4>
|
||||||
|
<pre>public void keyTyped(java.awt.event.KeyEvent e)</pre>
|
||||||
|
<div class="block">Handle the key typed event from the text field.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||||
|
<dd><code>keyTyped</code> in interface <code>java.awt.event.KeyListener</code></dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="keyPressed-java.awt.event.KeyEvent-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>keyPressed</h4>
|
||||||
|
<pre>public void keyPressed(java.awt.event.KeyEvent e)</pre>
|
||||||
|
<div class="block">Handle the key-pressed event from the text field.</div>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||||
|
<dd><code>keyPressed</code> in interface <code>java.awt.event.KeyListener</code></dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="keyReleased-java.awt.event.KeyEvent-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>keyReleased</h4>
|
||||||
|
<pre>public void keyReleased(java.awt.event.KeyEvent e)</pre>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||||||
|
<dd><code>keyReleased</code> in interface <code>java.awt.event.KeyListener</code></dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="getZoom--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>getZoom</h4>
|
||||||
|
<pre>public double getZoom()</pre>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="getFocus--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>getFocus</h4>
|
||||||
|
<pre>public int getFocus()</pre>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="getHeight--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>getHeight</h4>
|
||||||
|
<pre>public int getHeight()</pre>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||||||
|
<dd><code>getHeight</code> in class <code>java.awt.Component</code></dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="getWidth--">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>getWidth</h4>
|
||||||
|
<pre>public int getWidth()</pre>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||||||
|
<dd><code>getWidth</code> in class <code>java.awt.Component</code></dd>
|
||||||
|
</dl>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a name="setZoom-double-">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="blockListLast">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>setZoom</h4>
|
||||||
|
<pre>public void setZoom(double zoom)</pre>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- ========= END OF CLASS DATA ========= -->
|
||||||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||||
|
<div class="bottomNav"><a name="navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.bottom.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li class="navBarCell1Rev">Class</li>
|
||||||
|
<li><a href="package-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="Solar.html" title="class in <Unnamed>"><span class="typeNameLink">Prev Class</span></a></li>
|
||||||
|
<li>Next Class</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?SolarSystem.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="SolarSystem.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Summary: </li>
|
||||||
|
<li><a href="#nested.classes.inherited.from.class.javax.swing.JFrame">Nested</a> | </li>
|
||||||
|
<li><a href="#fields.inherited.from.class.javax.swing.JFrame">Field</a> | </li>
|
||||||
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||||
|
<li><a href="#method.summary">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="subNavList">
|
||||||
|
<li>Detail: </li>
|
||||||
|
<li>Field | </li>
|
||||||
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||||
|
<li><a href="#method.detail">Method</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||||
|
</body>
|
||||||
|
</html>
|
23
doc/allclasses-frame.html
Executable file
23
doc/allclasses-frame.html
Executable file
|
@ -0,0 +1,23 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:18 GMT 2015 -->
|
||||||
|
<title>All Classes</title>
|
||||||
|
<meta name="date" content="2015-10-29">
|
||||||
|
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||||
|
<script type="text/javascript" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1 class="bar">All Classes</h1>
|
||||||
|
<div class="indexContainer">
|
||||||
|
<ul>
|
||||||
|
<li><a href="CentrePoint.html" title="class in <Unnamed>" target="classFrame">CentrePoint</a></li>
|
||||||
|
<li><a href="Point.html" title="class in <Unnamed>" target="classFrame">Point</a></li>
|
||||||
|
<li><a href="Satellite.html" title="class in <Unnamed>" target="classFrame">Satellite</a></li>
|
||||||
|
<li><a href="Solar.html" title="class in <Unnamed>" target="classFrame">Solar</a></li>
|
||||||
|
<li><a href="SolarSystem.html" title="class in <Unnamed>" target="classFrame">SolarSystem</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
23
doc/allclasses-noframe.html
Executable file
23
doc/allclasses-noframe.html
Executable file
|
@ -0,0 +1,23 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:18 GMT 2015 -->
|
||||||
|
<title>All Classes</title>
|
||||||
|
<meta name="date" content="2015-10-29">
|
||||||
|
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||||
|
<script type="text/javascript" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1 class="bar">All Classes</h1>
|
||||||
|
<div class="indexContainer">
|
||||||
|
<ul>
|
||||||
|
<li><a href="CentrePoint.html" title="class in <Unnamed>">CentrePoint</a></li>
|
||||||
|
<li><a href="Point.html" title="class in <Unnamed>">Point</a></li>
|
||||||
|
<li><a href="Satellite.html" title="class in <Unnamed>">Satellite</a></li>
|
||||||
|
<li><a href="Solar.html" title="class in <Unnamed>">Solar</a></li>
|
||||||
|
<li><a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
120
doc/constant-values.html
Executable file
120
doc/constant-values.html
Executable file
|
@ -0,0 +1,120 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:18 GMT 2015 -->
|
||||||
|
<title>Constant Field Values</title>
|
||||||
|
<meta name="date" content="2015-10-29">
|
||||||
|
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||||
|
<script type="text/javascript" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
try {
|
||||||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||||||
|
parent.document.title="Constant Field Values";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(err) {
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
<div>JavaScript is disabled on your browser.</div>
|
||||||
|
</noscript>
|
||||||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||||
|
<div class="topNav"><a name="navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.top.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li>Class</li>
|
||||||
|
<li><a href="overview-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev</li>
|
||||||
|
<li>Next</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?constant-values.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="constant-values.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_top">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||||
|
<div class="header">
|
||||||
|
<h1 title="Constant Field Values" class="title">Constant Field Values</h1>
|
||||||
|
<h2 title="Contents">Contents</h2>
|
||||||
|
</div>
|
||||||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||||
|
<div class="bottomNav"><a name="navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.bottom.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li>Class</li>
|
||||||
|
<li><a href="overview-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev</li>
|
||||||
|
<li>Next</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?constant-values.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="constant-values.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||||
|
</body>
|
||||||
|
</html>
|
120
doc/deprecated-list.html
Executable file
120
doc/deprecated-list.html
Executable file
|
@ -0,0 +1,120 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:18 GMT 2015 -->
|
||||||
|
<title>Deprecated List</title>
|
||||||
|
<meta name="date" content="2015-10-29">
|
||||||
|
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||||
|
<script type="text/javascript" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
try {
|
||||||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||||||
|
parent.document.title="Deprecated List";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(err) {
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
<div>JavaScript is disabled on your browser.</div>
|
||||||
|
</noscript>
|
||||||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||||
|
<div class="topNav"><a name="navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.top.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li>Class</li>
|
||||||
|
<li><a href="overview-tree.html">Tree</a></li>
|
||||||
|
<li class="navBarCell1Rev">Deprecated</li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev</li>
|
||||||
|
<li>Next</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?deprecated-list.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="deprecated-list.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_top">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||||
|
<div class="header">
|
||||||
|
<h1 title="Deprecated API" class="title">Deprecated API</h1>
|
||||||
|
<h2 title="Contents">Contents</h2>
|
||||||
|
</div>
|
||||||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||||
|
<div class="bottomNav"><a name="navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.bottom.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li>Class</li>
|
||||||
|
<li><a href="overview-tree.html">Tree</a></li>
|
||||||
|
<li class="navBarCell1Rev">Deprecated</li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev</li>
|
||||||
|
<li>Next</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?deprecated-list.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="deprecated-list.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||||
|
</body>
|
||||||
|
</html>
|
217
doc/help-doc.html
Executable file
217
doc/help-doc.html
Executable file
|
@ -0,0 +1,217 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:19 GMT 2015 -->
|
||||||
|
<title>API Help</title>
|
||||||
|
<meta name="date" content="2015-10-29">
|
||||||
|
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||||
|
<script type="text/javascript" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
try {
|
||||||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||||||
|
parent.document.title="API Help";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(err) {
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
<div>JavaScript is disabled on your browser.</div>
|
||||||
|
</noscript>
|
||||||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||||
|
<div class="topNav"><a name="navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.top.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li>Class</li>
|
||||||
|
<li><a href="overview-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li class="navBarCell1Rev">Help</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev</li>
|
||||||
|
<li>Next</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?help-doc.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="help-doc.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_top">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||||
|
<div class="header">
|
||||||
|
<h1 class="title">How This API Document Is Organized</h1>
|
||||||
|
<div class="subTitle">This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.</div>
|
||||||
|
</div>
|
||||||
|
<div class="contentContainer">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h2>Package</h2>
|
||||||
|
<p>Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Interfaces (italic)</li>
|
||||||
|
<li>Classes</li>
|
||||||
|
<li>Enums</li>
|
||||||
|
<li>Exceptions</li>
|
||||||
|
<li>Errors</li>
|
||||||
|
<li>Annotation Types</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="blockList">
|
||||||
|
<h2>Class/Interface</h2>
|
||||||
|
<p>Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Class inheritance diagram</li>
|
||||||
|
<li>Direct Subclasses</li>
|
||||||
|
<li>All Known Subinterfaces</li>
|
||||||
|
<li>All Known Implementing Classes</li>
|
||||||
|
<li>Class/interface declaration</li>
|
||||||
|
<li>Class/interface description</li>
|
||||||
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<li>Nested Class Summary</li>
|
||||||
|
<li>Field Summary</li>
|
||||||
|
<li>Constructor Summary</li>
|
||||||
|
<li>Method Summary</li>
|
||||||
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<li>Field Detail</li>
|
||||||
|
<li>Constructor Detail</li>
|
||||||
|
<li>Method Detail</li>
|
||||||
|
</ul>
|
||||||
|
<p>Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.</p>
|
||||||
|
</li>
|
||||||
|
<li class="blockList">
|
||||||
|
<h2>Annotation Type</h2>
|
||||||
|
<p>Each annotation type has its own separate page with the following sections:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Annotation Type declaration</li>
|
||||||
|
<li>Annotation Type description</li>
|
||||||
|
<li>Required Element Summary</li>
|
||||||
|
<li>Optional Element Summary</li>
|
||||||
|
<li>Element Detail</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="blockList">
|
||||||
|
<h2>Enum</h2>
|
||||||
|
<p>Each enum has its own separate page with the following sections:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Enum declaration</li>
|
||||||
|
<li>Enum description</li>
|
||||||
|
<li>Enum Constant Summary</li>
|
||||||
|
<li>Enum Constant Detail</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="blockList">
|
||||||
|
<h2>Tree (Class Hierarchy)</h2>
|
||||||
|
<p>There is a <a href="overview-tree.html">Class Hierarchy</a> page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with <code>java.lang.Object</code>. The interfaces do not inherit from <code>java.lang.Object</code>.</p>
|
||||||
|
<ul>
|
||||||
|
<li>When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.</li>
|
||||||
|
<li>When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="blockList">
|
||||||
|
<h2>Deprecated API</h2>
|
||||||
|
<p>The <a href="deprecated-list.html">Deprecated API</a> page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.</p>
|
||||||
|
</li>
|
||||||
|
<li class="blockList">
|
||||||
|
<h2>Index</h2>
|
||||||
|
<p>The <a href="index-all.html">Index</a> contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.</p>
|
||||||
|
</li>
|
||||||
|
<li class="blockList">
|
||||||
|
<h2>Prev/Next</h2>
|
||||||
|
<p>These links take you to the next or previous class, interface, package, or related page.</p>
|
||||||
|
</li>
|
||||||
|
<li class="blockList">
|
||||||
|
<h2>Frames/No Frames</h2>
|
||||||
|
<p>These links show and hide the HTML frames. All pages are available with or without frames.</p>
|
||||||
|
</li>
|
||||||
|
<li class="blockList">
|
||||||
|
<h2>All Classes</h2>
|
||||||
|
<p>The <a href="allclasses-noframe.html">All Classes</a> link shows all classes and interfaces except non-static nested types.</p>
|
||||||
|
</li>
|
||||||
|
<li class="blockList">
|
||||||
|
<h2>Serialized Form</h2>
|
||||||
|
<p>Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.</p>
|
||||||
|
</li>
|
||||||
|
<li class="blockList">
|
||||||
|
<h2>Constant Field Values</h2>
|
||||||
|
<p>The <a href="constant-values.html">Constant Field Values</a> page lists the static final fields and their values.</p>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<span class="emphasizedPhrase">This help file applies to API documentation generated using the standard doclet.</span></div>
|
||||||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||||
|
<div class="bottomNav"><a name="navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.bottom.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li>Class</li>
|
||||||
|
<li><a href="overview-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li class="navBarCell1Rev">Help</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev</li>
|
||||||
|
<li>Next</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?help-doc.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="help-doc.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||||
|
</body>
|
||||||
|
</html>
|
300
doc/index-all.html
Executable file
300
doc/index-all.html
Executable file
|
@ -0,0 +1,300 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:18 GMT 2015 -->
|
||||||
|
<title>Index</title>
|
||||||
|
<meta name="date" content="2015-10-29">
|
||||||
|
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||||
|
<script type="text/javascript" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
try {
|
||||||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||||||
|
parent.document.title="Index";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(err) {
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
<div>JavaScript is disabled on your browser.</div>
|
||||||
|
</noscript>
|
||||||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||||
|
<div class="topNav"><a name="navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.top.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li>Class</li>
|
||||||
|
<li><a href="overview-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li class="navBarCell1Rev">Index</li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev</li>
|
||||||
|
<li>Next</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?index-all.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="index-all.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_top">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||||
|
<div class="contentContainer"><a href="#I:C">C</a> <a href="#I:D">D</a> <a href="#I:F">F</a> <a href="#I:G">G</a> <a href="#I:K">K</a> <a href="#I:M">M</a> <a href="#I:P">P</a> <a href="#I:S">S</a> <a name="I:C">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h2 class="title">C</h2>
|
||||||
|
<dl>
|
||||||
|
<dt><a href="CentrePoint.html" title="class in <Unnamed>"><span class="typeNameLink">CentrePoint</span></a> - Class in <a href="package-summary.html"><Unnamed></a></dt>
|
||||||
|
<dd> </dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="CentrePoint.html#CentrePoint-double-java.lang.String-java.lang.String-">CentrePoint(double, String, String)</a></span> - Constructor for class <a href="CentrePoint.html" title="class in <Unnamed>">CentrePoint</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Constructor method.</div>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<a name="I:D">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h2 class="title">D</h2>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="memberNameLink"><a href="SolarSystem.html#drawSolarObject-double-double-double-java.lang.String-">drawSolarObject(double, double, double, String)</a></span> - Method in class <a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Draws a round shape in the window at the given co-ordinates that
|
||||||
|
represents an object in the solar system.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="SolarSystem.html#drawSolarObjectAbout-double-double-double-java.lang.String-double-double-">drawSolarObjectAbout(double, double, double, String, double, double)</a></span> - Method in class <a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Draws a round shape in the window at the given co-ordinates.</div>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<a name="I:F">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h2 class="title">F</h2>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="memberNameLink"><a href="SolarSystem.html#finishedDrawing--">finishedDrawing()</a></span> - Method in class <a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Makes all objects drawn recently drawn to be made visible on the screen.</div>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<a name="I:G">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h2 class="title">G</h2>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="memberNameLink"><a href="Satellite.html#getAngle--">getAngle()</a></span> - Method in class <a href="Satellite.html" title="class in <Unnamed>">Satellite</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Point.html#getColour--">getColour()</a></span> - Method in class <a href="Point.html" title="class in <Unnamed>">Point</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Point.html#getDiameter--">getDiameter()</a></span> - Method in class <a href="Point.html" title="class in <Unnamed>">Point</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Satellite.html#getDistance--">getDistance()</a></span> - Method in class <a href="Satellite.html" title="class in <Unnamed>">Satellite</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Point.html#getFocus--">getFocus()</a></span> - Method in class <a href="Point.html" title="class in <Unnamed>">Point</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="SolarSystem.html#getFocus--">getFocus()</a></span> - Method in class <a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a></dt>
|
||||||
|
<dd> </dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="SolarSystem.html#getHeight--">getHeight()</a></span> - Method in class <a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a></dt>
|
||||||
|
<dd> </dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Point.html#getName--">getName()</a></span> - Method in class <a href="Point.html" title="class in <Unnamed>">Point</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Satellite.html#getPrimary--">getPrimary()</a></span> - Method in class <a href="Satellite.html" title="class in <Unnamed>">Satellite</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Point.html#getRadius--">getRadius()</a></span> - Method in class <a href="Point.html" title="class in <Unnamed>">Point</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Satellite.html#getSpeed--">getSpeed()</a></span> - Method in class <a href="Satellite.html" title="class in <Unnamed>">Satellite</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Accessor function.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="SolarSystem.html#getWidth--">getWidth()</a></span> - Method in class <a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a></dt>
|
||||||
|
<dd> </dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="SolarSystem.html#getZoom--">getZoom()</a></span> - Method in class <a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a></dt>
|
||||||
|
<dd> </dd>
|
||||||
|
</dl>
|
||||||
|
<a name="I:K">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h2 class="title">K</h2>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="memberNameLink"><a href="SolarSystem.html#keyPressed-java.awt.event.KeyEvent-">keyPressed(KeyEvent)</a></span> - Method in class <a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Handle the key-pressed event from the text field.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="SolarSystem.html#keyReleased-java.awt.event.KeyEvent-">keyReleased(KeyEvent)</a></span> - Method in class <a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a></dt>
|
||||||
|
<dd> </dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="SolarSystem.html#keyTyped-java.awt.event.KeyEvent-">keyTyped(KeyEvent)</a></span> - Method in class <a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Handle the key typed event from the text field.</div>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<a name="I:M">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h2 class="title">M</h2>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="memberNameLink"><a href="Solar.html#main-java.lang.String:A-">main(String[])</a></span> - Static method in class <a href="Solar.html" title="class in <Unnamed>">Solar</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Populates the solar system and animates the orbiting.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="SolarSystem.html#mouseWheelMoved-java.awt.event.MouseWheelEvent-">mouseWheelMoved(MouseWheelEvent)</a></span> - Method in class <a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a></dt>
|
||||||
|
<dd> </dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Satellite.html#move--">move()</a></span> - Method in class <a href="Satellite.html" title="class in <Unnamed>">Satellite</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Moves the body along its orbit according to its current speed.</div>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<a name="I:P">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h2 class="title">P</h2>
|
||||||
|
<dl>
|
||||||
|
<dt><span class="memberNameLink"><a href="SolarSystem.html#paint-java.awt.Graphics-">paint(Graphics)</a></span> - Method in class <a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">A method called by the operating system to draw onto the screen -</div>
|
||||||
|
</dd>
|
||||||
|
<dt><a href="Point.html" title="class in <Unnamed>"><span class="typeNameLink">Point</span></a> - Class in <a href="package-summary.html"><Unnamed></a></dt>
|
||||||
|
<dd> </dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Point.html#Point-double-java.lang.String-java.lang.String-boolean-">Point(double, String, String, boolean)</a></span> - Constructor for class <a href="Point.html" title="class in <Unnamed>">Point</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Constructor method.</div>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<a name="I:S">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h2 class="title">S</h2>
|
||||||
|
<dl>
|
||||||
|
<dt><a href="Satellite.html" title="class in <Unnamed>"><span class="typeNameLink">Satellite</span></a> - Class in <a href="package-summary.html"><Unnamed></a></dt>
|
||||||
|
<dd> </dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Satellite.html#Satellite-double-double-double-double-java.lang.String-java.lang.String-Satellite-">Satellite(double, double, double, double, String, String, Satellite)</a></span> - Constructor for class <a href="Satellite.html" title="class in <Unnamed>">Satellite</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Constructor method.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Satellite.html#Satellite-double-double-double-double-java.lang.String-java.lang.String-">Satellite(double, double, double, double, String, String)</a></span> - Constructor for class <a href="Satellite.html" title="class in <Unnamed>">Satellite</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Constructor function.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Point.html#setColour-java.lang.String-">setColour(String)</a></span> - Method in class <a href="Point.html" title="class in <Unnamed>">Point</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Mutator function.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Point.html#setDiameter-double-">setDiameter(double)</a></span> - Method in class <a href="Point.html" title="class in <Unnamed>">Point</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Mutator function.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Point.html#setFocus-boolean-">setFocus(boolean)</a></span> - Method in class <a href="Point.html" title="class in <Unnamed>">Point</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Mutator function.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Point.html#setName-java.lang.String-">setName(String)</a></span> - Method in class <a href="Point.html" title="class in <Unnamed>">Point</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Mutator function.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Satellite.html#setSpeed-double-">setSpeed(double)</a></span> - Method in class <a href="Satellite.html" title="class in <Unnamed>">Satellite</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Mutator function.</div>
|
||||||
|
</dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="SolarSystem.html#setZoom-double-">setZoom(double)</a></span> - Method in class <a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a></dt>
|
||||||
|
<dd> </dd>
|
||||||
|
<dt><a href="Solar.html" title="class in <Unnamed>"><span class="typeNameLink">Solar</span></a> - Class in <a href="package-summary.html"><Unnamed></a></dt>
|
||||||
|
<dd> </dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="Solar.html#Solar--">Solar()</a></span> - Constructor for class <a href="Solar.html" title="class in <Unnamed>">Solar</a></dt>
|
||||||
|
<dd> </dd>
|
||||||
|
<dt><a href="SolarSystem.html" title="class in <Unnamed>"><span class="typeNameLink">SolarSystem</span></a> - Class in <a href="package-summary.html"><Unnamed></a></dt>
|
||||||
|
<dd> </dd>
|
||||||
|
<dt><span class="memberNameLink"><a href="SolarSystem.html#SolarSystem--">SolarSystem()</a></span> - Constructor for class <a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a></dt>
|
||||||
|
<dd>
|
||||||
|
<div class="block">Create a view of the Solar System.</div>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<a href="#I:C">C</a> <a href="#I:D">D</a> <a href="#I:F">F</a> <a href="#I:G">G</a> <a href="#I:K">K</a> <a href="#I:M">M</a> <a href="#I:P">P</a> <a href="#I:S">S</a> </div>
|
||||||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||||
|
<div class="bottomNav"><a name="navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.bottom.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li>Class</li>
|
||||||
|
<li><a href="overview-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li class="navBarCell1Rev">Index</li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev</li>
|
||||||
|
<li>Next</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?index-all.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="index-all.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||||
|
</body>
|
||||||
|
</html>
|
71
doc/index.html
Executable file
71
doc/index.html
Executable file
|
@ -0,0 +1,71 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:18 GMT 2015 -->
|
||||||
|
<title>Generated Documentation (Untitled)</title>
|
||||||
|
<script type="text/javascript">
|
||||||
|
targetPage = "" + window.location.search;
|
||||||
|
if (targetPage != "" && targetPage != "undefined")
|
||||||
|
targetPage = targetPage.substring(1);
|
||||||
|
if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
|
||||||
|
targetPage = "undefined";
|
||||||
|
function validURL(url) {
|
||||||
|
try {
|
||||||
|
url = decodeURIComponent(url);
|
||||||
|
}
|
||||||
|
catch (error) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
var pos = url.indexOf(".html");
|
||||||
|
if (pos == -1 || pos != url.length - 5)
|
||||||
|
return false;
|
||||||
|
var allowNumber = false;
|
||||||
|
var allowSep = false;
|
||||||
|
var seenDot = false;
|
||||||
|
for (var i = 0; i < url.length - 5; i++) {
|
||||||
|
var ch = url.charAt(i);
|
||||||
|
if ('a' <= ch && ch <= 'z' ||
|
||||||
|
'A' <= ch && ch <= 'Z' ||
|
||||||
|
ch == '$' ||
|
||||||
|
ch == '_' ||
|
||||||
|
ch.charCodeAt(0) > 127) {
|
||||||
|
allowNumber = true;
|
||||||
|
allowSep = true;
|
||||||
|
} else if ('0' <= ch && ch <= '9'
|
||||||
|
|| ch == '-') {
|
||||||
|
if (!allowNumber)
|
||||||
|
return false;
|
||||||
|
} else if (ch == '/' || ch == '.') {
|
||||||
|
if (!allowSep)
|
||||||
|
return false;
|
||||||
|
allowNumber = false;
|
||||||
|
allowSep = false;
|
||||||
|
if (ch == '.')
|
||||||
|
seenDot = true;
|
||||||
|
if (ch == '/' && seenDot)
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
function loadFrames() {
|
||||||
|
if (targetPage != "" && targetPage != "undefined")
|
||||||
|
top.classFrame.location = top.targetPage;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<frameset cols="20%,80%" title="Documentation frame" onload="top.loadFrames()">
|
||||||
|
<frame src="allclasses-frame.html" name="packageFrame" title="All classes and interfaces (except non-static nested types)">
|
||||||
|
<frame src="CentrePoint.html" name="classFrame" title="Package, class and interface descriptions" scrolling="yes">
|
||||||
|
<noframes>
|
||||||
|
<noscript>
|
||||||
|
<div>JavaScript is disabled on your browser.</div>
|
||||||
|
</noscript>
|
||||||
|
<h2>Frame Alert</h2>
|
||||||
|
<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="CentrePoint.html">Non-frame version</a>.</p>
|
||||||
|
</noframes>
|
||||||
|
</frameset>
|
||||||
|
</html>
|
156
doc/overview-tree.html
Executable file
156
doc/overview-tree.html
Executable file
|
@ -0,0 +1,156 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:18 GMT 2015 -->
|
||||||
|
<title>Class Hierarchy</title>
|
||||||
|
<meta name="date" content="2015-10-29">
|
||||||
|
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||||
|
<script type="text/javascript" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
try {
|
||||||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||||||
|
parent.document.title="Class Hierarchy";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(err) {
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
<div>JavaScript is disabled on your browser.</div>
|
||||||
|
</noscript>
|
||||||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||||
|
<div class="topNav"><a name="navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.top.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li>Class</li>
|
||||||
|
<li class="navBarCell1Rev">Tree</li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev</li>
|
||||||
|
<li>Next</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?overview-tree.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="overview-tree.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_top">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||||
|
<div class="header">
|
||||||
|
<h1 class="title">Hierarchy For All Packages</h1>
|
||||||
|
</div>
|
||||||
|
<div class="contentContainer">
|
||||||
|
<h2 title="Class Hierarchy">Class Hierarchy</h2>
|
||||||
|
<ul>
|
||||||
|
<li type="circle">java.lang.Object
|
||||||
|
<ul>
|
||||||
|
<li type="circle">java.awt.Component (implements java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable)
|
||||||
|
<ul>
|
||||||
|
<li type="circle">java.awt.Container
|
||||||
|
<ul>
|
||||||
|
<li type="circle">java.awt.Window (implements javax.accessibility.Accessible)
|
||||||
|
<ul>
|
||||||
|
<li type="circle">java.awt.Frame (implements java.awt.MenuContainer)
|
||||||
|
<ul>
|
||||||
|
<li type="circle">javax.swing.JFrame (implements javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants)
|
||||||
|
<ul>
|
||||||
|
<li type="circle"><a href="SolarSystem.html" title="class in <Unnamed>"><span class="typeNameLink">SolarSystem</span></a> (implements java.awt.event.KeyListener, java.awt.event.MouseWheelListener)</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li type="circle"><a href="Point.html" title="class in <Unnamed>"><span class="typeNameLink">Point</span></a>
|
||||||
|
<ul>
|
||||||
|
<li type="circle"><a href="CentrePoint.html" title="class in <Unnamed>"><span class="typeNameLink">CentrePoint</span></a></li>
|
||||||
|
<li type="circle"><a href="Satellite.html" title="class in <Unnamed>"><span class="typeNameLink">Satellite</span></a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li type="circle"><a href="Solar.html" title="class in <Unnamed>"><span class="typeNameLink">Solar</span></a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||||
|
<div class="bottomNav"><a name="navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.bottom.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li>Class</li>
|
||||||
|
<li class="navBarCell1Rev">Tree</li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev</li>
|
||||||
|
<li>Next</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?overview-tree.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="overview-tree.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||||
|
</body>
|
||||||
|
</html>
|
24
doc/package-frame.html
Executable file
24
doc/package-frame.html
Executable file
|
@ -0,0 +1,24 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:18 GMT 2015 -->
|
||||||
|
<title><Unnamed></title>
|
||||||
|
<meta name="date" content="2015-10-29">
|
||||||
|
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||||
|
<script type="text/javascript" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1 class="bar"><a href="package-summary.html" target="classFrame"><Unnamed></a></h1>
|
||||||
|
<div class="indexContainer">
|
||||||
|
<h2 title="Classes">Classes</h2>
|
||||||
|
<ul title="Classes">
|
||||||
|
<li><a href="CentrePoint.html" title="class in <Unnamed>" target="classFrame">CentrePoint</a></li>
|
||||||
|
<li><a href="Point.html" title="class in <Unnamed>" target="classFrame">Point</a></li>
|
||||||
|
<li><a href="Satellite.html" title="class in <Unnamed>" target="classFrame">Satellite</a></li>
|
||||||
|
<li><a href="Solar.html" title="class in <Unnamed>" target="classFrame">Solar</a></li>
|
||||||
|
<li><a href="SolarSystem.html" title="class in <Unnamed>" target="classFrame">SolarSystem</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
1
doc/package-list
Executable file
1
doc/package-list
Executable file
|
@ -0,0 +1 @@
|
||||||
|
|
143
doc/package-summary.html
Executable file
143
doc/package-summary.html
Executable file
|
@ -0,0 +1,143 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:18 GMT 2015 -->
|
||||||
|
<meta name="date" content="2015-10-29">
|
||||||
|
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||||
|
<script type="text/javascript" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<noscript>
|
||||||
|
<div>JavaScript is disabled on your browser.</div>
|
||||||
|
</noscript>
|
||||||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||||
|
<div class="topNav"><a name="navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.top.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li>Class</li>
|
||||||
|
<li><a href="package-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev Package</li>
|
||||||
|
<li>Next Package</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?package-summary.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="package-summary.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_top">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||||
|
<div class="header">
|
||||||
|
<h1 title="Package" class="title">Package <Unnamed></h1>
|
||||||
|
</div>
|
||||||
|
<div class="contentContainer">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
|
||||||
|
<caption><span>Class Summary</span><span class="tabEnd"> </span></caption>
|
||||||
|
<tr>
|
||||||
|
<th class="colFirst" scope="col">Class</th>
|
||||||
|
<th class="colLast" scope="col">Description</th>
|
||||||
|
</tr>
|
||||||
|
<tbody>
|
||||||
|
<tr class="altColor">
|
||||||
|
<td class="colFirst"><a href="CentrePoint.html" title="class in <Unnamed>">CentrePoint</a></td>
|
||||||
|
<td class="colLast"> </td>
|
||||||
|
</tr>
|
||||||
|
<tr class="rowColor">
|
||||||
|
<td class="colFirst"><a href="Point.html" title="class in <Unnamed>">Point</a></td>
|
||||||
|
<td class="colLast"> </td>
|
||||||
|
</tr>
|
||||||
|
<tr class="altColor">
|
||||||
|
<td class="colFirst"><a href="Satellite.html" title="class in <Unnamed>">Satellite</a></td>
|
||||||
|
<td class="colLast"> </td>
|
||||||
|
</tr>
|
||||||
|
<tr class="rowColor">
|
||||||
|
<td class="colFirst"><a href="Solar.html" title="class in <Unnamed>">Solar</a></td>
|
||||||
|
<td class="colLast"> </td>
|
||||||
|
</tr>
|
||||||
|
<tr class="altColor">
|
||||||
|
<td class="colFirst"><a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a></td>
|
||||||
|
<td class="colLast"> </td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||||
|
<div class="bottomNav"><a name="navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.bottom.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li>Class</li>
|
||||||
|
<li><a href="package-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev Package</li>
|
||||||
|
<li>Next Package</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?package-summary.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="package-summary.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||||
|
</body>
|
||||||
|
</html>
|
156
doc/package-tree.html
Executable file
156
doc/package-tree.html
Executable file
|
@ -0,0 +1,156 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:18 GMT 2015 -->
|
||||||
|
<title> Class Hierarchy</title>
|
||||||
|
<meta name="date" content="2015-10-29">
|
||||||
|
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||||
|
<script type="text/javascript" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
try {
|
||||||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||||||
|
parent.document.title=" Class Hierarchy";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(err) {
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
<div>JavaScript is disabled on your browser.</div>
|
||||||
|
</noscript>
|
||||||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||||
|
<div class="topNav"><a name="navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.top.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li>Class</li>
|
||||||
|
<li class="navBarCell1Rev">Tree</li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev</li>
|
||||||
|
<li>Next</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?package-tree.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="package-tree.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_top">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||||
|
<div class="header">
|
||||||
|
<h1 class="title">Hierarchy For Package <Unnamed></h1>
|
||||||
|
</div>
|
||||||
|
<div class="contentContainer">
|
||||||
|
<h2 title="Class Hierarchy">Class Hierarchy</h2>
|
||||||
|
<ul>
|
||||||
|
<li type="circle">java.lang.Object
|
||||||
|
<ul>
|
||||||
|
<li type="circle">java.awt.Component (implements java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable)
|
||||||
|
<ul>
|
||||||
|
<li type="circle">java.awt.Container
|
||||||
|
<ul>
|
||||||
|
<li type="circle">java.awt.Window (implements javax.accessibility.Accessible)
|
||||||
|
<ul>
|
||||||
|
<li type="circle">java.awt.Frame (implements java.awt.MenuContainer)
|
||||||
|
<ul>
|
||||||
|
<li type="circle">javax.swing.JFrame (implements javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants)
|
||||||
|
<ul>
|
||||||
|
<li type="circle"><a href="SolarSystem.html" title="class in <Unnamed>"><span class="typeNameLink">SolarSystem</span></a> (implements java.awt.event.KeyListener, java.awt.event.MouseWheelListener)</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li type="circle"><a href="Point.html" title="class in <Unnamed>"><span class="typeNameLink">Point</span></a>
|
||||||
|
<ul>
|
||||||
|
<li type="circle"><a href="CentrePoint.html" title="class in <Unnamed>"><span class="typeNameLink">CentrePoint</span></a></li>
|
||||||
|
<li type="circle"><a href="Satellite.html" title="class in <Unnamed>"><span class="typeNameLink">Satellite</span></a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li type="circle"><a href="Solar.html" title="class in <Unnamed>"><span class="typeNameLink">Solar</span></a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||||
|
<div class="bottomNav"><a name="navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.bottom.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li>Class</li>
|
||||||
|
<li class="navBarCell1Rev">Tree</li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev</li>
|
||||||
|
<li>Next</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?package-tree.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="package-tree.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||||
|
</body>
|
||||||
|
</html>
|
30
doc/script.js
Executable file
30
doc/script.js
Executable file
|
@ -0,0 +1,30 @@
|
||||||
|
function show(type)
|
||||||
|
{
|
||||||
|
count = 0;
|
||||||
|
for (var key in methods) {
|
||||||
|
var row = document.getElementById(key);
|
||||||
|
if ((methods[key] & type) != 0) {
|
||||||
|
row.style.display = '';
|
||||||
|
row.className = (count++ % 2) ? rowColor : altColor;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
row.style.display = 'none';
|
||||||
|
}
|
||||||
|
updateTabs(type);
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateTabs(type)
|
||||||
|
{
|
||||||
|
for (var value in tabs) {
|
||||||
|
var sNode = document.getElementById(tabs[value][0]);
|
||||||
|
var spanNode = sNode.firstChild;
|
||||||
|
if (value == type) {
|
||||||
|
sNode.className = activeTableTab;
|
||||||
|
spanNode.innerHTML = tabs[value][1];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
sNode.className = tableTab;
|
||||||
|
spanNode.innerHTML = "<a href=\"javascript:show("+ value + ");\">" + tabs[value][1] + "</a>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
164
doc/serialized-form.html
Executable file
164
doc/serialized-form.html
Executable file
|
@ -0,0 +1,164 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<!-- NewPage -->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Generated by javadoc (1.8.0_60) on Thu Oct 29 11:16:18 GMT 2015 -->
|
||||||
|
<title>Serialized Form</title>
|
||||||
|
<meta name="date" content="2015-10-29">
|
||||||
|
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||||
|
<script type="text/javascript" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
try {
|
||||||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||||||
|
parent.document.title="Serialized Form";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(err) {
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
<div>JavaScript is disabled on your browser.</div>
|
||||||
|
</noscript>
|
||||||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||||
|
<div class="topNav"><a name="navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.top.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li>Class</li>
|
||||||
|
<li><a href="overview-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev</li>
|
||||||
|
<li>Next</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?serialized-form.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="serialized-form.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_top">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.top">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||||
|
<div class="header">
|
||||||
|
<h1 title="Serialized Form" class="title">Serialized Form</h1>
|
||||||
|
</div>
|
||||||
|
<div class="serializedFormContainer">
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h2 title="Package">Package <Unnamed></h2>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList"><a name="SolarSystem">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<h3>Class <a href="SolarSystem.html" title="class in <Unnamed>">SolarSystem</a> extends javax.swing.JFrame implements Serializable</h3>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h3>Serialized Fields</h3>
|
||||||
|
<ul class="blockList">
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>width</h4>
|
||||||
|
<pre>int width</pre>
|
||||||
|
</li>
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>height</h4>
|
||||||
|
<pre>int height</pre>
|
||||||
|
</li>
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>exiting</h4>
|
||||||
|
<pre>boolean exiting</pre>
|
||||||
|
</li>
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>zoom</h4>
|
||||||
|
<pre>double zoom</pre>
|
||||||
|
</li>
|
||||||
|
<li class="blockList">
|
||||||
|
<h4>focus</h4>
|
||||||
|
<pre>int focus</pre>
|
||||||
|
</li>
|
||||||
|
<li class="blockListLast">
|
||||||
|
<h4>things</h4>
|
||||||
|
<pre>java.util.Vector<E> things</pre>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||||
|
<div class="bottomNav"><a name="navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||||||
|
<a name="navbar.bottom.firstrow">
|
||||||
|
<!-- -->
|
||||||
|
</a>
|
||||||
|
<ul class="navList" title="Navigation">
|
||||||
|
<li><a href="package-summary.html">Package</a></li>
|
||||||
|
<li>Class</li>
|
||||||
|
<li><a href="overview-tree.html">Tree</a></li>
|
||||||
|
<li><a href="deprecated-list.html">Deprecated</a></li>
|
||||||
|
<li><a href="index-all.html">Index</a></li>
|
||||||
|
<li><a href="help-doc.html">Help</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="subNav">
|
||||||
|
<ul class="navList">
|
||||||
|
<li>Prev</li>
|
||||||
|
<li>Next</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList">
|
||||||
|
<li><a href="index.html?serialized-form.html" target="_top">Frames</a></li>
|
||||||
|
<li><a href="serialized-form.html" target="_top">No Frames</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||||||
|
<li><a href="allclasses-noframe.html">All Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||||
|
if(window==top) {
|
||||||
|
allClassesLink.style.display = "block";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
allClassesLink.style.display = "none";
|
||||||
|
}
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<a name="skip.navbar.bottom">
|
||||||
|
<!-- -->
|
||||||
|
</a></div>
|
||||||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||||
|
</body>
|
||||||
|
</html>
|
574
doc/stylesheet.css
Executable file
574
doc/stylesheet.css
Executable file
|
@ -0,0 +1,574 @@
|
||||||
|
/* Javadoc style sheet */
|
||||||
|
/*
|
||||||
|
Overall document style
|
||||||
|
*/
|
||||||
|
|
||||||
|
@import url('resources/fonts/dejavu.css');
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color:#ffffff;
|
||||||
|
color:#353833;
|
||||||
|
font-family:'DejaVu Sans', Arial, Helvetica, sans-serif;
|
||||||
|
font-size:14px;
|
||||||
|
margin:0;
|
||||||
|
}
|
||||||
|
a:link, a:visited {
|
||||||
|
text-decoration:none;
|
||||||
|
color:#4A6782;
|
||||||
|
}
|
||||||
|
a:hover, a:focus {
|
||||||
|
text-decoration:none;
|
||||||
|
color:#bb7a2a;
|
||||||
|
}
|
||||||
|
a:active {
|
||||||
|
text-decoration:none;
|
||||||
|
color:#4A6782;
|
||||||
|
}
|
||||||
|
a[name] {
|
||||||
|
color:#353833;
|
||||||
|
}
|
||||||
|
a[name]:hover {
|
||||||
|
text-decoration:none;
|
||||||
|
color:#353833;
|
||||||
|
}
|
||||||
|
pre {
|
||||||
|
font-family:'DejaVu Sans Mono', monospace;
|
||||||
|
font-size:14px;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
font-size:20px;
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
font-size:18px;
|
||||||
|
}
|
||||||
|
h3 {
|
||||||
|
font-size:16px;
|
||||||
|
font-style:italic;
|
||||||
|
}
|
||||||
|
h4 {
|
||||||
|
font-size:13px;
|
||||||
|
}
|
||||||
|
h5 {
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
|
h6 {
|
||||||
|
font-size:11px;
|
||||||
|
}
|
||||||
|
ul {
|
||||||
|
list-style-type:disc;
|
||||||
|
}
|
||||||
|
code, tt {
|
||||||
|
font-family:'DejaVu Sans Mono', monospace;
|
||||||
|
font-size:14px;
|
||||||
|
padding-top:4px;
|
||||||
|
margin-top:8px;
|
||||||
|
line-height:1.4em;
|
||||||
|
}
|
||||||
|
dt code {
|
||||||
|
font-family:'DejaVu Sans Mono', monospace;
|
||||||
|
font-size:14px;
|
||||||
|
padding-top:4px;
|
||||||
|
}
|
||||||
|
table tr td dt code {
|
||||||
|
font-family:'DejaVu Sans Mono', monospace;
|
||||||
|
font-size:14px;
|
||||||
|
vertical-align:top;
|
||||||
|
padding-top:4px;
|
||||||
|
}
|
||||||
|
sup {
|
||||||
|
font-size:8px;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Document title and Copyright styles
|
||||||
|
*/
|
||||||
|
.clear {
|
||||||
|
clear:both;
|
||||||
|
height:0px;
|
||||||
|
overflow:hidden;
|
||||||
|
}
|
||||||
|
.aboutLanguage {
|
||||||
|
float:right;
|
||||||
|
padding:0px 21px;
|
||||||
|
font-size:11px;
|
||||||
|
z-index:200;
|
||||||
|
margin-top:-9px;
|
||||||
|
}
|
||||||
|
.legalCopy {
|
||||||
|
margin-left:.5em;
|
||||||
|
}
|
||||||
|
.bar a, .bar a:link, .bar a:visited, .bar a:active {
|
||||||
|
color:#FFFFFF;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
.bar a:hover, .bar a:focus {
|
||||||
|
color:#bb7a2a;
|
||||||
|
}
|
||||||
|
.tab {
|
||||||
|
background-color:#0066FF;
|
||||||
|
color:#ffffff;
|
||||||
|
padding:8px;
|
||||||
|
width:5em;
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Navigation bar styles
|
||||||
|
*/
|
||||||
|
.bar {
|
||||||
|
background-color:#4D7A97;
|
||||||
|
color:#FFFFFF;
|
||||||
|
padding:.8em .5em .4em .8em;
|
||||||
|
height:auto;/*height:1.8em;*/
|
||||||
|
font-size:11px;
|
||||||
|
margin:0;
|
||||||
|
}
|
||||||
|
.topNav {
|
||||||
|
background-color:#4D7A97;
|
||||||
|
color:#FFFFFF;
|
||||||
|
float:left;
|
||||||
|
padding:0;
|
||||||
|
width:100%;
|
||||||
|
clear:right;
|
||||||
|
height:2.8em;
|
||||||
|
padding-top:10px;
|
||||||
|
overflow:hidden;
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
|
.bottomNav {
|
||||||
|
margin-top:10px;
|
||||||
|
background-color:#4D7A97;
|
||||||
|
color:#FFFFFF;
|
||||||
|
float:left;
|
||||||
|
padding:0;
|
||||||
|
width:100%;
|
||||||
|
clear:right;
|
||||||
|
height:2.8em;
|
||||||
|
padding-top:10px;
|
||||||
|
overflow:hidden;
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
|
.subNav {
|
||||||
|
background-color:#dee3e9;
|
||||||
|
float:left;
|
||||||
|
width:100%;
|
||||||
|
overflow:hidden;
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
|
.subNav div {
|
||||||
|
clear:left;
|
||||||
|
float:left;
|
||||||
|
padding:0 0 5px 6px;
|
||||||
|
text-transform:uppercase;
|
||||||
|
}
|
||||||
|
ul.navList, ul.subNavList {
|
||||||
|
float:left;
|
||||||
|
margin:0 25px 0 0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
ul.navList li{
|
||||||
|
list-style:none;
|
||||||
|
float:left;
|
||||||
|
padding: 5px 6px;
|
||||||
|
text-transform:uppercase;
|
||||||
|
}
|
||||||
|
ul.subNavList li{
|
||||||
|
list-style:none;
|
||||||
|
float:left;
|
||||||
|
}
|
||||||
|
.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited {
|
||||||
|
color:#FFFFFF;
|
||||||
|
text-decoration:none;
|
||||||
|
text-transform:uppercase;
|
||||||
|
}
|
||||||
|
.topNav a:hover, .bottomNav a:hover {
|
||||||
|
text-decoration:none;
|
||||||
|
color:#bb7a2a;
|
||||||
|
text-transform:uppercase;
|
||||||
|
}
|
||||||
|
.navBarCell1Rev {
|
||||||
|
background-color:#F8981D;
|
||||||
|
color:#253441;
|
||||||
|
margin: auto 5px;
|
||||||
|
}
|
||||||
|
.skipNav {
|
||||||
|
position:absolute;
|
||||||
|
top:auto;
|
||||||
|
left:-9999px;
|
||||||
|
overflow:hidden;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Page header and footer styles
|
||||||
|
*/
|
||||||
|
.header, .footer {
|
||||||
|
clear:both;
|
||||||
|
margin:0 20px;
|
||||||
|
padding:5px 0 0 0;
|
||||||
|
}
|
||||||
|
.indexHeader {
|
||||||
|
margin:10px;
|
||||||
|
position:relative;
|
||||||
|
}
|
||||||
|
.indexHeader span{
|
||||||
|
margin-right:15px;
|
||||||
|
}
|
||||||
|
.indexHeader h1 {
|
||||||
|
font-size:13px;
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
color:#2c4557;
|
||||||
|
margin:10px 0;
|
||||||
|
}
|
||||||
|
.subTitle {
|
||||||
|
margin:5px 0 0 0;
|
||||||
|
}
|
||||||
|
.header ul {
|
||||||
|
margin:0 0 15px 0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
.footer ul {
|
||||||
|
margin:20px 0 5px 0;
|
||||||
|
}
|
||||||
|
.header ul li, .footer ul li {
|
||||||
|
list-style:none;
|
||||||
|
font-size:13px;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Heading styles
|
||||||
|
*/
|
||||||
|
div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 {
|
||||||
|
background-color:#dee3e9;
|
||||||
|
border:1px solid #d0d9e0;
|
||||||
|
margin:0 0 6px -8px;
|
||||||
|
padding:7px 5px;
|
||||||
|
}
|
||||||
|
ul.blockList ul.blockList ul.blockList li.blockList h3 {
|
||||||
|
background-color:#dee3e9;
|
||||||
|
border:1px solid #d0d9e0;
|
||||||
|
margin:0 0 6px -8px;
|
||||||
|
padding:7px 5px;
|
||||||
|
}
|
||||||
|
ul.blockList ul.blockList li.blockList h3 {
|
||||||
|
padding:0;
|
||||||
|
margin:15px 0;
|
||||||
|
}
|
||||||
|
ul.blockList li.blockList h2 {
|
||||||
|
padding:0px 0 20px 0;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Page layout container styles
|
||||||
|
*/
|
||||||
|
.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer {
|
||||||
|
clear:both;
|
||||||
|
padding:10px 20px;
|
||||||
|
position:relative;
|
||||||
|
}
|
||||||
|
.indexContainer {
|
||||||
|
margin:10px;
|
||||||
|
position:relative;
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
|
.indexContainer h2 {
|
||||||
|
font-size:13px;
|
||||||
|
padding:0 0 3px 0;
|
||||||
|
}
|
||||||
|
.indexContainer ul {
|
||||||
|
margin:0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
.indexContainer ul li {
|
||||||
|
list-style:none;
|
||||||
|
padding-top:2px;
|
||||||
|
}
|
||||||
|
.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt {
|
||||||
|
font-size:12px;
|
||||||
|
font-weight:bold;
|
||||||
|
margin:10px 0 0 0;
|
||||||
|
color:#4E4E4E;
|
||||||
|
}
|
||||||
|
.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd {
|
||||||
|
margin:5px 0 10px 0px;
|
||||||
|
font-size:14px;
|
||||||
|
font-family:'DejaVu Sans Mono',monospace;
|
||||||
|
}
|
||||||
|
.serializedFormContainer dl.nameValue dt {
|
||||||
|
margin-left:1px;
|
||||||
|
font-size:1.1em;
|
||||||
|
display:inline;
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
.serializedFormContainer dl.nameValue dd {
|
||||||
|
margin:0 0 0 1px;
|
||||||
|
font-size:1.1em;
|
||||||
|
display:inline;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
List styles
|
||||||
|
*/
|
||||||
|
ul.horizontal li {
|
||||||
|
display:inline;
|
||||||
|
font-size:0.9em;
|
||||||
|
}
|
||||||
|
ul.inheritance {
|
||||||
|
margin:0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
ul.inheritance li {
|
||||||
|
display:inline;
|
||||||
|
list-style:none;
|
||||||
|
}
|
||||||
|
ul.inheritance li ul.inheritance {
|
||||||
|
margin-left:15px;
|
||||||
|
padding-left:15px;
|
||||||
|
padding-top:1px;
|
||||||
|
}
|
||||||
|
ul.blockList, ul.blockListLast {
|
||||||
|
margin:10px 0 10px 0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
ul.blockList li.blockList, ul.blockListLast li.blockList {
|
||||||
|
list-style:none;
|
||||||
|
margin-bottom:15px;
|
||||||
|
line-height:1.4;
|
||||||
|
}
|
||||||
|
ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList {
|
||||||
|
padding:0px 20px 5px 10px;
|
||||||
|
border:1px solid #ededed;
|
||||||
|
background-color:#f8f8f8;
|
||||||
|
}
|
||||||
|
ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList {
|
||||||
|
padding:0 0 5px 8px;
|
||||||
|
background-color:#ffffff;
|
||||||
|
border:none;
|
||||||
|
}
|
||||||
|
ul.blockList ul.blockList ul.blockList ul.blockList li.blockList {
|
||||||
|
margin-left:0;
|
||||||
|
padding-left:0;
|
||||||
|
padding-bottom:15px;
|
||||||
|
border:none;
|
||||||
|
}
|
||||||
|
ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast {
|
||||||
|
list-style:none;
|
||||||
|
border-bottom:none;
|
||||||
|
padding-bottom:0;
|
||||||
|
}
|
||||||
|
table tr td dl, table tr td dl dt, table tr td dl dd {
|
||||||
|
margin-top:0;
|
||||||
|
margin-bottom:1px;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Table styles
|
||||||
|
*/
|
||||||
|
.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary {
|
||||||
|
width:100%;
|
||||||
|
border-left:1px solid #EEE;
|
||||||
|
border-right:1px solid #EEE;
|
||||||
|
border-bottom:1px solid #EEE;
|
||||||
|
}
|
||||||
|
.overviewSummary, .memberSummary {
|
||||||
|
padding:0px;
|
||||||
|
}
|
||||||
|
.overviewSummary caption, .memberSummary caption, .typeSummary caption,
|
||||||
|
.useSummary caption, .constantsSummary caption, .deprecatedSummary caption {
|
||||||
|
position:relative;
|
||||||
|
text-align:left;
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
color:#253441;
|
||||||
|
font-weight:bold;
|
||||||
|
clear:none;
|
||||||
|
overflow:hidden;
|
||||||
|
padding:0px;
|
||||||
|
padding-top:10px;
|
||||||
|
padding-left:1px;
|
||||||
|
margin:0px;
|
||||||
|
white-space:pre;
|
||||||
|
}
|
||||||
|
.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link,
|
||||||
|
.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link,
|
||||||
|
.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover,
|
||||||
|
.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover,
|
||||||
|
.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active,
|
||||||
|
.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active,
|
||||||
|
.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited,
|
||||||
|
.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited {
|
||||||
|
color:#FFFFFF;
|
||||||
|
}
|
||||||
|
.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span,
|
||||||
|
.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span {
|
||||||
|
white-space:nowrap;
|
||||||
|
padding-top:5px;
|
||||||
|
padding-left:12px;
|
||||||
|
padding-right:12px;
|
||||||
|
padding-bottom:7px;
|
||||||
|
display:inline-block;
|
||||||
|
float:left;
|
||||||
|
background-color:#F8981D;
|
||||||
|
border: none;
|
||||||
|
height:16px;
|
||||||
|
}
|
||||||
|
.memberSummary caption span.activeTableTab span {
|
||||||
|
white-space:nowrap;
|
||||||
|
padding-top:5px;
|
||||||
|
padding-left:12px;
|
||||||
|
padding-right:12px;
|
||||||
|
margin-right:3px;
|
||||||
|
display:inline-block;
|
||||||
|
float:left;
|
||||||
|
background-color:#F8981D;
|
||||||
|
height:16px;
|
||||||
|
}
|
||||||
|
.memberSummary caption span.tableTab span {
|
||||||
|
white-space:nowrap;
|
||||||
|
padding-top:5px;
|
||||||
|
padding-left:12px;
|
||||||
|
padding-right:12px;
|
||||||
|
margin-right:3px;
|
||||||
|
display:inline-block;
|
||||||
|
float:left;
|
||||||
|
background-color:#4D7A97;
|
||||||
|
height:16px;
|
||||||
|
}
|
||||||
|
.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab {
|
||||||
|
padding-top:0px;
|
||||||
|
padding-left:0px;
|
||||||
|
padding-right:0px;
|
||||||
|
background-image:none;
|
||||||
|
float:none;
|
||||||
|
display:inline;
|
||||||
|
}
|
||||||
|
.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd,
|
||||||
|
.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd {
|
||||||
|
display:none;
|
||||||
|
width:5px;
|
||||||
|
position:relative;
|
||||||
|
float:left;
|
||||||
|
background-color:#F8981D;
|
||||||
|
}
|
||||||
|
.memberSummary .activeTableTab .tabEnd {
|
||||||
|
display:none;
|
||||||
|
width:5px;
|
||||||
|
margin-right:3px;
|
||||||
|
position:relative;
|
||||||
|
float:left;
|
||||||
|
background-color:#F8981D;
|
||||||
|
}
|
||||||
|
.memberSummary .tableTab .tabEnd {
|
||||||
|
display:none;
|
||||||
|
width:5px;
|
||||||
|
margin-right:3px;
|
||||||
|
position:relative;
|
||||||
|
background-color:#4D7A97;
|
||||||
|
float:left;
|
||||||
|
|
||||||
|
}
|
||||||
|
.overviewSummary td, .memberSummary td, .typeSummary td,
|
||||||
|
.useSummary td, .constantsSummary td, .deprecatedSummary td {
|
||||||
|
text-align:left;
|
||||||
|
padding:0px 0px 12px 10px;
|
||||||
|
}
|
||||||
|
th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th,
|
||||||
|
td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{
|
||||||
|
vertical-align:top;
|
||||||
|
padding-right:0px;
|
||||||
|
padding-top:8px;
|
||||||
|
padding-bottom:3px;
|
||||||
|
}
|
||||||
|
th.colFirst, th.colLast, th.colOne, .constantsSummary th {
|
||||||
|
background:#dee3e9;
|
||||||
|
text-align:left;
|
||||||
|
padding:8px 3px 3px 7px;
|
||||||
|
}
|
||||||
|
td.colFirst, th.colFirst {
|
||||||
|
white-space:nowrap;
|
||||||
|
font-size:13px;
|
||||||
|
}
|
||||||
|
td.colLast, th.colLast {
|
||||||
|
font-size:13px;
|
||||||
|
}
|
||||||
|
td.colOne, th.colOne {
|
||||||
|
font-size:13px;
|
||||||
|
}
|
||||||
|
.overviewSummary td.colFirst, .overviewSummary th.colFirst,
|
||||||
|
.useSummary td.colFirst, .useSummary th.colFirst,
|
||||||
|
.overviewSummary td.colOne, .overviewSummary th.colOne,
|
||||||
|
.memberSummary td.colFirst, .memberSummary th.colFirst,
|
||||||
|
.memberSummary td.colOne, .memberSummary th.colOne,
|
||||||
|
.typeSummary td.colFirst{
|
||||||
|
width:25%;
|
||||||
|
vertical-align:top;
|
||||||
|
}
|
||||||
|
td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover {
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
.tableSubHeadingColor {
|
||||||
|
background-color:#EEEEFF;
|
||||||
|
}
|
||||||
|
.altColor {
|
||||||
|
background-color:#FFFFFF;
|
||||||
|
}
|
||||||
|
.rowColor {
|
||||||
|
background-color:#EEEEEF;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Content styles
|
||||||
|
*/
|
||||||
|
.description pre {
|
||||||
|
margin-top:0;
|
||||||
|
}
|
||||||
|
.deprecatedContent {
|
||||||
|
margin:0;
|
||||||
|
padding:10px 0;
|
||||||
|
}
|
||||||
|
.docSummary {
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.blockList ul.blockList ul.blockList li.blockList h3 {
|
||||||
|
font-style:normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.block {
|
||||||
|
font-size:14px;
|
||||||
|
font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
td.colLast div {
|
||||||
|
padding-top:0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
td.colLast a {
|
||||||
|
padding-bottom:3px;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
Formatting effect styles
|
||||||
|
*/
|
||||||
|
.sourceLineNo {
|
||||||
|
color:green;
|
||||||
|
padding:0 30px 0 0;
|
||||||
|
}
|
||||||
|
h1.hidden {
|
||||||
|
visibility:hidden;
|
||||||
|
overflow:hidden;
|
||||||
|
font-size:10px;
|
||||||
|
}
|
||||||
|
.block {
|
||||||
|
display:block;
|
||||||
|
margin:3px 10px 2px 0px;
|
||||||
|
color:#474747;
|
||||||
|
}
|
||||||
|
.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink,
|
||||||
|
.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel,
|
||||||
|
.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink {
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
.deprecationComment, .emphasizedPhrase, .interfaceName {
|
||||||
|
font-style:italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase,
|
||||||
|
div.block div.block span.interfaceName {
|
||||||
|
font-style:normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.contentContainer ul.blockList li.blockList h2{
|
||||||
|
padding-bottom:0px;
|
||||||
|
}
|
44
src/CentrePoint.java
Executable file
44
src/CentrePoint.java
Executable file
|
@ -0,0 +1,44 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Solar 1.0 *
|
||||||
|
* Copyright © 2015 Ben Goldsworthy (rumps) *
|
||||||
|
* *
|
||||||
|
* A program to simulate the motion of the Sol system *
|
||||||
|
* *
|
||||||
|
* This file is part of Solar. *
|
||||||
|
* *
|
||||||
|
* Solar is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* Solar is distributed in the hope that it will be useful, *
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
|
* GNU General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with Solar. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
** This class represents a point in space, around which satellites orbit.
|
||||||
|
**/
|
||||||
|
|
||||||
|
/**
|
||||||
|
** @author Ben Goldsworthy (rumps) <me+modelsolar@bengoldsworthy.net>
|
||||||
|
** @version 1.0
|
||||||
|
**/
|
||||||
|
public class CentrePoint extends Point {
|
||||||
|
/**
|
||||||
|
** Constructor method. Used for central points in the simulation.
|
||||||
|
**
|
||||||
|
** @param radius The radius of the body (the table I used for values had
|
||||||
|
** radii rather than diameters).
|
||||||
|
** @param name The name of the body.
|
||||||
|
** @param colour The colour of the body.
|
||||||
|
**/
|
||||||
|
public CentrePoint(double radius, String name, String colour) {
|
||||||
|
super(radius, name, colour, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
124
src/Point.java
Executable file
124
src/Point.java
Executable file
|
@ -0,0 +1,124 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Solar 1.0 *
|
||||||
|
* Copyright © 2015 Ben Goldsworthy (rumps) *
|
||||||
|
* *
|
||||||
|
* A program to simulate the motion of the Sol system *
|
||||||
|
* *
|
||||||
|
* This file is part of Solar. *
|
||||||
|
* *
|
||||||
|
* Solar is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* Solar is distributed in the hope that it will be useful, *
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
|
* GNU General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with Solar. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
** This class represents a point in space, utilised in the Solar program.
|
||||||
|
**/
|
||||||
|
|
||||||
|
/**
|
||||||
|
** @author Ben Goldsworthy (rumps) <me+modelsolar@bengoldsworthy.net>
|
||||||
|
** @version 1.0
|
||||||
|
**/
|
||||||
|
public class Point {
|
||||||
|
private double diameter;
|
||||||
|
private String name;
|
||||||
|
private String colour;
|
||||||
|
private boolean focus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
** Constructor method.
|
||||||
|
**
|
||||||
|
** @param radius The radius of the body (the table I used for values had
|
||||||
|
** radii rather than diameters).
|
||||||
|
** @param name The name of the body.
|
||||||
|
** @param colour The colour of the body.
|
||||||
|
** @param focus Whether the body is the current focus or not.
|
||||||
|
**/
|
||||||
|
public Point(double radius, String name, String colour, boolean focus) {
|
||||||
|
this.diameter = radius * 2;
|
||||||
|
this.name = name;
|
||||||
|
this.colour = colour;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accessor function.
|
||||||
|
*
|
||||||
|
* @return Whether the body is the current focus or not.
|
||||||
|
*/
|
||||||
|
public boolean getFocus() {
|
||||||
|
return focus;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accessor function.
|
||||||
|
* @return The body's diameter.
|
||||||
|
*/
|
||||||
|
public double getDiameter() {
|
||||||
|
return this.diameter;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accessor function.
|
||||||
|
* @return The body's radius.
|
||||||
|
*/
|
||||||
|
public double getRadius() {
|
||||||
|
return this.diameter/2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accessor function.
|
||||||
|
* @return The body's name.
|
||||||
|
*/
|
||||||
|
public String getName() {
|
||||||
|
return this.name;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accessor function.
|
||||||
|
* @return The body's colour.
|
||||||
|
*/
|
||||||
|
public String getColour() {
|
||||||
|
return this.colour;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Mutator function.
|
||||||
|
* @param focus Whether the body is in focus or not.
|
||||||
|
*/
|
||||||
|
public void setFocus(boolean focus) {
|
||||||
|
this.focus = focus;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Mutator function.
|
||||||
|
* @param diameter The new diameter.
|
||||||
|
*/
|
||||||
|
public void setDiameter(double diameter) {
|
||||||
|
this.diameter = diameter;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Mutator function.
|
||||||
|
* @param name The new name.
|
||||||
|
*/
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Mutator function.
|
||||||
|
* @param colour The new colour.
|
||||||
|
*/
|
||||||
|
public void setColour(String colour) {
|
||||||
|
this.colour = colour;
|
||||||
|
}
|
||||||
|
}
|
136
src/Satellite.java
Executable file
136
src/Satellite.java
Executable file
|
@ -0,0 +1,136 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Solar 1.0 *
|
||||||
|
* Copyright © 2015 Ben Goldsworthy (rumps) *
|
||||||
|
* *
|
||||||
|
* A program to simulate the motion of the Sol system *
|
||||||
|
* *
|
||||||
|
* This file is part of Solar. *
|
||||||
|
* *
|
||||||
|
* Solar is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* Solar is distributed in the hope that it will be useful, *
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
|
* GNU General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with Solar. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
** This class represents a satellite in space, which orbits a primary,
|
||||||
|
** utilised in the Solar program.
|
||||||
|
**/
|
||||||
|
|
||||||
|
/**
|
||||||
|
** @author Ben Goldsworthy (rumps) <me+modelsolar@bengoldsworthy.net>
|
||||||
|
** @version 1.0
|
||||||
|
**/
|
||||||
|
public class Satellite extends Point {
|
||||||
|
private double distance;
|
||||||
|
private double angle;
|
||||||
|
private double speed;
|
||||||
|
private Satellite primary;
|
||||||
|
|
||||||
|
/**
|
||||||
|
** Constructor method. Used for moon-type satellites.
|
||||||
|
**
|
||||||
|
** @param distance The distance of the body from its primary.
|
||||||
|
** @param radius The radius of the body (the table I used for values had
|
||||||
|
** radii rather than diameters).
|
||||||
|
** @param angle The starting position of the body along its orbit.
|
||||||
|
** @param speed The speed of the body.
|
||||||
|
** @param name The name of the body.
|
||||||
|
** @param colour The colour of the body.
|
||||||
|
** @param primary The primary, or orbital target, of the satellite.
|
||||||
|
**/
|
||||||
|
public Satellite(double distance, double angle, double radius, double speed,
|
||||||
|
String name, String colour, Satellite primary) {
|
||||||
|
super(radius, name, colour, false);
|
||||||
|
this.distance = distance;
|
||||||
|
this.angle = angle;
|
||||||
|
// Determines the speed as the result of 1 - (the sidereal orbital period
|
||||||
|
// of the body in years/1000), which gives a speed relative to that of
|
||||||
|
// Terra
|
||||||
|
this.speed = (1 - (speed/1000));
|
||||||
|
this.primary = primary;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
** Constructor function. Used for non-moon-type satellites.
|
||||||
|
**
|
||||||
|
** @param distance The distance of the body from its primary.
|
||||||
|
** @param radius The radius of the body (the table I used for values had
|
||||||
|
** radii rather than diameters).
|
||||||
|
** @param angle The starting position of the body along its orbit.
|
||||||
|
** @param speed The speed of the body.
|
||||||
|
** @param name The name of the body.
|
||||||
|
** @param colour The colour of the body.
|
||||||
|
**/
|
||||||
|
public Satellite(double distance, double angle, double radius, double speed,
|
||||||
|
String name, String colour) {
|
||||||
|
super(radius, name, colour, false);
|
||||||
|
this.distance = distance;
|
||||||
|
this.angle = angle;
|
||||||
|
this.speed = (1 - (speed/1000));
|
||||||
|
// Planets orbit the centre point, or are the centre point, so don't need
|
||||||
|
// primaries
|
||||||
|
this.primary = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
** Moves the body along its orbit according to its current speed.
|
||||||
|
**/
|
||||||
|
public void move() {
|
||||||
|
this.angle += this.speed;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accessor function.
|
||||||
|
*
|
||||||
|
* @return The distance between this body and its primary.
|
||||||
|
*/
|
||||||
|
public double getDistance() {
|
||||||
|
return this.distance * 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accessor function.
|
||||||
|
*
|
||||||
|
* @return The angle along this body's orbit it is currently at.
|
||||||
|
*/
|
||||||
|
public double getAngle() {
|
||||||
|
return this.angle;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accessor function.
|
||||||
|
*
|
||||||
|
* @return The speed of this body.
|
||||||
|
*/
|
||||||
|
public double getSpeed() {
|
||||||
|
return this.speed;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accessor function.
|
||||||
|
*
|
||||||
|
* @return The primary of this body (where applicable).
|
||||||
|
*/
|
||||||
|
public Satellite getPrimary() {
|
||||||
|
return primary;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Mutator function.
|
||||||
|
*
|
||||||
|
* @param speed Sets the speed of this body.
|
||||||
|
*/
|
||||||
|
public void setSpeed(double speed) {
|
||||||
|
this.speed = speed;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
418
src/Solar.java
Executable file
418
src/Solar.java
Executable file
|
@ -0,0 +1,418 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Solar 1.0 *
|
||||||
|
* Copyright © 2015 Ben Goldsworthy (rumps) *
|
||||||
|
* *
|
||||||
|
* A program to simulate the motion of the Sol system *
|
||||||
|
* *
|
||||||
|
* This file is part of Solar. *
|
||||||
|
* *
|
||||||
|
* Solar is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* Solar is distributed in the hope that it will be useful, *
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
|
* GNU General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with Solar. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
** @author Ben Goldsworthy (rumps) <me+modelsolar@bengoldsworthy.net>
|
||||||
|
** @version 1.0
|
||||||
|
**/
|
||||||
|
public class Solar {
|
||||||
|
private enum Planets {MERCURY, VENUS, TERRA, MARS, JUPITER,
|
||||||
|
SATURN, URANUS, NEPTUNE}
|
||||||
|
private enum DwarfPlanets {CERES, PLUTO, HAUMEA, MAKEMAKE, ERIS}
|
||||||
|
private enum Moons {LUNA, PHOBOS, DEIMOS, IO, EUROPA, GANYMEDE, CALLISTO,
|
||||||
|
AMALTHEA, HIMALIA, ELARA, PASIPHAE, SINOPE, LYSITHEA,
|
||||||
|
CARME, ANANKE, LEDA, THEBE, ADRASTEA, METIS, CALLIRRHOE,
|
||||||
|
THEMISTO, MEGACLITE, TAYGETE, CHALDENE, HARPALYKE,
|
||||||
|
KALYKE, IOCASTE, ERINOME, ISONOE, PRAXIDIKE, AUTONOE,
|
||||||
|
THYONE, HERMIPPE, AITNE, EURYDOME, EUANTHE, EUPORIE,
|
||||||
|
ORTHOSIE, SPONDE, KALE, PASITHEE, HEGEMONE, MNEME, AOEDE,
|
||||||
|
THELXINOE, ARCHE, KALLICHORE, HELIKE, CARPO, EUKELADE,
|
||||||
|
CYLLENE, KORE, HERSE, S2010J1, S2010J2, DIA, S2003J2,
|
||||||
|
S2003J3, S2003J4, S2003J5, S2003J9, S2003J10, S2003J12,
|
||||||
|
S2003J15, S2003J16, S2003J18, S2003J19, S2003J23, MIMAS,
|
||||||
|
ENCELADUS, TETHYS, DIONE, RHEA, TITAN, HYPERION, IAPETUS,
|
||||||
|
PHOEBE, JANUS, EPIMETHEUS, HELENE, TELESTO, CALYPSO,
|
||||||
|
ATLAS, PROMETHEUS, PANDORA, PAN, YMIR, PAALIAQ, TARVOS,
|
||||||
|
IJIRAQ, SUTTUNGR, KIVIUQ, MUNDILFARI, ALBIORIX, SKATHI,
|
||||||
|
ERRIAPUS, SIARNAQ, THRYMR, NARVI, METHONE, PALLENE,
|
||||||
|
POLYDEUCES, DAPHNIS, AEGIR, BEBHIONN, BERGELMIR, BESTLA,
|
||||||
|
FARBAUTI, FENRIR, FORNJOT, HATI, HYRROKKIN, KARI, LOGE,
|
||||||
|
SKOLL, SURTUR, ANTHE, JARNSAXA, GREIP, TARQEQ, AEGAEON,
|
||||||
|
S2004S7, S2004S12, S2004S13, S2006S1, S2006S3, S2007S2,
|
||||||
|
S2007S3, S2009S1, ARIEL, UMBRIEL, TITANIA, OBERON,
|
||||||
|
MIRANDA, CORDELIA, OPHELIA, BIANCA, CRESSIDA, DESDEMONA,
|
||||||
|
JULIET, PORTIA, ROSALIND, BELINDA, PUCK, CALIBAN,
|
||||||
|
SYCORAX, PROSPERO, SETEBOS, STEPHANO, TRINCULO,
|
||||||
|
FRANCISCO, MARGARET, FERDINAND, PERDITA, MAB, CUPID,
|
||||||
|
TRITON, NEREID, NAIAD, THALASSA, DESPINA, GALATEA,
|
||||||
|
LARISSA, PROTEUS, HALIMEDE, PSAMATHE, SAO, LAOMEDEIA,
|
||||||
|
NESO, S2004N1}
|
||||||
|
|
||||||
|
/**
|
||||||
|
** Populates the solar system and animates the orbiting.
|
||||||
|
**
|
||||||
|
** @param args arguments passed in from the command line.
|
||||||
|
**/
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SolarSystem system = new SolarSystem();
|
||||||
|
|
||||||
|
// Defaults the focus to Sol.
|
||||||
|
int previousFocus = 1;
|
||||||
|
CentrePoint centre = new CentrePoint(54.5, "Sol", "YELLOW");
|
||||||
|
|
||||||
|
// Initialises all the bodies.
|
||||||
|
Satellite[] planets = new Satellite[8];
|
||||||
|
importPlanets(planets, centre);
|
||||||
|
Satellite[] dwarfPlanets = new Satellite[5];
|
||||||
|
importDwarfPlanets(dwarfPlanets, centre);
|
||||||
|
Satellite[] moons = new Satellite[173];
|
||||||
|
importMoons(moons, planets);
|
||||||
|
|
||||||
|
while(true){
|
||||||
|
int focus = system.getFocus();
|
||||||
|
// If the focus has changed, replaces the centre point with the
|
||||||
|
// currently-focused one.
|
||||||
|
if (focus != previousFocus) {
|
||||||
|
switch(focus) {
|
||||||
|
case 1:
|
||||||
|
centre.setDiameter(109);
|
||||||
|
centre.setName("Sol");
|
||||||
|
centre.setColour("YELLOW");
|
||||||
|
|
||||||
|
system.setZoom(2.0);
|
||||||
|
break;
|
||||||
|
case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:
|
||||||
|
for (Planets p : Planets.values())
|
||||||
|
planets[p.ordinal()].setFocus(false);
|
||||||
|
|
||||||
|
centre.setDiameter(planets[focus - 2].getDiameter());
|
||||||
|
centre.setName(planets[focus - 2].getName());
|
||||||
|
centre.setColour(planets[focus - 2].getColour());
|
||||||
|
planets[focus - 2].setFocus(true);
|
||||||
|
|
||||||
|
system.setZoom(35.0);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
}
|
||||||
|
previousFocus = focus;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Adds the centre point to the display.
|
||||||
|
system.drawSolarObject(0,0, (centre.getDiameter() * system.getZoom()),
|
||||||
|
centre.getColour());
|
||||||
|
|
||||||
|
// If the focus is on Sol, populates the display with the planets,
|
||||||
|
// dwarf planets and (certain) moons - see next comment.
|
||||||
|
if (focus == 1) {
|
||||||
|
for (Planets p : Planets.values()) {
|
||||||
|
Satellite currPlanet = planets[p.ordinal()];
|
||||||
|
double currSize = currPlanet.getDiameter() * system.getZoom();
|
||||||
|
// If any body is so small at the current zoom level that it
|
||||||
|
// is invisible, the program doesn't bother rendering it.
|
||||||
|
if (currSize > 0.1) {
|
||||||
|
double currDist = currPlanet.getDistance() +
|
||||||
|
(centre.getDiameter() * system.getZoom());
|
||||||
|
system.drawSolarObject(currDist, currPlanet.getAngle(),
|
||||||
|
currSize, currPlanet.getColour());
|
||||||
|
}
|
||||||
|
currPlanet.move();
|
||||||
|
}
|
||||||
|
for (DwarfPlanets dp : DwarfPlanets.values()) {
|
||||||
|
Satellite currDwarfPlanet = dwarfPlanets[dp.ordinal()];
|
||||||
|
double currSize = currDwarfPlanet.getDiameter()*system.getZoom();
|
||||||
|
if (currSize > 0.1) {
|
||||||
|
double currDist = currDwarfPlanet.getDistance() +
|
||||||
|
(centre.getDiameter() * system.getZoom());
|
||||||
|
|
||||||
|
system.drawSolarObject(currDist, currDwarfPlanet.getAngle(),
|
||||||
|
currSize, currDwarfPlanet.getColour());
|
||||||
|
}
|
||||||
|
currDwarfPlanet.move();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// For the moons, if Sol is the current focus, they're all populated.
|
||||||
|
// If any of the planets is the focus, only that planet's moons are.
|
||||||
|
// The size-visibility rule still applies (hence why only 4-5 of
|
||||||
|
// Jupiter or Saturn's 60+ moons show up, despite all being present).
|
||||||
|
for (Moons m : Moons.values()) {
|
||||||
|
Satellite currMoon = moons[m.ordinal()];
|
||||||
|
if (focus > 1) {
|
||||||
|
if (currMoon.getPrimary().getFocus()) {
|
||||||
|
double currMoonSize = currMoon.getDiameter() * system.getZoom();
|
||||||
|
if (currMoonSize > 0.1) {
|
||||||
|
double currMoonDist = currMoon.getDistance() +
|
||||||
|
(centre.getDiameter() * system.getZoom());
|
||||||
|
|
||||||
|
system.drawSolarObject(currMoonDist, currMoon.getAngle(),
|
||||||
|
currMoonSize, currMoon.getColour());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (focus == 1) {
|
||||||
|
double currMoonSize = currMoon.getDiameter() * system.getZoom();
|
||||||
|
if (currMoonSize > 0.1) {
|
||||||
|
Satellite currPrimary = currMoon.getPrimary();
|
||||||
|
double currMoonDist = currMoon.getDistance() +
|
||||||
|
(currPrimary.getDiameter() * system.getZoom());
|
||||||
|
double primaryDist = currPrimary.getDistance() +
|
||||||
|
(centre.getDiameter() * system.getZoom());
|
||||||
|
double primaryAngle = currPrimary.getAngle();
|
||||||
|
|
||||||
|
system.drawSolarObjectAbout(currMoonDist, currMoon.getAngle(),
|
||||||
|
currMoonSize, currMoon.getColour(),
|
||||||
|
primaryDist, primaryAngle);
|
||||||
|
currMoon.move();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
currMoon.move();
|
||||||
|
}
|
||||||
|
|
||||||
|
// The drawing is pushed to the screen.
|
||||||
|
system.finishedDrawing();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
** Imports the details of the planets (Mercury, Venus, Terra, Mars,
|
||||||
|
** Jupiter, Saturn, Uranus & Neptune).
|
||||||
|
**
|
||||||
|
** @param planets The array of Satellite objects representing the planets.
|
||||||
|
**/
|
||||||
|
private static void importPlanets(Satellite[] planets, CentrePoint centre) {
|
||||||
|
planets[Planets.MERCURY.ordinal()] = new Satellite(0.38709893, startOrbit(), 0.3825, 0.2408467, "Mercury","CYAN");
|
||||||
|
planets[Planets.VENUS.ordinal()] = new Satellite(0.72333199, startOrbit(), 0.9488, 0.61519726, "Venus","CYAN");
|
||||||
|
planets[Planets.TERRA.ordinal()] = new Satellite(1.00000011, startOrbit(), 1, 1.0000174, "Terra","CYAN");
|
||||||
|
planets[Planets.MARS.ordinal()] = new Satellite(1.52366231, startOrbit(), 0.53226, 1.8808476, "Mars","RED");
|
||||||
|
planets[Planets.JUPITER.ordinal()] = new Satellite(5.20336301, startOrbit(), 11.209, 11.862615, "Jupiter","ORANGE");
|
||||||
|
planets[Planets.SATURN.ordinal()] = new Satellite(9.53707032, startOrbit(), 9.449, 29.447498, "Saturn","ORANGE");
|
||||||
|
planets[Planets.URANUS.ordinal()] = new Satellite(19.19126393, startOrbit(), 4.007, 84.016846, "Uranus","CYAN");
|
||||||
|
planets[Planets.NEPTUNE.ordinal()] = new Satellite(30.06896348, startOrbit(), 3.883, 164.79132, "Neptune","BLUE");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
** Imports the details of the dwarf planets (Ceres, Pluto, Haumea,
|
||||||
|
** Makemake & Eris).
|
||||||
|
**
|
||||||
|
** @param dwarfPlanets The array of Satellite objects representing the
|
||||||
|
** dwarf planets.
|
||||||
|
**/
|
||||||
|
private static void importDwarfPlanets(Satellite[] dwarfPlanets, CentrePoint centre) {
|
||||||
|
dwarfPlanets[DwarfPlanets.CERES.ordinal()] = new Satellite(2.766, startOrbit(), 0.0741, 4.599, "Ceres", "RED");
|
||||||
|
dwarfPlanets[DwarfPlanets.PLUTO.ordinal()] = new Satellite(39.482, startOrbit(), 0.180, 247.92065, "Pluto", "RED");
|
||||||
|
dwarfPlanets[DwarfPlanets.HAUMEA.ordinal()] = new Satellite(43.335, startOrbit(), 0.10, 285.4, "Haumea", "RED");
|
||||||
|
dwarfPlanets[DwarfPlanets.MAKEMAKE.ordinal()] = new Satellite(45.792, startOrbit(), 0.11, 309.9, "Makemake", "RED");
|
||||||
|
dwarfPlanets[DwarfPlanets.ERIS.ordinal()] = new Satellite(67.668, startOrbit(), 0.19, 557, "Eris", "RED");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
** Imports the details of the moons (there's loads).
|
||||||
|
**
|
||||||
|
** @param moons The array of Satellite objects representing the moons.
|
||||||
|
** @param planets The array of Satellite objects representing their
|
||||||
|
** primaries.
|
||||||
|
**/
|
||||||
|
private static void importMoons(Satellite[] moons, Satellite[] planets) {
|
||||||
|
/* Moons of Terra */
|
||||||
|
moons[Moons.LUNA.ordinal()] = new Satellite(0.00256954860549408, startOrbit(), 0.272353835781816, 27.321582, "Luna", "WHITE", planets[Planets.TERRA.ordinal()]);
|
||||||
|
|
||||||
|
/* Moons of Mars */
|
||||||
|
moons[Moons.PHOBOS.ordinal()] = new Satellite(0.0000627, startOrbit(), 0.00174033019237704, 0.319, "Phobos", "WHITE", planets[Planets.MARS.ordinal()]);
|
||||||
|
moons[Moons.DEIMOS.ordinal()] = new Satellite(0.00015682041390558, startOrbit(), 0.000972076323670058, 1.262, "Deimos", "WHITE", planets[Planets.MARS.ordinal()]);
|
||||||
|
|
||||||
|
/* Moons of Jupiter */
|
||||||
|
moons[Moons.IO.ordinal()] = new Satellite(0.0028195588484814, startOrbit(), 0.285053542591054, 1.769, "Io", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.EUROPA.ordinal()] = new Satellite(0.0044860264182453, startOrbit(), 0.244696696508365, 3.551, "Europa", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.GANYMEDE.ordinal()] = new Satellite(0.0071551820564592, startOrbit(), 0.412991329706339, 7.155, "Ganymede", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.CALLISTO.ordinal()] = new Satellite(0.0125850721764721, startOrbit(), 0.377604615794672, 16.69, "Callisto", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.AMALTHEA.ordinal()] = new Satellite(0.0012125841041122, startOrbit(), 0.0130838337435914, 0.498, "Amalthea", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.HIMALIA.ordinal()] = new Satellite(0.076612053016703, startOrbit(), 0.0105046957557893, 250.56, "Himalia", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.ELARA.ordinal()] = new Satellite(0.078483737411143, startOrbit(), 0.00674181966416331, 259.64, "Elara", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.PASIPHAE.ordinal()] = new Satellite(0.157916686193752, startOrbit(), 0.00470359511453254, -743.6, "Pasiphae", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.SINOPE.ordinal()] = new Satellite(0.160022331137497, startOrbit(), 0.00297894357253728, -758.9, "Sinope", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.LYSITHEA.ordinal()] = new Satellite(0.078323307320191, startOrbit(), 0.00282215706871952, 259.2, "Lysithea", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.CARME.ordinal()] = new Satellite(0.156446077026692, startOrbit(), 0.00360608958780828, -734.1, "Carme", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.ANANKE.ordinal()] = new Satellite(0.142221275628948, startOrbit(), 0.00219501105344852, -629.7, "Ananke", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.LEDA.ordinal()] = new Satellite(0.074633415228295, startOrbit(), 0.00156786503817751, 240.92, "Leda", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.THEBE.ordinal()] = new Satellite(0.0014833098825937, startOrbit(), 0.00772957463821514, 0.675, "Thebe", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.ADRASTEA.ordinal()] = new Satellite(0.000862311738867, startOrbit(), 0.00128564933130556, 0.298, "Adrastea", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.METIS.ordinal()] = new Satellite(0.000855627151744, startOrbit(), 0.00337090983208165, 0.295, "Metis", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.CALLIRRHOE.ordinal()] = new Satellite(0.161118603425669, startOrbit(), 0.000674181966416331, -758.7, "Callirrhoe", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.THEMISTO.ordinal()] = new Satellite(0.048690532603932, startOrbit(), 0.000627146015271005, 130.02, "Themisto", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.MEGACLITE.ordinal()] = new Satellite(0.157041005280639, startOrbit(), 0.000423323560307929, -752.8, "Megaclite", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.TAYGETE.ordinal()] = new Satellite(0.15561718822344, startOrbit(), 0.000391966259544378, -732.4, "Taygete", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.CHALDENE.ordinal()] = new Satellite(0.1544139625413, startOrbit(), 0.000297894357253728, -723.7, "Chaldene", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.HARPALYKE.ordinal()] = new Satellite(0.139427118211534, startOrbit(), 0.000344930308399053, -623.3, "Harpalyke", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.KALYKE.ordinal()] = new Satellite(0.156974159409409, startOrbit(), 0.000407644909926154, -742, "Kalyke", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.IOCASTE.ordinal()] = new Satellite(0.14077740481038, startOrbit(), 0.000407644909926154, -631.6, "Iocaste", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.ERINOME.ordinal()] = new Satellite(0.155055682905108, startOrbit(), 0.000250858406108402, -728.4, "Erinome", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.ISONOE.ordinal()] = new Satellite(0.154781614833065, startOrbit(), 0.000297894357253728, -726.2, "Isonoe", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.PRAXIDIKE.ordinal()] = new Satellite(0.139761347567684, startOrbit(), 0.000533074112980355, -625.3, "Praxidike", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.AUTONOE.ordinal()] = new Satellite(0.160737581959658, startOrbit(), 0.000313573007635503, -760.9, "Autonoe", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.THYONE.ordinal()] = new Satellite(0.139968569768497, startOrbit(), 0.000313573007635503, -627.2, "Thyone", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.HERMIPPE.ordinal()] = new Satellite(0.141252010496113, startOrbit(), 0.000313573007635503, -633, "Hermippe", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.AITNE.ordinal()] = new Satellite(0.155276274280167, startOrbit(), 0.000235179755726627, -730.1, "Aitne", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.EURYDOME.ordinal()] = new Satellite(0.152843084567395, startOrbit(), 0.000235179755726627, -717.3, "Eurydome", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.EUANTHE.ordinal()] = new Satellite(0.139019358397031, startOrbit(), 0.000235179755726627, -620.4, "Euanthe", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.EUPORIE.ordinal()] = new Satellite(0.129039269822392, startOrbit(), 0.000156786503817751, -550.7, "Euporie", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.ORTHOSIE.ordinal()] = new Satellite(0.13850464518856, startOrbit(), 0.000156786503817751, -622.5, "Orthosie", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.SPONDE.ordinal()] = new Satellite(0.157000897757901, startOrbit(), 0.000156786503817751, -748.3, "Sponde", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.KALE.ordinal()] = new Satellite(0.155196059234691, startOrbit(), 0.000156786503817751, -729.4, "Kale", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.PASITHEE.ordinal()] = new Satellite(0.153772242177492, startOrbit(), 0.000156786503817751, -719.4, "Pasithee", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.HEGEMONE.ordinal()] = new Satellite(0.157602510598971, startOrbit(), 0.000235179755726627, -739.8, "Hegemone", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.MNEME.ordinal()] = new Satellite(0.140610290132305, startOrbit(), 0.000156786503817751, -620, "Mneme", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.AOEDE.ordinal()] = new Satellite(0.16029639920954, startOrbit(), 0.000313573007635503, -761.5, "Aoede", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.THELXINOE.ordinal()] = new Satellite(0.141472601871172, startOrbit(), 0.000156786503817751, -628, "Thelxinoe", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.ARCHE.ordinal()] = new Satellite(0.156118532257665, startOrbit(), 0.000235179755726627, -731.9, "Arche", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.KALLICHORE.ordinal()] = new Satellite(0.155670664920424, startOrbit(), 0.000156786503817751, -728.7, "Kallichore", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.HELIKE.ordinal()] = new Satellite(0.140837566094487, startOrbit(), 0.000313573007635503, -626.3, "Helike", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.CARPO.ordinal()] = new Satellite(0.114025687144134, startOrbit(), 0.000235179755726627, 456.3, "Carpo", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.EUKELADE.ordinal()] = new Satellite(0.155938048405344, startOrbit(), 0.000313573007635503, -730.4, "Eukelade", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.CYLLENE.ordinal()] = new Satellite(0.159153334811507, startOrbit(), 0.000156786503817751, -75, "Cyllene", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.KORE.ordinal()] = new Satellite(0.164059821759789, startOrbit(), 0.000156786503817751, -779.1, "Kore", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.HERSE.ordinal()] = new Satellite(0.153631865847909, startOrbit(), 0.000156786503817751, -714.5, "Herse", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.S2010J1.ordinal()] = new Satellite(0.155846703522308, startOrbit(), 0.000156786503817751, -723, "S/2010 J 1", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.S2010J2.ordinal()] = new Satellite(0.135744913394829, startOrbit(), 0.0000783932519088757, -588, "S/2010 J 2", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.DIA.ordinal()] = new Satellite(0.08402526013611, startOrbit(), 0.000313573007635503, 287.93, "Dia", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.S2003J2.ordinal()] = new Satellite(0.190209926584965, startOrbit(), 0.000156786503817751, -981.5, "S/2003 J 2", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.S2003J3.ordinal()] = new Satellite(0.135189089975552, startOrbit(), 0.000156786503817751, -583.8, "S/2003 J 3", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.S2003J4.ordinal()] = new Satellite(0.159982223614759, startOrbit(), 0.000156786503817751, -755.2, "S/2003 J 4", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.S2003J5.ordinal()] = new Satellite(0.157074428216254, startOrbit(), 0.000313573007635503, -738.7, "S/2003 J 5", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.S2003J9.ordinal()] = new Satellite(0.156339123632724, startOrbit(), 0.0000783932519088757, -733.3, "S/2003 J 9", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.S2003J10.ordinal()] = new Satellite(0.154039625662412, startOrbit(), 0.000156786503817751, -716.2, "S/2003 J 10", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.S2003J12.ordinal()] = new Satellite(0.119206242164459, startOrbit(), 0.0000783932519088757, -489.7, "S/2003 J 12", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.S2003J15.ordinal()] = new Satellite(0.15127220659349, startOrbit(), 0.000156786503817751, -689.7, "S/2003 J 15", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.S2003J16.ordinal()] = new Satellite(0.140082207749588, startOrbit(), 0.000156786503817751, -616.3, "S/2003 J 16", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.S2003J18.ordinal()] = new Satellite(0.136539376574398, startOrbit(), 0.000156786503817751, -596.5, "S/2003 J 18", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.S2003J19.ordinal()] = new Satellite(0.157321757939805, startOrbit(), 0.000156786503817751, -740.4, "S/2003 J 19", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.S2003J23.ordinal()] = new Satellite(0.157528980140618, startOrbit(), 0.000156786503817751, -732.4, "S/2003 J 23", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
moons[Moons.S2003J2.ordinal()] = new Satellite(0.155949479049324, startOrbit(), 0.0000783932519088757, -726, "S/2011 J 2", "WHITE", planets[Planets.JUPITER.ordinal()]);
|
||||||
|
|
||||||
|
/* Moons of Saturn */
|
||||||
|
|
||||||
|
moons[Moons.MIMAS.ordinal()] = new Satellite(0.00124025829480142, startOrbit(), 0.0310750850566783, 0.942, "Mimas", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.ENCELADUS.ordinal()] = new Satellite(0.00159119911875892, startOrbit(), 0.0395572349132187, 1.37, "Enceladus", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.TETHYS.ordinal()] = new Satellite(0.00196974728753441, startOrbit(), 0.08408460199746, 1.888, "Tethys", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.DIONE.ordinal()] = new Satellite(0.00252289687196266, startOrbit(), 0.0881924083974851, 2.737, "Dione", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.RHEA.ordinal()] = new Satellite(0.00352324533491961, startOrbit(), 0.119863282168671, 4.518, "Rhea", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.TITAN.ordinal()] = new Satellite(0.00816769646798001, startOrbit(), 0.403803640582619, 15.95, "Titan", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.HYPERION.ordinal()] = new Satellite(0.0100327631211682, startOrbit(), 0.0208526050077609, 21.28, "Hyperion", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.IAPETUS.ordinal()] = new Satellite(0.0238027452110633, startOrbit(), 0.115159687054138, 79.33, "Iapetus", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.PHOEBE.ordinal()] = new Satellite(0.0865505634594369, startOrbit(), 0.0167134413069723, -550.3, "Phoebe", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.JANUS.ordinal()] = new Satellite(0.00101244756564958, startOrbit(), 0.0141734999451247, 0.695, "Janus", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.EPIMETHEUS.ordinal()] = new Satellite(0.00101211333629343, startOrbit(), 0.0091406531725749, 0.694, "Epimetheus", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.HELENE.ordinal()] = new Satellite(0.00252289687196266, startOrbit(), 0.00250858406108402, 2.737, "Helene", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.TELESTO.ordinal()] = new Satellite(0.00197001467101933, startOrbit(), 0.00188143804581302, 1.888, "Telesto", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.CALYPSO.ordinal()] = new Satellite(0.00197001467101933, startOrbit(), 0.00148947178626864, 1.888, "Calypso", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.ATLAS.ordinal()] = new Satellite(0.00092026710922341, startOrbit(), 0.0023988335084116, 0.602, "Atlas", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.PROMETHEUS.ordinal()] = new Satellite(0.00093169775320374, startOrbit(), 0.00733760837867076, 0.613, "Prometheus", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.PANDORA.ordinal()] = new Satellite(0.00094733968707156, startOrbit(), 0.00636553205500071, 0.629, "Pandora", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.PAN.ordinal()] = new Satellite(0.00089292714789034, startOrbit(), 0.00200686724886722, 0.575, "Pan", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.YMIR.ordinal()] = new Satellite(0.154684019861069, startOrbit(), 0.00141107853435976, -1315.5, "Ymir", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.PAALIAQ.ordinal()] = new Satellite(0.1016057242696, startOrbit(), 0.00172465154199526, 686.95, "Paaliaq", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.TARVOS.ordinal()] = new Satellite(0.120208930232909, startOrbit(), 0.00117589877863314, 926.23, "Tarvos", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.IJIRAQ.ordinal()] = new Satellite(0.074359347156252, startOrbit(), 0.000940719022906508, 451.42, "Ijiraq", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.SUTTUNGR.ordinal()] = new Satellite(0.130075380826457, startOrbit(), 0.00054875276336213, -1016.6, "Suttungr", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.KIVIUQ.ordinal()] = new Satellite(0.07426576293653, startOrbit(), 0.00125429203054201, 449.22, "Kiviuq", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.MUNDILFARI.ordinal()] = new Satellite(0.124520488927244, startOrbit(), 0.00054875276336213, -952.7, "Mundilfari", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.ALBIORIX.ordinal()] = new Satellite(0.108169988824386, startOrbit(), 0.00250858406108402, 783.45, "Albiorix", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.SKATHI.ordinal()] = new Satellite(0.10387848389142, startOrbit(), 0.000627146015271005, -728.2, "Skathi", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.ERRIAPUS.ordinal()] = new Satellite(0.115930794474189, startOrbit(), 0.000783932519088757, 871.19, "Erriapus", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.SIARNAQ.ordinal()] = new Satellite(0.120425510855694, startOrbit(), 0.00313573007635503, 896.44, "Siarnaq", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.THRYMR.ordinal()] = new Satellite(0.135790702816622, startOrbit(), 0.00054875276336213, -1094.1, "Thrymr", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.NARVI.ordinal()] = new Satellite(0.127053947446861, startOrbit(), 0.00054875276336213, -1003.8, "Narvi", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.METHONE.ordinal()] = new Satellite(0.00129975112019612, startOrbit(), 0.000250858406108402, 1.01, "Methone", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.PALLENE.ordinal()] = new Satellite(0.00141900415447044, startOrbit(), 0.000313573007635503, 1.154, "Pallene", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.POLYDEUCES.ordinal()] = new Satellite(0.0025214262627956, startOrbit(), 0.000195983129772189, 2.737, "Polydeuces", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.DAPHNIS.ordinal()] = new Satellite(0.0009124461422895, startOrbit(), 0.00054875276336213, 0.594, "Daphnis", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.AEGIR.ordinal()] = new Satellite(0.138711867389373, startOrbit(), 0.000470359511453254, -1117.5, "Aegir", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.BEBHIONN.ordinal()] = new Satellite(0.114433446958637, startOrbit(), 0.000470359511453254, 834.84, "Bebhionn", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.BERGELMIR.ordinal()] = new Satellite(0.129253176610328, startOrbit(), 0.000470359511453254, -1005.7, "Bergelmir", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.BESTLA.ordinal()] = new Satellite(0.134975183187616, startOrbit(), 0.00054875276336213, -1088.7, "Bestla", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.FARBAUTI.ordinal()] = new Satellite(0.136211831805371, startOrbit(), 0.000391966259544378, -1085.5, "Farbauti", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.FENRIR.ordinal()] = new Satellite(0.150095719259842, startOrbit(), 0.000313573007635503, -1260.3, "Fenrir", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.FORNJOT.ordinal()] = new Satellite(0.168090627794958, startOrbit(), 0.000470359511453254, -1494, "Fornjot", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.HATI.ordinal()] = new Satellite(0.132662316043058, startOrbit(), 0.000470359511453254, -1038.6, "Hati", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.HYRROKKIN.ordinal()] = new Satellite(0.123243732786751, startOrbit(), 0.000627146015271005, -931.8, "Hyrrokkin", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.KARI.ordinal()] = new Satellite(0.147655844959947, startOrbit(), 0.00054875276336213, -1230.9, "Kari", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.LOGE.ordinal()] = new Satellite(0.154133209882134, startOrbit(), 0.000470359511453254, -1311.3, "Loge", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.SKOLL.ordinal()] = new Satellite(0.118083231527795, startOrbit(), 0.000470359511453254, -878.2, "Skoll", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.SURTUR.ordinal()] = new Satellite(0.151766866040592, startOrbit(), 0.000470359511453254, -1297.3, "Surtur", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.ANTHE.ordinal()] = new Satellite(0.0013215428742171, startOrbit(), 0.000156786503817751, 1.0365, "Anthe", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.JARNSAXA.ordinal()] = new Satellite(0.125743768370753, startOrbit(), 0.000470359511453254, -964.74, "Jarnsaxa", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.GREIP.ordinal()] = new Satellite(0.121699593161338, startOrbit(), 0.000470359511453254, -921.19, "Greip", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.TARQEQ.ordinal()] = new Satellite(0.120382729498107, startOrbit(), 0.00054875276336213, 887.48, "Tarqeq", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.AEGAEON.ordinal()] = new Satellite(0.0011196683431025, startOrbit(), 0.0000391966259544378, 0.808, "Aegaeon", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.S2004S7.ordinal()] = new Satellite(0.140369644995877, startOrbit(), 0.000470359511453254, -1140.24, "S/2004 S 7", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.S2004S12.ordinal()] = new Satellite(0.132876222830994, startOrbit(), 0.000391966259544378, -1046.19, "S/2004 S 12", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.S2004S13.ordinal()] = new Satellite(0.123023141411692, startOrbit(), 0.000470359511453254, -933.48, "S/2004 S 13", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.S2006S1.ordinal()] = new Satellite(0.12560339204117, startOrbit(), 0.000470359511453254, -963.37, "S/2006 S 1", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.S2006S3.ordinal()] = new Satellite(0.147702637069808, startOrbit(), 0.000470359511453254, -1227.21, "S/2006 S 3", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.S2007S2.ordinal()] = new Satellite(0.111799719632175, startOrbit(), 0.000470359511453254, -808.08, "S/2007 S 2", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.S2007S3.ordinal()] = new Satellite(0.126840040658925, startOrbit(), 0.000470359511453254, -977.8, "S/2007 S 3", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
moons[Moons.S2009S1.ordinal()] = new Satellite(0.000782096693391, startOrbit(), 0.0000235179755726627, 0.471, "S/2009 S 1", "WHITE", planets[Planets.SATURN.ordinal()]);
|
||||||
|
|
||||||
|
/* Moons of Uranus */
|
||||||
|
|
||||||
|
moons[Moons.ARIEL.ordinal()] = new Satellite(0.0012760876817807, startOrbit(), 0.0907637070600963, 2.52, "Ariel", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.UMBRIEL.ordinal()] = new Satellite(0.001778100174718, startOrbit(), 0.0916730687822392, 4.144, "Umbriel", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.TITANIA.ordinal()] = new Satellite(0.0029164853617649, startOrbit(), 0.123688872861824, 8.706, "Titania", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.OBERON.ordinal()] = new Satellite(0.0039004565862705, startOrbit(), 0.119377244006836, 13.46, "Oberon", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.MIRANDA.ordinal()] = new Satellite(0.0008683278672777, startOrbit(), 0.0369702576002258, 1.413, "Miranda", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.CORDELIA.ordinal()] = new Satellite(0.0003328924387254, startOrbit(), 0.0031514087267368, 0.335, "Cordelia", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.OPHELIA.ordinal()] = new Satellite(0.0003596307872174, startOrbit(), 0.00335523118169988, 0.376, "Ophelia", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.BIANCA.ordinal()] = new Satellite(0.0003957275576816, startOrbit(), 0.00402941314811621, 0.435, "Bianca", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.CRESSIDA.ordinal()] = new Satellite(0.0004131074842014, startOrbit(), 0.0062401028519465, 0.464, "Cressida", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.DESDEMONA.ordinal()] = new Satellite(0.0004191236126121, startOrbit(), 0.00501716812216804, 0.474, "Desdemona", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.JULIET.ordinal()] = new Satellite(0.0004304874107212, startOrbit(), 0.00733760837867076, 0.493, "Juliet", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.PORTIA.ordinal()] = new Satellite(0.0004418512088303, startOrbit(), 0.01059876765808, 0.513, "Portia", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.ROSALIND.ordinal()] = new Satellite(0.0004672526398977, startOrbit(), 0.00564431413743905, 0.558, "Rosalind", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.BELINDA.ordinal()] = new Satellite(0.0005033494103619, startOrbit(), 0.00631849610385538, 0.624, "Belinda", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.PUCK.ordinal()] = new Satellite(0.000574874492578, startOrbit(), 0.0126997068092379, 0.762, "Puck", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.CALIBAN.ordinal()] = new Satellite(0.0483369179451253, startOrbit(), 0.00768253868706982, -579.73, "Caliban", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.SYCORAX.ordinal()] = new Satellite(0.0814142604058662, startOrbit(), 0.0117589877863314, -1288.38, "Sycorax", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.PROSPERO.ordinal()] = new Satellite(0.108664648271488, startOrbit(), 0.00235179755726627, -1978.29, "Prospero", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.SETEBOS.ordinal()] = new Satellite(0.116432138508414, startOrbit(), 0.00235179755726627, -2225.21, "Setebos", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.STEPHANO.ordinal()] = new Satellite(0.053503435332492, startOrbit(), 0.00156786503817751, -677.36, "Stephano", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.TRINCULO.ordinal()] = new Satellite(0.056845728893992, startOrbit(), 0.000783932519088757, -749.24, "Trinculo", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.FRANCISCO.ordinal()] = new Satellite(0.028583294537948, startOrbit(), 0.000940719022906508, -266.56, "Francisco", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.MARGARET.ordinal()] = new Satellite(0.095890402279435, startOrbit(), 0.000862325770997632, 1687.01, "Margaret", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.FERDINAND.ordinal()] = new Satellite(0.139714555457823, startOrbit(), 0.000940719022906508, -2887.21, "Ferdinand", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.PERDITA.ordinal()] = new Satellite(0.000510816094178291, startOrbit(), 0.00156786503817751, 0.638, "Perdita", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.MAB.ordinal()] = new Satellite(0.000653324807053528, startOrbit(), 0.000783932519088757, 0.923, "Mab", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
moons[Moons.CUPID.ordinal()] = new Satellite(0.000497279805254216, startOrbit(), 0.000783932519088757, 0.613, "Cupid", "WHITE", planets[Planets.URANUS.ordinal()]);
|
||||||
|
|
||||||
|
/* Moons of Neptune */
|
||||||
|
|
||||||
|
moons[Moons.TRITON.ordinal()] = new Satellite(0.0023716915112404, startOrbit(), 0.212194854266945, -5.877, "Triton", "WHITE", planets[Planets.NEPTUNE.ordinal()]);
|
||||||
|
moons[Moons.NEREID.ordinal()] = new Satellite(0.0368576101705399, startOrbit(), 0.0266537056490177, 360.14, "Nereid", "WHITE", planets[Planets.NEPTUNE.ordinal()]);
|
||||||
|
moons[Moons.NAIAD.ordinal()] = new Satellite(0.000322377583180921, startOrbit(), 0.0051739546259858, 0.294, "Naiad", "WHITE", planets[Planets.NEPTUNE.ordinal()]);
|
||||||
|
moons[Moons.THALASSA.ordinal()] = new Satellite(0.000334730700184225, startOrbit(), 0.00642824665652781, 0.311, "Thalassa", "WHITE", planets[Planets.NEPTUNE.ordinal()]);
|
||||||
|
moons[Moons.DESPINA.ordinal()] = new Satellite(0.000351114623222698, startOrbit(), 0.0117589877863314, 0.335, "Despina", "WHITE", planets[Planets.NEPTUNE.ordinal()]);
|
||||||
|
moons[Moons.GALATEA.ordinal()] = new Satellite(0.000414130226031219, startOrbit(), 0.0137972123359621, 0.429, "Galatea", "WHITE", planets[Planets.NEPTUNE.ordinal()]);
|
||||||
|
moons[Moons.LARISSA.ordinal()] = new Satellite(0.000491638013722404, startOrbit(), 0.0152082908703219, 0.555, "Larissa", "WHITE", planets[Planets.NEPTUNE.ordinal()]);
|
||||||
|
moons[Moons.PROTEUS.ordinal()] = new Satellite(0.000786421621259581, startOrbit(), 0.0329251658017278, 1.122, "Proteus", "WHITE", planets[Planets.NEPTUNE.ordinal()]);
|
||||||
|
moons[Moons.HALIMEDE.ordinal()] = new Satellite(0.105135186270544, startOrbit(), 0.00486038161835029, -1879.71, "Halimede", "WHITE", planets[Planets.NEPTUNE.ordinal()]);
|
||||||
|
moons[Moons.PSAMATHE.ordinal()] = new Satellite(0.312136795708485, startOrbit(), 0.00313573007635503, -9115.91, "Psamathe", "WHITE", planets[Planets.NEPTUNE.ordinal()]);
|
||||||
|
moons[Moons.SAO.ordinal()] = new Satellite(0.149881812471906, startOrbit(), 0.00344930308399053, 2914.07, "Sao", "WHITE", planets[Planets.NEPTUNE.ordinal()]);
|
||||||
|
moons[Moons.LAOMEDEIA.ordinal()] = new Satellite(0.157562403076233, startOrbit(), 0.00329251658017278, 3167.85, "Laomedeia", "WHITE", planets[Planets.NEPTUNE.ordinal()]);
|
||||||
|
moons[Moons.NESO.ordinal()] = new Satellite(0.323447117120601, startOrbit(), 0.00470359511453254, -9373.99, "Neso", "WHITE", planets[Planets.NEPTUNE.ordinal()]);
|
||||||
|
moons[Moons.S2004N1.ordinal()] = new Satellite(0.000703773386070809, startOrbit(), 0.00148947178626864, 0.9362, "S/2004 N 1", "WHITE", planets[Planets.NEPTUNE.ordinal()]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
** Returns a random starting position in the body in question's orbit.
|
||||||
|
**
|
||||||
|
** @return the angle in the orbit.
|
||||||
|
**/
|
||||||
|
private static int startOrbit() {
|
||||||
|
return (0 + (int)(Math.random() * ((360 - 0) + 1)));
|
||||||
|
}
|
||||||
|
}
|
360
src/SolarSystem.java
Executable file
360
src/SolarSystem.java
Executable file
|
@ -0,0 +1,360 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Solar 1.0 *
|
||||||
|
* Copyright © 2015 Ben Goldsworthy (rumps) *
|
||||||
|
* *
|
||||||
|
* A program to simulate the motion of the Sol system *
|
||||||
|
* *
|
||||||
|
* This file is part of Solar. *
|
||||||
|
* *
|
||||||
|
* Solar is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* Solar is distributed in the hope that it will be useful, *
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
|
* GNU General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with Solar. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
** This class provides a graphical user interface to a model of the solar
|
||||||
|
** system (with some minor edits by Ben Goldsworthy).
|
||||||
|
**/
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
import java.awt.*;
|
||||||
|
import java.awt.image.*;
|
||||||
|
import java.awt.event.*;
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
** @author Joe Finney
|
||||||
|
** @author Ben Goldsworthy (rumps) <me+modelsolar@bengoldsworthy.net>
|
||||||
|
** @version 1.1
|
||||||
|
**/
|
||||||
|
public class SolarSystem extends JFrame implements MouseWheelListener,
|
||||||
|
KeyListener
|
||||||
|
{
|
||||||
|
private int width = 300;
|
||||||
|
private int height = 300;
|
||||||
|
private boolean exiting = false;
|
||||||
|
private double zoom = 2.0;
|
||||||
|
private int focus = 1;
|
||||||
|
|
||||||
|
private Vector<SolarObject> things = new Vector<SolarObject>();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a view of the Solar System.
|
||||||
|
* Once an instance of the SolarSystem class is created,
|
||||||
|
* a window of the appropriate size is displayed, and
|
||||||
|
* objects can be displayed in the solar system
|
||||||
|
*/
|
||||||
|
public SolarSystem()
|
||||||
|
{
|
||||||
|
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
|
||||||
|
int width = (int)screenSize.getWidth();
|
||||||
|
int height = (int)screenSize.getHeight();
|
||||||
|
|
||||||
|
this.width = width;
|
||||||
|
this.height = height;
|
||||||
|
|
||||||
|
this.setTitle("The Solar System");
|
||||||
|
this.setFocusable(true);
|
||||||
|
this.setSize(width, height);
|
||||||
|
this.setBackground(Color.BLACK);
|
||||||
|
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
|
this.setVisible(true);
|
||||||
|
|
||||||
|
this.addMouseWheelListener(this);
|
||||||
|
this.addKeyListener(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A method called by the operating system to draw onto the screen -
|
||||||
|
* <p><B>YOU DO NOT (AND SHOULD NOT) NEED TO CALL THIS METHOD.</b></p>
|
||||||
|
*/
|
||||||
|
public void paint (Graphics gr)
|
||||||
|
{
|
||||||
|
BufferedImage i = new BufferedImage(this.getWidth(), this.getHeight(),
|
||||||
|
BufferedImage.TYPE_INT_ARGB);
|
||||||
|
Graphics2D g = i.createGraphics();
|
||||||
|
|
||||||
|
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
|
||||||
|
RenderingHints.VALUE_ANTIALIAS_ON);
|
||||||
|
|
||||||
|
synchronized (this)
|
||||||
|
{
|
||||||
|
if (!this.exiting)
|
||||||
|
{
|
||||||
|
g.clearRect(0,0,width,height);
|
||||||
|
for(SolarObject t : things)
|
||||||
|
{
|
||||||
|
g.setColor(t.col);
|
||||||
|
g.fillOval(t.x, t.y, t.diameter, t.diameter);
|
||||||
|
|
||||||
|
try{ Thread.sleep(0); } catch (Exception e) {} }
|
||||||
|
}
|
||||||
|
|
||||||
|
gr.drawImage(i, 0, 0, this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Shouldn't really handle colour this way, but the student's haven't been
|
||||||
|
// introduced to constants properly yet, and Color.getColor() doesn't seem
|
||||||
|
// to work... hmmm....
|
||||||
|
//
|
||||||
|
private Color getColourFromString(String col)
|
||||||
|
{
|
||||||
|
Color colour = Color.WHITE;
|
||||||
|
col = col.toUpperCase();
|
||||||
|
|
||||||
|
if (col.equals("BLACK"))
|
||||||
|
colour = Color.BLACK;
|
||||||
|
|
||||||
|
if (col.equals("BLUE"))
|
||||||
|
colour = Color.BLUE;
|
||||||
|
|
||||||
|
if (col.equals("CYAN"))
|
||||||
|
colour = Color.CYAN;
|
||||||
|
|
||||||
|
if (col.equals("DARKGREY"))
|
||||||
|
colour = Color.DARK_GRAY;
|
||||||
|
|
||||||
|
if (col.equals("GREY"))
|
||||||
|
colour = Color.GRAY;
|
||||||
|
|
||||||
|
if (col.equals("GREEN"))
|
||||||
|
colour = Color.GREEN;
|
||||||
|
|
||||||
|
if (col.equals("LIGHTGREY"))
|
||||||
|
colour = Color.LIGHT_GRAY;
|
||||||
|
|
||||||
|
if (col.equals("MAGENTA"))
|
||||||
|
colour = Color.MAGENTA;
|
||||||
|
|
||||||
|
if (col.equals("ORANGE"))
|
||||||
|
colour = Color.ORANGE;
|
||||||
|
|
||||||
|
if (col.equals("PINK"))
|
||||||
|
colour = Color.PINK;
|
||||||
|
|
||||||
|
if (col.equals("RED"))
|
||||||
|
colour = Color.RED;
|
||||||
|
|
||||||
|
if (col.equals("WHITE"))
|
||||||
|
colour = Color.WHITE;
|
||||||
|
|
||||||
|
if (col.equals("YELLOW"))
|
||||||
|
colour = Color.YELLOW;
|
||||||
|
|
||||||
|
return colour;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Draws a round shape in the window at the given co-ordinates that
|
||||||
|
* represents an object in the solar system.
|
||||||
|
* The SolarSystem class uses <i>Polar Co-ordinates</i> to represent the
|
||||||
|
* location of objects in the solar system.
|
||||||
|
*
|
||||||
|
* @param distance the distance from the sun to the object.
|
||||||
|
* @param angle the angle (in degrees) that represents how far the planet is
|
||||||
|
* around its orbit of the sun.
|
||||||
|
* @param diameter the size of the object.
|
||||||
|
* @param col the colour of this object, as a string. Case insentive. <p>One
|
||||||
|
* of: BLACK, BLUE, CYAN, DARK_GRAY, GRAY, GREEN, LIGHT_GRAY,
|
||||||
|
* MAGENTA, ORANGE, PINK, RED, WHITE, YELLOW</p>
|
||||||
|
*/
|
||||||
|
public void drawSolarObject(double distance, double angle, double diameter,
|
||||||
|
String col)
|
||||||
|
{
|
||||||
|
Color colour = this.getColourFromString(col);
|
||||||
|
double centreOfRotationX = ((double) width) / 2.0;
|
||||||
|
double centreOfRotationY = ((double) height) / 2.0;
|
||||||
|
|
||||||
|
double rads = Math.toRadians(angle);
|
||||||
|
double x = (int) (centreOfRotationX + distance*Math.sin(rads))-diameter/2;
|
||||||
|
double y = (int) (centreOfRotationY + distance*Math.cos(rads))-diameter/2;
|
||||||
|
|
||||||
|
synchronized (this)
|
||||||
|
{
|
||||||
|
if (things.size() > 1000)
|
||||||
|
{
|
||||||
|
System.out.println("\n\n");
|
||||||
|
System.out.println(" ********************************************************* ");
|
||||||
|
System.out.println(" ***** Only 1000 Entities Supported per Solar System ***** ");
|
||||||
|
System.out.println(" ********************************************************* ");
|
||||||
|
System.out.println("\n\n");
|
||||||
|
System.out.println("If you are't trying to add this many things");
|
||||||
|
System.out.println("to your SolarSystem, then you have probably");
|
||||||
|
System.out.println("forgotten to call the finishedDrawing() method");
|
||||||
|
System.out.println("See the JavaDOC documentation for more information");
|
||||||
|
System.out.println("\n-- Joe");
|
||||||
|
System.out.println("\n\n");
|
||||||
|
|
||||||
|
this.dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SolarObject t = new SolarObject((int)x, (int)y, (int)diameter, colour);
|
||||||
|
things.add(t);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Draws a round shape in the window at the given co-ordinates.
|
||||||
|
* The SolarSystem class uses <i>Polar Co-ordinates</i> to represent the
|
||||||
|
* location of objects in the solar system. This method operates in the same
|
||||||
|
* fashion as drawSolarObject, but provides additional co-ordinates to allow
|
||||||
|
* the programmer to use an arbitrary point about which the object orbits
|
||||||
|
* (e.g. a planet rather than the sun).
|
||||||
|
*
|
||||||
|
* @param distance the distance from this object to the point about which it
|
||||||
|
* is orbiting.
|
||||||
|
* @param angle the angle (in degrees) that represents how far the object is
|
||||||
|
* around its orbit.
|
||||||
|
* @param diameter the size of the object.
|
||||||
|
* @param col the colour of this object, as a string. Case insentive. <p>One
|
||||||
|
* of: BLACK, BLUE, CYAN, DARK_GRAY, GRAY, GREEN, LIGHT_GRAY,
|
||||||
|
* MAGENTA, ORANGE, PINK, RED, WHITE, YELLOW</p>
|
||||||
|
* @param centreOfRotationDistance the distance part of the polar co-ordinate
|
||||||
|
* about which this object orbits.
|
||||||
|
* @param centreOfRotationAngle the angular part of the polar co-ordinate
|
||||||
|
* about which this object orbits.
|
||||||
|
*/
|
||||||
|
public void drawSolarObjectAbout(double distance, double angle,
|
||||||
|
double diameter, String col,
|
||||||
|
double centreOfRotationDistance,
|
||||||
|
double centreOfRotationAngle)
|
||||||
|
{
|
||||||
|
Color colour = this.getColourFromString(col);
|
||||||
|
double centrerads = Math.toRadians(centreOfRotationAngle);
|
||||||
|
double centreOfRotationX = (((double) width) / 2.0) + centreOfRotationDistance * Math.sin(centrerads);
|
||||||
|
double centreOfRotationY = (((double) height) / 2.0) + centreOfRotationDistance * Math.cos(centrerads);
|
||||||
|
|
||||||
|
double rads = Math.toRadians(angle);
|
||||||
|
double x = (int) (centreOfRotationX + distance * Math.sin(rads)) - diameter / 2;
|
||||||
|
double y = (int) (centreOfRotationY + distance * Math.cos(rads)) - diameter / 2;
|
||||||
|
|
||||||
|
synchronized (this)
|
||||||
|
{
|
||||||
|
if (things.size() > 1000)
|
||||||
|
{
|
||||||
|
System.out.println("\n\n");
|
||||||
|
System.out.println(" ********************************************************* ");
|
||||||
|
System.out.println(" ***** Only 1000 Entities Supported per Solar System ***** ");
|
||||||
|
System.out.println(" ********************************************************* ");
|
||||||
|
System.out.println("\n\n");
|
||||||
|
System.out.println("If you are't trying to add this many things");
|
||||||
|
System.out.println("to your SolarSystem, then you have probably");
|
||||||
|
System.out.println("forgotten to call the finishedDrawing() method");
|
||||||
|
System.out.println("See the JavaDOC documentation for more information");
|
||||||
|
System.out.println("\n-- Joe");
|
||||||
|
System.out.println("\n\n");
|
||||||
|
|
||||||
|
this.dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SolarObject t = new SolarObject((int)x, (int)y, (int)diameter, colour);
|
||||||
|
things.add(t);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Makes all objects drawn recently drawn to be made visible on the screen.
|
||||||
|
*
|
||||||
|
* Once called, all suns, planets and moons are displayed in the window.
|
||||||
|
*/
|
||||||
|
public void finishedDrawing()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
this.repaint();
|
||||||
|
Thread.sleep(30);
|
||||||
|
}
|
||||||
|
catch (Exception e) { }
|
||||||
|
|
||||||
|
synchronized (this)
|
||||||
|
{
|
||||||
|
things.clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private class SolarObject
|
||||||
|
{
|
||||||
|
public int x;
|
||||||
|
public int y;
|
||||||
|
public int diameter;
|
||||||
|
public Color col;
|
||||||
|
|
||||||
|
public SolarObject(int x, int y, int diameter, Color col)
|
||||||
|
{
|
||||||
|
this.x = x;
|
||||||
|
this.y = y;
|
||||||
|
this.diameter = diameter;
|
||||||
|
this.col = col;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void mouseWheelMoved(MouseWheelEvent e) {
|
||||||
|
double notches = e.getWheelRotation();
|
||||||
|
|
||||||
|
switch(this.focus) {
|
||||||
|
case 1:
|
||||||
|
this.zoom -= (notches/10);
|
||||||
|
break;
|
||||||
|
case 2:case 3:case 4:case 5:case 8:case 9:
|
||||||
|
this.zoom -= (notches*10);
|
||||||
|
break;
|
||||||
|
case 6:case 7:
|
||||||
|
this.zoom -= (notches*3);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Handle the key typed event from the text field. */
|
||||||
|
public void keyTyped(KeyEvent e) {
|
||||||
|
char c = e.getKeyChar();
|
||||||
|
switch(c) {
|
||||||
|
case '1':case '2':case '3':case '4':
|
||||||
|
case '5':case '6':case '7':case '8':
|
||||||
|
case '9':
|
||||||
|
this.focus = (int)c - 48;
|
||||||
|
default:
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Handle the key-pressed event from the text field. */
|
||||||
|
public void keyPressed(KeyEvent e) {
|
||||||
|
}
|
||||||
|
public void keyReleased(KeyEvent e) {
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getZoom() {
|
||||||
|
return this.zoom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getFocus() {
|
||||||
|
return this.focus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getHeight() {
|
||||||
|
return this.height;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getWidth() {
|
||||||
|
return this.width;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setZoom(double zoom) {
|
||||||
|
this.zoom = zoom;
|
||||||
|
}
|
||||||
|
}
|
Reference in a new issue