public class IlvMapMarker extends IlvMarker implements IlvMapGraphic
IlvMapMarker
is an IlvMarker
that reads its
attributes from an IlvPointStyle
object.Modifier and Type | Field and Description |
---|---|
static int |
IlvMarkerCharacter
The Character marker type.
|
static int |
IlvMarkerImage
The Image marker type.
|
IlvMarkerCircle, IlvMarkerCross, IlvMarkerDiamond, IlvMarkerFilledCircle, IlvMarkerFilledDiamond, IlvMarkerFilledSquare, IlvMarkerFilledTriangle, IlvMarkerPlus, IlvMarkerSquare, IlvMarkerTriangle
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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()
Deprecated.
Since JViews 8.8, use getForeground
|
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 |
applyTransform, boundingBox, DrawMarker, getPoint, makeSelection, setPoint, zoomable
addActionListener, addNamedPropertyListener, allViewsRemoved, baseTextDirectionChanged, blinkingStateOn, boundingBox, callDraw, componentOrientationChanged, contains, getAndAssociateObjectInteractor, getBaseTextDirection, getBlinkingAction, getBlinkingObjectOwner, getBlinkingOffPeriod, getBlinkingOnPeriod, getCenter, getComponentOrientation, getDefaultInteractor, getGraphicBag, GetGraphicObject, getIntersectionWithOutline, getLocale, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getProperty, getResolvedBaseTextDirection, getToolTipBaseTextDirection, getToolTipText, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, getULocale, getZOrderIndex, hasProperty, inside, intersects, invalidateBBoxCache, invalidateBidiCache, isBaseTextDirectionSensitive, isComponentOrientationSensitive, isDataFlavorSupported, isEditable, isInApplyToObject, isLocaleSensitive, isMovable, isPersistent, isSelectable, isVisible, localeChanged, move, move, moveResize, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBackground, setBaseTextDirection, setBaseTextDirectionDuringConstruction, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setFillOn, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemoved
public static final int IlvMarkerCharacter
public static final int IlvMarkerImage
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
.public void write(IlvOutputStream stream) throws IOException
IlvMapGraphicPath
object to the
IlvOutputStream
passed as parameterwrite
in interface IlvPersistentObject
write
in class IlvMarker
stream
- The stream to write to.IOException
- if there is a problem writing to stream
.@Deprecated public Color getForegound()
IlvPointStyle
object.public void setForeground(Color color)
IlvPointStyle
object.setForeground
in class IlvMarker
color
- The foreground to be set in the IlvPointStyle
object.IlvGraphic.draw(Graphics, IlvTransformer)
,
IlvGraphic.setBackground(Color)
,
IlvGraphic.setFillOn(boolean)
,
IlvGraphic.setStrokeOn(boolean)
,
IlvGraphic
public int getSize()
getSize
in class IlvMarker
IlvPointStyle
object.IlvMarker.setSize(int)
public void setSize(int size)
IlvPointStyle
object.setSize
in class IlvMarker
size
- The size to be set in the IlvPointStyle
object.IlvMarker.getSize()
public int getType()
getType
in class IlvMarker
IlvPointStyle
object.IlvMarker.setType(int)
public void setType(int type)
IlvPointStyle
object.setType
in class IlvMarker
type
- 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.IlvMarkerFilledTriangle
public void setStyle(IlvMapStyle style)
IlvMapGraphic
interface.setStyle
in interface IlvMapGraphic
style
- 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 IlvMapGraphic
IlvMapStyle
object attached to this graphic. This
must be an IlvPointStyle
instance.public IlvGraphic copy()
copy
in class IlvMarker
IlvMapMarker
instance.IlvGraphic
public IlvGraphic copy(IlvCoordinateTransformation transform) throws IlvCoordinateTransformationException
copy
in interface IlvMapGraphic
transform
- Transformation to apply.IlvCoordinateTransformationException
IlvMapGraphic.copy(ilog.views.maps.srs.coordtrans.IlvCoordinateTransformation)
public Color getForeground()
getForeground
in class IlvMarker
public void draw(Graphics dst, IlvTransformer t)
draw
in class IlvMarker
dst
- The destination Graphics.t
- The transformation used to draw the object.IlvGraphic.callDraw(Graphics,IlvTransformer)
,
IlvGraphic.boundingBox(IlvTransformer)
,
IlvGraphic.zoomable()
,
IlvGraphic
public IlvMapGeometry makeGeometry()
IlvMapPoint
geometry.makeGeometry
in interface IlvMapGraphic
IlvMapPoint
geometry.IlvMapGraphic.makeGeometry()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.