public abstract class IlvBalloon extends IlvGraphic implements IlvHotSpot
IlvBalloon
is the abstract base class for all graphic objects
that represent a balloon. These classes are designed to be used as children
of composite graphic objects; they can also be used as standard graphic
objects.
In addition to the standard constructors, the following methods should be overridden to create a customized balloon:
getHotSpot
draw
The default settings for an IlvBalloon
are as follows:
SwingConstants.NORTH_EAST
10
2
Color(242, 242, 242)
Color.black
Color(153, 153, 153)
2
IlvBalloon
is a custom graphic object, that is, a subclass of
IlvGraphic
. Graphic objects are controlled using an
IlvManager
instance and displayed using one or more
IlvManagerView
instances in a Java Swing application.
For information about generic features for graphic objects, see
IlvGraphic.
IlvManager
,
IlvManagerView
,
IlvRectBalloon
,
IlvRoundRectBalloon
,
IlvText
,
IlvPoint
,
Serialized FormConstructor and Description |
---|
IlvBalloon()
Creates a balloon with the default values.
|
IlvBalloon(IlvBalloon source)
Creates a new
IlvBalloon by copying an existing one. |
IlvBalloon(IlvInputStream stream)
Reads the object from an
IlvInputStream . |
IlvBalloon(int orientation,
int pointerDepth,
int shadowThickness,
Color balloonColor,
Color borderColor,
Color shadowColor)
Creates a balloon with the characteristics given by the supplied parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
applyTransform(IlvTransformer t)
Applies a transformation to the shape of this object.
|
IlvRect |
boundingBox(IlvTransformer t)
Returns the bounding rectangle of this object.
|
Color |
getBalloonColor()
Returns the balloon color.
|
Color |
getBorderColor()
Returns the balloon color.
|
Insets |
getInsets()
Returns the insets.
|
int |
getOrientation()
Returns the orientation in which the balloon will be displayed.
|
int |
getPointerDepth()
Returns the pointer height.
|
Color |
getShadowColor()
Returns the shadow color.
|
int |
getShadowThickness()
Returns the shadow thickness.
|
void |
moveResize(IlvRect size)
Resizes the object.
|
void |
setBalloonColor(Color balloonColor)
Sets the balloon shadow color.
|
void |
setBorderColor(Color balloonBorderColor)
Sets the balloon shadow color.
|
void |
setInsets(Insets insets)
Returns the insets.
|
void |
setOrientation(int orientation)
Sets the orientation in which the balloon will be displayed.
|
void |
setPointerDepth(int pointerDepth)
Sets the pointer height.
|
void |
setShadowColor(Color balloonShadowColor)
Sets the balloon shadow color.
|
void |
setShadowThickness(int shadowThickness)
Sets the shadow thickness.
|
void |
write(IlvOutputStream stream)
Writes the object to an
IlvOutputStream . |
addActionListener, addNamedPropertyListener, allViewsRemoved, baseTextDirectionChanged, blinkingStateOn, boundingBox, callDraw, componentOrientationChanged, contains, copy, draw, 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, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBackground, setBaseTextDirection, setBaseTextDirectionDuringConstruction, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setFillOn, setForeground, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemoved, zoomable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHotSpot
public IlvBalloon()
public IlvBalloon(IlvBalloon source)
IlvBalloon
by copying an existing one.public IlvBalloon(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.stream
- The input stream.IlvReadFileException
- if the format is not correct.public IlvBalloon(int orientation, int pointerDepth, int shadowThickness, Color balloonColor, Color borderColor, Color shadowColor)
orientation
- The balloon orientation. The possible values are:
pointerDepth
- Balloon pointer depth.shadowThickness
- Balloon shadow thickness.balloonColor
- Balloon background color.borderColor
- Balloon border color.shadowColor
- Balloon shadow color.setOrientation(int)
,
setPointerDepth(int)
,
setShadowThickness(int)
,
setBalloonColor(java.awt.Color)
,
setBorderColor(java.awt.Color)
,
setShadowColor(java.awt.Color)
public void moveResize(IlvRect size)
IlvRect
parameter.
This method calls the applyTransform
method.moveResize
in class IlvGraphic
size
- The new bounding rectangle of the object.IlvGraphic
,
IlvGraphic.applyTransform(IlvTransformer)
public void applyTransform(IlvTransformer t)
applyTransform
in class IlvGraphic
t
- The transformer to be applied.IlvGraphic
public IlvRect boundingBox(IlvTransformer t)
boundingBox
in class IlvGraphic
t
- The transformer used to draw the object. If the
transformer is null
, the bounding box for the
identity transformer is returned.IlvGraphic.draw(java.awt.Graphics, ilog.views.IlvTransformer)
,
IlvGraphic.zoomable()
,
IlvGraphic
public int getOrientation()
The possible values are:
public void setOrientation(int orientation)
The possible values are:
public int getPointerDepth()
public void setPointerDepth(int pointerDepth)
public int getShadowThickness()
public void setShadowThickness(int shadowThickness)
public Insets getInsets()
public void setInsets(Insets insets)
public Color getShadowColor()
public void setShadowColor(Color balloonShadowColor)
IlvBlinkingColor
.public Color getBalloonColor()
public void setBalloonColor(Color balloonColor)
IlvBlinkingColor
.public Color getBorderColor()
public void setBorderColor(Color balloonBorderColor)
IlvBlinkingColor
.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 IlvGraphic
stream
- The output stream.IOException
- thrown when an exception occurs during
the write operation for this object.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.