com.partnersoft.maps.model
Class RasterTiling

java.lang.Object
  extended by com.partnersoft.maps.model.RasterTiling
All Implemented Interfaces:
Coggable

public class RasterTiling
extends java.lang.Object
implements Coggable

A raster tiling at a specific level-of-detail.

Copyright 2005-2009 Partner Software, Inc.

Version:
$Id: RasterTiling.java 2133 2009-09-28 20:58:36Z paul $
Author:
Paul Reavis

Constructor Summary
RasterTiling()
           
RasterTiling(Cog newState)
           
 
Method Summary
 int getCacheSize()
          Cache size for this LOD.
 Grid getGrid()
           
 double getOriginX()
          Gets the value of originX
 double getOriginY()
          Gets the value of originY
 int getPixelHeight()
          Gets the value of pixelHeight
 int getPixelWidth()
          Gets the value of pixelWidth
 double getScale()
          Gets the value of scale
 double getScaleThreshold()
          Gets the value of scaleThreshold
 void setCacheSize(int cacheSize)
          Cache size for this LOD.
 void setOriginX(double argOriginX)
          Sets the value of originX
 void setOriginY(double argOriginY)
          Sets the value of originY
 void setPixelHeight(int argPixelHeight)
          Sets the value of pixelHeight
 void setPixelWidth(int argPixelWidth)
          Sets the value of pixelWidth
 void setScale(double argScale)
          Sets the value of scale
 void setScaleThreshold(double argScaleThreshold)
          Sets the value of scaleThreshold
 Cog toCog()
          Returns the complete internal state of this object in the form of a Cog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RasterTiling

public RasterTiling()

RasterTiling

public RasterTiling(Cog newState)
Method Detail

toCog

public Cog toCog()
Description copied from interface: Coggable
Returns the complete internal state of this object in the form of a Cog.

Specified by:
toCog in interface Coggable
Returns:
Cog representing the internal state of this object

getGrid

public Grid getGrid()

getOriginX

public double getOriginX()
Gets the value of originX

Returns:
the value of originX

setOriginX

public void setOriginX(double argOriginX)
Sets the value of originX

Parameters:
argOriginX - Value to assign to this.originX

getOriginY

public double getOriginY()
Gets the value of originY

Returns:
the value of originY

setOriginY

public void setOriginY(double argOriginY)
Sets the value of originY

Parameters:
argOriginY - Value to assign to this.originY

getScaleThreshold

public double getScaleThreshold()
Gets the value of scaleThreshold

Returns:
the value of scaleThreshold

setScaleThreshold

public void setScaleThreshold(double argScaleThreshold)
Sets the value of scaleThreshold

Parameters:
argScaleThreshold - Value to assign to this.scaleThreshold

getScale

public double getScale()
Gets the value of scale

Returns:
the value of scale

setScale

public void setScale(double argScale)
Sets the value of scale

Parameters:
argScale - Value to assign to this.scale

getPixelWidth

public int getPixelWidth()
Gets the value of pixelWidth

Returns:
the value of pixelWidth

setPixelWidth

public void setPixelWidth(int argPixelWidth)
Sets the value of pixelWidth

Parameters:
argPixelWidth - Value to assign to this.pixelWidth

getPixelHeight

public int getPixelHeight()
Gets the value of pixelHeight

Returns:
the value of pixelHeight

setPixelHeight

public void setPixelHeight(int argPixelHeight)
Sets the value of pixelHeight

Parameters:
argPixelHeight - Value to assign to this.pixelHeight

getCacheSize

public int getCacheSize()
Cache size for this LOD. This is the maximum number of images kept in memory, so figure multiply it by (pixelHeight * pixelWidth * 4) bytes for color or (pixelHeight * pixelWidth) bytes for monochrome.

Returns:

setCacheSize

public void setCacheSize(int cacheSize)
Cache size for this LOD. This is the maximum number of images kept in memory, so figure multiply it by (pixelHeight * pixelWidth * 4) bytes for color or (pixelHeight * pixelWidth) bytes for monochrome. Setting this to zero or negative will use the default, which is (currently) the square of the scale.