uk.me.parabola.imgfmt.app.trergn
Class Overview

java.lang.Object
  extended by uk.me.parabola.imgfmt.app.trergn.Overview
All Implemented Interfaces:
java.lang.Comparable<Overview>
Direct Known Subclasses:
PointOverview, PolygonOverview, PolylineOverview

public abstract class Overview
extends java.lang.Object
implements java.lang.Comparable<Overview>

This is for polyline, polygon and point overviews. A simple record that holds the type of an object and the highest level at which it is found. It kind of declares which objects will appear in the map and if they are not included here they will not be shown.

Author:
Steve Ratcliffe

Field Summary
static int LINE_KIND
           
static int POINT_KIND
           
static int SHAPE_KIND
           
 
Constructor Summary
protected Overview(int kind, int fullType, int minres)
           
 
Method Summary
 int compareTo(Overview ov)
          Compares this object with the specified object for order.
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 int getKind()
           
 int getMinResolution()
           
 boolean hasExtType()
           
 int hashCode()
          Returns a hash code value for the object.
 void setMaxLevel(int maxLevel)
           
 void write(ImgFileWriter file)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POINT_KIND

public static final int POINT_KIND
See Also:
Constant Field Values

LINE_KIND

public static final int LINE_KIND
See Also:
Constant Field Values

SHAPE_KIND

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

Overview

protected Overview(int kind,
                   int fullType,
                   int minres)
Method Detail

write

public void write(ImgFileWriter file)

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this object.
See Also:
Object.equals(Object)

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
hashCode()

getKind

public int getKind()

compareTo

public int compareTo(Overview ov)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Specified by:
compareTo in interface java.lang.Comparable<Overview>
Parameters:
ov - the object to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
java.lang.ClassCastException - if the specified object's type prevents it from being compared to this object.

setMaxLevel

public void setMaxLevel(int maxLevel)

getMinResolution

public int getMinResolution()

hasExtType

public boolean hasExtType()