org.opensourcephysics.display3d.core
Class Resolution
java.lang.Object
org.opensourcephysics.display3d.core.Resolution
- Direct Known Subclasses:
- Resolution
public class Resolution
- extends java.lang.Object
Title: Resolution
Description: A class that provides resolution style hints for 3D
Elements
A resolution can be of two different types: DIVISIONS or MAX_LENGTH.
- DIVISIONS: the resolution indicates how many subdivisions
should the element have, up to three of them: n1, n2, and n3. The precise
meaning of this is left to the element, but typically consists in the
number of divisions in each coordinate direction.
- MAX_LENGTH: the resolution provides a maximum length
that each of the individual graphical pieces of the element can have.
The element can then automatically divide itself in smaller pieces,
if necessary.
- Version:
- March 2005
- Author:
- Francisco Esquembre
- See Also:
Style
Constructor Summary |
Resolution(double max)
A constructor for a resolution of type MAX_LENGTH. |
Resolution(int n1,
int n2,
int n3)
A constructor for a resolution of type DIVISIONS. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DIVISIONS
public static final int DIVISIONS
- See Also:
- Constant Field Values
MAX_LENGTH
public static final int MAX_LENGTH
- See Also:
- Constant Field Values
Resolution
public Resolution(double max)
- A constructor for a resolution of type MAX_LENGTH.
- Parameters:
max
- The maximum length.
Resolution
public Resolution(int n1,
int n2,
int n3)
- A constructor for a resolution of type DIVISIONS.
- Parameters:
n1
- int the first number of subdivisionsn2
- int the second number of subdivisionsn3
- int the thrid number of subdivisions
getType
public final int getType()
getMaxLength
public final double getMaxLength()
getN1
public final int getN1()
getN2
public final int getN2()
getN3
public final int getN3()
getLoader
public static XML.ObjectLoader getLoader()