|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvGraphic
ilog.views.graphic.IlvMarker
ilog.views.maps.graphic.IlvMapMarker
public class IlvMapMarker
IlvMapMarker is an IlvMarker that reads its
attributes from an IlvPointStyle object.
| Field Summary | |
|---|---|
static int |
IlvMarkerCharacter
The Character marker type. |
static int |
IlvMarkerImage
The Image marker type. |
| Fields inherited from class ilog.views.graphic.IlvMarker |
|---|
IlvMarkerCircle, IlvMarkerCross, IlvMarkerDiamond, IlvMarkerFilledCircle, IlvMarkerFilledDiamond, IlvMarkerFilledSquare, IlvMarkerFilledTriangle, IlvMarkerPlus, IlvMarkerSquare, IlvMarkerTriangle |
| Constructor Summary | |
|---|---|
IlvMapMarker()
Constructs an IlvMapMarker instance. |
|
IlvMapMarker(IlvInputStream stream)
Reads an IlvMapMarker object from an
IlvInputStream. |
|
IlvMapMarker(IlvMapMarker source)
Creates an IlvMapMarker instance by copying an existing one. |
|
IlvMapMarker(IlvPoint p)
Constructs a IlvMapMarker at point p. |
|
IlvMapMarker(IlvPoint p,
int type)
Constructs an IlvMapMarker instance from an
IlvPoint instance and a type. |
|
IlvMapMarker(IlvPoint p,
int type,
int size)
Constructs an IlvMapMarker from an IlvPoint
instance, a type, and a size. |
|
| Method Summary | |
|---|---|
IlvGraphic |
copy()
Copies the objects. |
IlvGraphic |
copy(IlvCoordinateTransformation transform)
Copies the element and applies the specified transformation to its coordinates. |
void |
draw(Graphics dst,
IlvTransformer t)
Draws the object. |
Color |
getForegound()
Retrieves the foreground from the style. |
Color |
getForeground()
Retrieves the foreground from the style. |
int |
getSize()
Retrieves the size from the style. |
IlvMapStyle |
getStyle()
Retrieves the IlvMapStyle object attached to this graphic. |
int |
getType()
Retrieves the type from the style. |
IlvMapGeometry |
makeGeometry()
Returns an IlvMapPoint geometry. |
void |
setForeground(Color color)
Sets the foreground in the IlvPointStyle object. |
void |
setSize(int size)
Sets the size in the IlvPointStyle object. |
void |
setStyle(IlvMapStyle style)
Implements the IlvMapGraphic interface. |
void |
setType(int type)
Sets the type in the IlvPointStyle object. |
void |
write(IlvOutputStream stream)
Writes this IlvMapGraphicPath object to the
IlvOutputStream passed as parameter |
| Methods inherited from class ilog.views.graphic.IlvMarker |
|---|
applyTransform, boundingBox, DrawMarker, getPoint, makeSelection, setPoint, zoomable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int IlvMarkerCharacter
public static final int IlvMarkerImage
| Constructor Detail |
|---|
public IlvMapMarker()
IlvMapMarker instance.
public IlvMapMarker(IlvPoint p)
IlvMapMarker at point p.
p - The marker center point.public IlvMapMarker(IlvMapMarker source)
IlvMapMarker instance by copying an existing one.
source - The source marker.
public IlvMapMarker(IlvPoint p,
int type)
IlvMapMarker instance from an
IlvPoint instance and a type.
p - The point to place the marker.type - The type of the shape of the marker.
public IlvMapMarker(IlvPoint p,
int type,
int size)
IlvMapMarker from an IlvPoint
instance, a type, and a size.
p - The point to place the marker.type - The type of the marker shape.size - The size of the marker.
public IlvMapMarker(IlvInputStream stream)
throws IlvReadFileException
IlvMapMarker object from an
IlvInputStream.
stream - The stream to read from.
IlvReadFileException - if there is a problem reading from
stream.| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
IlvMapGraphicPath object to the
IlvOutputStream passed as parameter
write in interface IlvPersistentObjectwrite in class IlvMarkerstream - The stream to write to.
IOException - if there is a problem writing to stream.public Color getForegound()
IlvPointStyle object.public void setForeground(Color color)
IlvPointStyle object.
setForeground in class IlvMarkercolor - The foreground to be set in the IlvPointStyle object.IlvGraphic.draw(Graphics, IlvTransformer),
IlvGraphic.setBackground(Color),
IlvGraphic.setFillOn(boolean),
IlvGraphic.setStrokeOn(boolean),
IlvGraphicpublic int getSize()
getSize in class IlvMarkerIlvPointStyle object.IlvMarker.setSize(int)public void setSize(int size)
IlvPointStyle object.
setSize in class IlvMarkersize - The size to be set in the IlvPointStyle object.IlvMarker.getSize()public int getType()
getType in class IlvMarkerIlvPointStyle object.IlvMarker.setType(int)public void setType(int type)
IlvPointStyle object.
setType in class IlvMarkertype - The type to be set in the IlvGraphicPathStyle object.IlvMarker.getType(),
IlvMarker.IlvMarkerSquare,
IlvMarker.IlvMarkerDiamond,
IlvMarker.IlvMarkerCircle,
IlvMarker.IlvMarkerCross,
IlvMarker.IlvMarkerPlus,
IlvMarker.IlvMarkerFilledSquare,
IlvMarker.IlvMarkerFilledCircle,
IlvMarker.IlvMarkerFilledDiamond,
IlvMarker.IlvMarkerTriangle,
IlvMarker.IlvMarkerFilledTrianglepublic void setStyle(IlvMapStyle style)
IlvMapGraphic interface.
setStyle in interface IlvMapGraphicstyle - The IlvMapStyle to set. Must be an
IlvPointStyle instance.public IlvMapStyle getStyle()
IlvMapStyle object attached to this graphic. If no
style has been set, a new IlvPointStyle instance is created.
getStyle in interface IlvMapGraphicIlvMapStyle object attached to this graphic. This
must be an IlvPointStyle instance.public IlvGraphic copy()
copy in class IlvMarkerIlvMapMarker instance.IlvGraphic
public IlvGraphic copy(IlvCoordinateTransformation transform)
throws IlvCoordinateTransformationException
copy in interface IlvMapGraphictransform - Transformation to apply.
IlvCoordinateTransformationExceptionIlvMapGraphic.copy(ilog.views.maps.srs.coordtrans.IlvCoordinateTransformation)public Color getForeground()
getForeground in class IlvMarker
public void draw(Graphics dst,
IlvTransformer t)
draw in class IlvMarkerdst - The destination Graphics.t - The transformation used to draw the object.IlvGraphic.boundingBox(ilog.views.IlvTransformer),
IlvGraphic.zoomable(),
IlvGraphicpublic IlvMapGeometry makeGeometry()
IlvMapPoint geometry.
makeGeometry in interface IlvMapGraphicIlvMapPoint geometry.IlvMapGraphic.makeGeometry()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||