com.partnersoft.v3x.apps.MapBrowser
Class SheetPixelCoord

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
                  extended by com.partnersoft.v3x.apps.MapBrowser.SheetPixelCoord
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class SheetPixelCoord
extends SheetCoord

A SheetPixelCoord is a pixel offset from top-left corner on a sheet specified by a SheetCoordinate.

It adds the following dimensions:

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.partnersoft.v3x.graphics.Coord
coords
 
Constructor Summary
SheetPixelCoord()
           
SheetPixelCoord(int x, int y, int z, int scale, int px, int py)
          Create a new SheetPixelCoord for (map, x, y, z, s, c, px, py).
SheetPixelCoord(SheetCoord sheet, int px, int py)
          Create a new SheetPixelCoord for an offset px, py on a SheetCoord.
 
Method Summary
 java.lang.Object clone()
          Clones the SheetPixelCoord.
protected  void copyState(SheetPixelCoord from)
          Copies contents from another SheetPixelCoord.
 int getPx()
          The number of pixels from left side.
 int getPy()
          The number of pixels from top.
 void setPx(int newPx)
          The number of pixels from left side.
 void setPy(int newPy)
          The number of pixels from top.
 
Methods inherited from class com.partnersoft.v3x.apps.MapBrowser.SheetCoord
copyState, equals, getContent, getS, hashCode, setContent, setS, toString
 
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

SheetPixelCoord

public SheetPixelCoord()

SheetPixelCoord

public SheetPixelCoord(int x,
                       int y,
                       int z,
                       int scale,
                       int px,
                       int py)
Create a new SheetPixelCoord for (map, x, y, z, s, c, px, py).


SheetPixelCoord

public SheetPixelCoord(SheetCoord sheet,
                       int px,
                       int py)
Create a new SheetPixelCoord for an offset px, py on a SheetCoord.

Method Detail

clone

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

Overrides:
clone in class SheetCoord

copyState

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


getPx

public int getPx()
The number of pixels from left side.


setPx

public void setPx(int newPx)
The number of pixels from left side.


getPy

public int getPy()
The number of pixels from top.


setPy

public void setPy(int newPy)
The number of pixels from top.