org.opensourcephysics.displayejs
Class Group

java.lang.Object
  extended by org.opensourcephysics.displayejs.Group
Direct Known Subclasses:
GroupDrawable

public class Group
extends java.lang.Object


Constructor Summary
Group()
           
 
Method Summary
 double getSizeX()
          Returns the base size of the group in the X dimension
 double getSizeY()
          Returns the base size of the group in the Y dimension
 double getSizeZ()
          Returns the base size of the group in the Z dimension
 double getX()
          Returns the X location of the group
 double getY()
          Returns the Y location of the group
 double getZ()
          Returns the Z location of the group
 boolean isVisible()
          Whether any element of the group is visible
 void reportChange()
           
 void setSizeX(double sizex)
          Resizes the whole group in the X dimension
 void setSizeXY(double sizex, double sizey)
          Resizes the whole group in the X and Y dimensions
 void setSizeXYZ(double sizex, double sizey, double sizez)
          Resizes the whole group in the X, Y, and Z dimensions
 void setSizeY(double sizey)
          Resizes the whole group in the Y dimension
 void setSizeZ(double sizez)
          Resizes the whole group in the Z dimension
 void setVisible(boolean visible)
          Sets the visibility of the whole group at once
 void setX(double x)
          Moves the whole group to a new X location
 void setXY(double x, double y)
          Moves the whole group to a new X and Y location
 void setXYZ(double x, double y, double z)
          Moves the whole group to a new X, Y, and Z location
 void setY(double y)
          Moves the whole group to a new Y location
 void setZ(double z)
          Moves the whole group to a new Z location
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Group

public Group()
Method Detail

setX

public void setX(double x)
Moves the whole group to a new X location

Parameters:
x - the new base X location for the group

getX

public double getX()
Returns the X location of the group

Returns:
the base X location for the group

setY

public void setY(double y)
Moves the whole group to a new Y location

Parameters:
y - the new base Y location for the group

getY

public double getY()
Returns the Y location of the group

Returns:
the base Y location for the group

setZ

public void setZ(double z)
Moves the whole group to a new Z location

Parameters:
z - the new base Z location for the group

getZ

public double getZ()
Returns the Z location of the group

Returns:
the base Z location for the group

setXY

public void setXY(double x,
                  double y)
Moves the whole group to a new X and Y location

Parameters:
x - the new base X location for the group
y - the new base Y location for the group

setXYZ

public void setXYZ(double x,
                   double y,
                   double z)
Moves the whole group to a new X, Y, and Z location

Parameters:
x - the new base X location for the group
y - the new base Y location for the group
z - the new base Z location for the group

setSizeX

public void setSizeX(double sizex)
Resizes the whole group in the X dimension

Parameters:
sizex - the new base X size for the group

getSizeX

public double getSizeX()
Returns the base size of the group in the X dimension

Returns:
the base X size of the group

setSizeY

public void setSizeY(double sizey)
Resizes the whole group in the Y dimension

Parameters:
sizey - the new base Y size for the group

getSizeY

public double getSizeY()
Returns the base size of the group in the Y dimension

Returns:
the base Y size of the group

setSizeZ

public void setSizeZ(double sizez)
Resizes the whole group in the Z dimension

Parameters:
sizez - the new base Z size for the group

getSizeZ

public double getSizeZ()
Returns the base size of the group in the Z dimension

Returns:
the base Z size of the group

setSizeXY

public void setSizeXY(double sizex,
                      double sizey)
Resizes the whole group in the X and Y dimensions

Parameters:
sizex - the new base X size for the group
sizey - the new base Y size for the group

setSizeXYZ

public void setSizeXYZ(double sizex,
                       double sizey,
                       double sizez)
Resizes the whole group in the X, Y, and Z dimensions

Parameters:
sizex - the new base X size for the group
sizey - the new base Y size for the group
sizez - the new base Z size for the group

setVisible

public void setVisible(boolean visible)
Sets the visibility of the whole group at once

Parameters:
visible - the desired visibility for the group

isVisible

public boolean isVisible()
Whether any element of the group is visible

Returns:
true if any of the elements is visible, false otherwise

reportChange

public void reportChange()