com.moximedia.ows.acetate
Interface AcetateObject

All Known Implementing Classes:
AcetateEnvelope, AcetateImageMarker, AcetateLine, AcetateNorthArrow, AcetatePolygon, AcetateScalebar, AcetateSimpleMarker, AcetateText, AcetateTextMarker

public interface AcetateObject

An interface specification of acetate objects.

Author:
Doug Cates - www.moximedia.com

Method Summary
 java.lang.Object clone()
          Creates a clone of this object.
 void draw(java.awt.Graphics2D graphics, java.awt.geom.AffineTransform pageTransform, java.util.Locale locale)
          Draws the graphic on the specified graphics device.
 java.lang.String getName()
          Gets the progammer specified name for this object.
 java.lang.Object getObjectTag()
          Gets the object tag.
 int getObjectType()
          Returns the object type.
 java.lang.String getProperty(java.lang.String name)
          Gets the value of a property.
 java.lang.String[] getPropertyNames()
          Returns an array containing the property names.
 Geometry getShape()
          Returns the object geometry.
 boolean hasProperties()
          Returns an indicator of whether the object has programmer defined properties.
 boolean isNamed(java.lang.String name)
          Returns an indicator of whether this object is named the same as the parameter.
 void setObjectTag(java.lang.Object tag)
          Sets an object tag for this object.
 void setProperty(java.lang.String name, java.lang.String value)
          Sets the value of a property (programmer defined).
 

Method Detail

clone

public java.lang.Object clone()
Creates a clone of this object. Must be cast back to the correct object type before using.

Returns:
The clone of this object.

draw

public void draw(java.awt.Graphics2D graphics,
                 java.awt.geom.AffineTransform pageTransform,
                 java.util.Locale locale)
Draws the graphic on the specified graphics device.

Parameters:
graphics - The graphics.
pageTransform - The page to map coordinate transformation matrix.
locale - The locale, null OK, not used by this routine.

isNamed

public boolean isNamed(java.lang.String name)
Returns an indicator of whether this object is named the same as the parameter.

Parameters:
name - The name.
Returns:
True if the name is the same, otherwise false.

getName

public java.lang.String getName()
Gets the progammer specified name for this object.

Returns:
The name, or "unnamed" if there isn't one set.

setObjectTag

public void setObjectTag(java.lang.Object tag)
Sets an object tag for this object.

Parameters:
tag - A programmer specified object to associate to this object.

getObjectTag

public java.lang.Object getObjectTag()
Gets the object tag.

Returns:
The object tag, or null if there isn't one set.

getObjectType

public int getObjectType()
Returns the object type.

Returns:
An enumerated value indicating the type of acetate object.

getProperty

public java.lang.String getProperty(java.lang.String name)
Gets the value of a property.

Parameters:
name - The property name
Returns:
The property value, or null.

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Sets the value of a property (programmer defined).

Parameters:
name - The property name
value - The property value.

getPropertyNames

public java.lang.String[] getPropertyNames()
Returns an array containing the property names.

Returns:
The array containing the names.

hasProperties

public boolean hasProperties()
Returns an indicator of whether the object has programmer defined properties.

Returns:
True if properties exist, otherwise false.

getShape

public Geometry getShape()
Returns the object geometry.

Returns:
The geometry, a point.


Internet Mapping Framework for OpenGIS Java Object Model API (v1.3.007)
Copyright © 2005 Moxi Media Inc. and Province of British Columbia. All Rights Reserved.