com.partnersoft.v3x.apps.MapBrowser
Class SheetCoord

java.lang.Object
  extended by com.partnersoft.v3x.graphics.Coord
      extended by com.partnersoft.v3x.graphics.Coord2D
          extended by com.partnersoft.v3x.graphics.Coord3D
              extended by com.partnersoft.v3x.apps.MapBrowser.SheetCoord
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
SheetPixelCoord

public class SheetCoord
extends Coord3D

A SheetCoord is a 4-dimensional coordinate or offset in a single map's "sheet" (displayable picture) space. Dimensions 1-3 are the usual x, y, and z, dimension 4 is s (scale).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.partnersoft.v3x.graphics.Coord
coords
 
Constructor Summary
SheetCoord()
          Creates a new, blank SheetCoord.
SheetCoord(double x, double y, double z, int s)
          Create a new SheetCoord for (x, y, z, s, c).
SheetCoord(double x, double y, double z, int s, java.lang.String content)
          Create a new SheetCoord for (x, y, z, s, c).
 
Method Summary
 java.lang.Object clone()
          Clones the sheetCoord.
protected  void copyState(SheetCoord from)
          Copies contents from another SheetCoord.
 boolean equals(java.lang.Object nother)
           
 java.lang.String getContent()
           
 int getS()
          The scale number of the sheet.
 int hashCode()
          Hash value for the object.
 void setContent(java.lang.String newContent)
           
 void setS(double newScale)
          Sets the scale number of the sheet.
 java.lang.String toString()
          Returns a textual version of the coordinate.
 
Methods inherited from class com.partnersoft.v3x.graphics.Coord3D
getZ, setZ, toXyPoint, toXyzPoint
 
Methods inherited from class com.partnersoft.v3x.graphics.Coord2D
getX, getY, setX, setY
 
Methods inherited from class com.partnersoft.v3x.graphics.Coord
at, copyState, distance, getCoords, getDimensions, round, setCoords, stretch, translate, truncate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SheetCoord

public SheetCoord()
Creates a new, blank SheetCoord.


SheetCoord

public SheetCoord(double x,
                  double y,
                  double z,
                  int s,
                  java.lang.String content)
Create a new SheetCoord for (x, y, z, s, c).


SheetCoord

public SheetCoord(double x,
                  double y,
                  double z,
                  int s)
Create a new SheetCoord for (x, y, z, s, c).

Method Detail

hashCode

public int hashCode()
Description copied from class: Coord
Hash value for the object.

Overrides:
hashCode in class Coord

equals

public boolean equals(java.lang.Object nother)
Overrides:
equals in class Coord

toString

public java.lang.String toString()
Returns a textual version of the coordinate.

Overrides:
toString in class Coord

clone

public java.lang.Object clone()
Clones the sheetCoord.

Overrides:
clone in class Coord3D

copyState

protected void copyState(SheetCoord from)
Copies contents from another SheetCoord. Used to make subclass cloning easier. Subclasses should call this from their clone() routine.


getS

public int getS()
The scale number of the sheet.


setS

public void setS(double newScale)
Sets the scale number of the sheet.


getContent

public java.lang.String getContent()

setContent

public void setContent(java.lang.String newContent)