org.opensourcephysics.display3d.core
Class Resolution

java.lang.Object
  extended by 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.

Version:
March 2005
Author:
Francisco Esquembre
See Also:
Style

Nested Class Summary
static class Resolution.ResolutionLoader
           
 
Field Summary
static int DIVISIONS
           
static int MAX_LENGTH
           
 
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.
 
Method Summary
static XML.ObjectLoader getLoader()
           
 double getMaxLength()
           
 int getN1()
           
 int getN2()
           
 int getN3()
           
 int getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIVISIONS

public static final int DIVISIONS
See Also:
Constant Field Values

MAX_LENGTH

public static final int MAX_LENGTH
See Also:
Constant Field Values
Constructor Detail

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 subdivisions
n2 - int the second number of subdivisions
n3 - int the thrid number of subdivisions
Method Detail

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()