nl.javel.gisbeans.geom
Class GisObject

java.lang.Object
  extended by nl.javel.gisbeans.geom.GisObject
All Implemented Interfaces:
Serializable

public class GisObject
extends Object
implements Serializable

the GisObject class stores both the java2D shape as the accomplishing array of attributes.

Since:
JDK 1.0
Version:
1.0
Author:
Peter Jacobs
Paul Jacobs
See Also:
Serialized Form

Constructor Summary
GisObject(Object shape, String[] attributes)
          constructs a GisObject
 
Method Summary
 String[] getAttributes()
          returns the attributes of the shape
 Object getShape()
          returns the shape of the GisObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GisObject

public GisObject(Object shape,
                 String[] attributes)
constructs a GisObject

Parameters:
shape - the shape (either a java.awt.geom.Point2D or a java.awt.Shape
attributes - attributes
Method Detail

getShape

public Object getShape()
returns the shape of the GisObject

Returns:
Object the resulting shape

getAttributes

public String[] getAttributes()
returns the attributes of the shape

Returns:
String[] the array of Strings representing the attributes of the GisObject.