public class IlvRasterIcon extends IlvIcon implements IlvMapGraphic
IlvRasterTileLoader to compute the best representation of the image.drawrect, hideStackTraceInImageUpdateABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
IlvRasterIcon(IlvInputStream stream)
Reads the object from an
IlvInputStream. |
IlvRasterIcon(IlvRasterIcon source)
Creates a new
IlvRasterIcon by copying an existing one. |
IlvRasterIcon(IlvRasterTileLoader loader,
int subsampling,
Point2D.Double p1,
Point2D.Double p2)
Creates a dynamic raster image.
|
| Modifier and Type | Method and Description |
|---|---|
IlvGraphic |
copy()
Copies the object.
|
IlvGraphic |
copy(IlvCoordinateTransformation transform)
Copies the element and applies the specified transformation to its coordinates.
|
void |
draw(Graphics dst,
IlvTransformer t)
Draws the object.
|
IlvRasterTileLoader |
getLoader()
Returns the loader used to create the image.
|
Point2D.Double |
getP1()
Returns the double precision top left point of the definition rectangle
|
Point2D.Double |
getP2()
Returns the double precision bottom right point of the definition rectangle
|
IlvMapStyle |
getStyle()
Retrieves the
IlvMapStyle. |
int |
getSubsampling()
Returns the subsampling used to create the image.
|
IlvMapGeometry |
makeGeometry()
Returns an IlvMapRasterGeometry geometry.
|
void |
needsUpdate()
Calling this method indicates that the image style has change and should be rebuilt.
|
void |
setStyle(IlvMapStyle style)
Sets the
IlvMapStyle. |
void |
setSubsampling(int subsampling)
Sets the subsampling used to create the image - changes the image stored in the icon.
|
void |
write(IlvOutputStream stream)
Writes the object to an
IlvOutputStream. |
applyTransform, boundingBox, contains, getAlpha, getClip, getDefinitionRect, getImage, getImageLocation, getRenderedImage, getTransformer, imageUpdate, isAutoResizing, isHighQualityRendering, setAlpha, setAutoResizing, setClip, setGraphicBag, setHighQualityRendering, setImage, setImageLocation, setRenderedImageaddActionListener, addNamedPropertyListener, allViewsRemoved, baseTextDirectionChanged, blinkingStateOn, boundingBox, callDraw, componentOrientationChanged, 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, makeSelection, move, move, moveResize, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBackground, setBaseTextDirection, setBaseTextDirectionDuringConstruction, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setFillOn, setForeground, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemoved, zoomablepublic IlvRasterIcon(IlvRasterIcon source)
IlvRasterIcon by copying an existing one.source - The source icon.public IlvRasterIcon(IlvInputStream stream) throws IlvReadFileException
IlvInputStream.stream - The input stream.IlvReadFileException - if the format is not correct.public IlvRasterIcon(IlvRasterTileLoader loader, int subsampling, Point2D.Double p1, Point2D.Double p2)
loader - Loader used to create the image.subsampling - initial subsampling of the image createdp1 - The definition rectangle of the object.p2 - The definition rectangle of the object.public Point2D.Double getP1()
public Point2D.Double getP2()
public void write(IlvOutputStream stream) throws IOException
IlvOutputStream.
You should not call this
method directly; instead, you should use the write
methods of the manager.write in interface IlvPersistentObjectwrite in class IlvIconstream - The output stream.IOException - thrown when an exception occurs during
the write operation for this object.IlvIcon.write(ilog.views.io.IlvOutputStream)public IlvRasterTileLoader getLoader()
public int getSubsampling()
public void setSubsampling(int subsampling)
subsampling - the subsampling used to create the image.public void needsUpdate()
public IlvGraphic copy()
copy in class IlvIconIlvGraphicpublic IlvGraphic copy(IlvCoordinateTransformation transform)
copy in interface IlvMapGraphictransform - Transformation to apply.IlvMapGraphic.copy(ilog.views.maps.srs.coordtrans.IlvCoordinateTransformation)public void setStyle(IlvMapStyle style)
IlvMapStyle.setStyle in interface IlvMapGraphicstyle - The IlvMapStyle to set.IlvMapGraphic.setStyle(ilog.views.maps.graphic.style.IlvMapStyle)public IlvMapStyle getStyle()
IlvMapStyle.getStyle in interface IlvMapGraphicIlvMapStyle.IlvMapGraphic.getStyle()public void draw(Graphics dst, IlvTransformer t)
draw in class IlvIcondst - The destination Graphics.t - The transformation used to draw the object.IlvIcon.draw(java.awt.Graphics, ilog.views.IlvTransformer)public IlvMapGeometry makeGeometry()
makeGeometry in interface IlvMapGraphicIlvMapGraphic.makeGeometry()© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.