public class IlvRasterIcon extends IlvIcon implements IlvMapGraphic
IlvRasterTileLoader
to compute the best representation of the image.drawrect, hideStackTraceInImageUpdate
ABORT, 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, setRenderedImage
addActionListener, 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, zoomable
public 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 IlvPersistentObject
write
in class IlvIcon
stream
- 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 IlvIcon
IlvGraphic
public IlvGraphic copy(IlvCoordinateTransformation transform)
copy
in interface IlvMapGraphic
transform
- Transformation to apply.IlvMapGraphic.copy(ilog.views.maps.srs.coordtrans.IlvCoordinateTransformation)
public void setStyle(IlvMapStyle style)
IlvMapStyle
.setStyle
in interface IlvMapGraphic
style
- The IlvMapStyle
to set.IlvMapGraphic.setStyle(ilog.views.maps.graphic.style.IlvMapStyle)
public IlvMapStyle getStyle()
IlvMapStyle
.getStyle
in interface IlvMapGraphic
IlvMapStyle
.IlvMapGraphic.getStyle()
public void draw(Graphics dst, IlvTransformer t)
draw
in class IlvIcon
dst
- 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 IlvMapGraphic
IlvMapGraphic.makeGeometry()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.