|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.ows.acetate.AcetateImageMarker
A graphic object that can be drawn onto an acetate layer of an IMF map.
| Constructor Summary | |
AcetateImageMarker()
Creates new AcetateImageMarker |
|
AcetateImageMarker(double x,
double y,
java.lang.String imageFileName)
Creates new AcetateSimpleMarker |
|
AcetateImageMarker(double x,
double y,
java.lang.String imageFileName,
java.lang.String label)
Creates new AcetateSimpleMarker |
|
AcetateImageMarker(Point position,
java.lang.String imageFileName)
Creates new AcetateImageMarker |
|
AcetateImageMarker(Point position,
java.lang.String imageFileName,
java.lang.String label)
Creates new AcetateImageMarker |
|
| 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. |
AcetateImageMarker |
getCopy()
Creates a copy of this object. |
java.lang.String |
getName()
Gets the progammer specified name for this object. |
java.lang.Object |
getObjectTag()
Gets the object tag. |
int |
getObjectType()
Gets the object type enumerator |
java.lang.String |
getProperty(java.lang.String name)
Gets the value of a property. |
java.lang.String[] |
getPropertyNames()
Returns a Set containing the property names. |
Geometry |
getShape()
The geometry of this object, a point in this case. |
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 |
setImageFileName(java.lang.String fileName)
The text of the marker's label, or null. |
void |
setLabel(java.lang.String label)
The text of the marker's label, or null. |
void |
setLabelBackgroundColor(java.awt.Color color)
The color of the label text background, if any. |
void |
setLabelFont(java.awt.Font font)
The font of the label text, if any. |
void |
setLabelFontColor(java.awt.Color color)
The color of the label text, if any. |
void |
setName(java.lang.String name)
Sets a name for this object. |
void |
setObjectTag(java.lang.Object tag)
Sets an object tag for this object. |
void |
setPixelOffset(int x,
int y)
Sets the offset from the origin of the image. |
void |
setPosition(double x,
double y)
Sets the position of the object. |
void |
setPosition(Point point)
Sets the position of the object. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the value of a property (programmer defined). |
void |
setUnits(int units)
Sets the units of the acetate object. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AcetateImageMarker()
public AcetateImageMarker(Point position,
java.lang.String imageFileName)
position - The position of the marker.imageFileName - The image file name on the same system as IMF.
public AcetateImageMarker(Point position,
java.lang.String imageFileName,
java.lang.String label)
position - The position of the marker.imageFileName - The image file name on the same system as IMF.label - The label, if any. Null OK.
public AcetateImageMarker(double x,
double y,
java.lang.String imageFileName)
x - The X coordinate value of the marker's position.y - The Y coordinate value of the marker's position.imageFileName - The image file name on the same system as IMF.
public AcetateImageMarker(double x,
double y,
java.lang.String imageFileName,
java.lang.String label)
x - The X coordinate value of the marker's position.y - The Y coordinate value of the marker's position.imageFileName - The image file name on the same system as IMF.label - The label, if any. Null OK.| Method Detail |
public java.lang.Object clone()
clone in interface AcetateObjectpublic AcetateImageMarker getCopy()
public void draw(java.awt.Graphics2D graphics,
java.awt.geom.AffineTransform pageTransform,
java.util.Locale locale)
draw in interface AcetateObjectgraphics - The graphics.pageTransform - The page to map coordinate transformation matrix.locale - The locale, null OK, not used by this routine.public Geometry getShape()
getShape in interface AcetateObjectpublic void setImageFileName(java.lang.String fileName)
fileName - The image file, relative to IMF.public void setLabel(java.lang.String label)
label - The text for the label.public void setLabelBackgroundColor(java.awt.Color color)
color - The color.public void setLabelFont(java.awt.Font font)
font - The font.public void setLabelFontColor(java.awt.Color color)
color - The color.public boolean isNamed(java.lang.String name)
isNamed in interface AcetateObjectname - The name.
public void setName(java.lang.String name)
name - A programmer specified name for this object.public java.lang.String getName()
getName in interface AcetateObjectpublic void setObjectTag(java.lang.Object tag)
setObjectTag in interface AcetateObjecttag - A programmer specified object to associate to this object.public java.lang.Object getObjectTag()
getObjectTag in interface AcetateObjectpublic int getObjectType()
getObjectType in interface AcetateObject
public void setPixelOffset(int x,
int y)
x - The horizontal offset.y - The vertical offset.public void setPosition(Point point)
point - The position.
public void setPosition(double x,
double y)
x - The X coordinate value.y - The Y coordinate value.public java.lang.String getProperty(java.lang.String name)
getProperty in interface AcetateObjectname - The property name
public void setProperty(java.lang.String name,
java.lang.String value)
setProperty in interface AcetateObjectname - The property namevalue - The property value.public java.lang.String[] getPropertyNames()
getPropertyNames in interface AcetateObjectpublic boolean hasProperties()
hasProperties in interface AcetateObjectpublic void setUnits(int units)
units - The units of the acetate object, either
ACETATE_OBJECT_UNITS_PIXEL or ACETATE_OBJECT_UNITS_DATABASE.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||