ilog.cpl.graphic.component
Class IlpAlarmBalloon

java.lang.Object
  extended by ilog.cpl.graphic.IlpAbstractGraphic
      extended by ilog.cpl.graphic.IlpCompositeGraphic
          extended by ilog.cpl.graphic.component.IlpCentered
              extended by ilog.cpl.graphic.component.IlpBalloon
                  extended by ilog.cpl.graphic.component.IlpAlarmBalloon
All Implemented Interfaces:
IlpAttachable, IlpAttachmentManager, IlpGraphic, IlpGraphicContainment, ilog.cpl.graphic.internal.IlpComposite, ilog.cpl.graphic.internal.IlpGraphicModifier, ilog.cpl.graphic.internal.IlpHotSpot

Deprecated. Please use IlvRoundRectBalloon instead.

public class IlpAlarmBalloon
extends IlpBalloon

This class describes a graphic that represents an alarm balloon.

Since:
JTGO 3.0
Deprecated Since:
JTGO 4.0

Field Summary
protected static Color DefaultShadowColor
          Deprecated. Initializes the class style with default values
protected  int pointerDistance
          Deprecated. For SwingConstants.CENTER: horizontal distance between the left edge and the pointer.
protected  int radius
          Deprecated. Round rectangle radius
 
Fields inherited from class ilog.cpl.graphic.component.IlpCentered
backComponent, DefaultInsets, insets
 
Fields inherited from interface ilog.cpl.graphic.IlpGraphic
AlarmBalloonBorderColor, AlarmBalloonColor, AlarmBalloonOrientation, AlarmBalloonPointerDepth, AlarmBalloonPointerDistance, AlarmBalloonRadius, AlarmBalloonShadowColor, AlarmBalloonShadowThickness, AlarmCountLabelBackgroundColor, AlarmCountOuterBorderColor, CenteredInsets, InfoBalloonBorderColor, InfoBalloonColor, InfoBalloonOrientation, InfoBalloonPointerDepth, InfoBalloonShadowColor, InfoBalloonShadowThickness, StackerAlignment, StackerOrientation, StackerSpacing
 
Constructor Summary
IlpAlarmBalloon(IlpGraphicView view, IlpRepresentationObject obj, IlpAttribute attr, IlpGraphic inner)
          Deprecated. Creates a new instance by adding the inner graphic within the alarm balloon according to the given orientation.
IlpAlarmBalloon(IlpGraphicView view, IlpRepresentationObject obj, IlpAttribute attr, IlpGraphic inner, Insets i, int orient, int depth, int thickness, Color bg, Color border, Color shadow, int rad, int distance)
          Deprecated. Creates a new instance by adding the inner graphic within the alarm balloon according to the given orientation.
IlpAlarmBalloon(IlpGraphicView view, IlpRepresentationObject obj, IlpAttribute attr, IlpGraphic inner, int orient, Color bg)
          Deprecated. Creates a new instance by adding the inner graphic within the alarm balloon, according to the given orientation.
IlpAlarmBalloon(IlpGraphicView view, IlpRepresentationObject obj, IlpGraphic inner)
          Deprecated. Creates a new instance by adding the inner graphic within the alarm balloon, according to the given orientation.
 
Method Summary
protected  void createBackComponent()
          Deprecated. Creates the background component used by the balloon.
 IlpPoint getHotSpot()
          Deprecated. The hotspot is the corner of the pointer relative to getAttachmentBounds().
 int getPointerDistance()
          Deprecated. Returns the pointer distance.
 int getRadius()
          Deprecated. Returns the radius used to create the round rectangle.
protected  void initResources()
          Deprecated. Initializes the resources used internally, base on style values.
protected  void initResourcesFromStyles(IlpStyle style, IlpStyle defaultStyle)
          Deprecated. Initializes the graphic characteristics from styles.
protected  void setBackComponent(ilog.cpl.graphic.internal.IlpComponentGraphic g)
          Deprecated. Sets the component responsible for drawing the balloon.
 void setPointerDistance(int pointerDistance)
          Deprecated. Sets the pointer distance.
 void setRadius(int v)
          Deprecated. Sets the radius used to create the round rectangle.
 
Methods inherited from class ilog.cpl.graphic.component.IlpBalloon
computeAttachmentBounds, computeChildrenAttachmentCoordinates, getBackComponent, getBackground, getBorderColor, getOrientation, getPointerDepth, getShadowColor, getShadowThickness, setBackground, setBorderColor, setOrientation, setPointerDepth, setShadowColor, setShadowThickness
 
Methods inherited from class ilog.cpl.graphic.component.IlpCentered
computeFixedCoordinates, createComponent, getInner, getInsets, getOuter, initSpecifics, setInsets
 
Methods inherited from class ilog.cpl.graphic.IlpCompositeGraphic
addBase, addChild, addChild, apply, apply, call, compute, computeAttachmentCoordinates, computeAttachmentCoordinates, getAttachment, getAttachmentBounds, getBase, getBaseRect, getCenterPoint, getChild, getChildCount, getChildren, getComponent, getInnermostGraphic, getSpecifics, getTopLeftLocation, removeChild, removeChildren, setAttachment, setSpecifics, validateComponent
 
Methods inherited from class ilog.cpl.graphic.IlpAbstractGraphic
addGraphicChangeListener, contains, fireEvent, getAttachmentManager, getAttachmentRect, getAttribute, getParent, getRepresentationObject, getRoot, getView, invalidateAttachmentRect, removeGraphicChangeListener, setAttachmentManager, setAttachmentRect, setAttribute, setComponent, setComponentNoInvalidate, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DefaultShadowColor

protected static final Color DefaultShadowColor
Deprecated. 
Initializes the class style with default values

Internal method or field: do not use!

radius

protected int radius
Deprecated. 
Round rectangle radius

Internal method or field: do not use!

pointerDistance

protected int pointerDistance
Deprecated. 
For SwingConstants.CENTER: horizontal distance between the left edge and the pointer. If it is out of range, it is ignored, and the pointer is at the center of the top/bottom edge. Only used by the BottomPointer and TopPointer inner classes.

Internal method or field: do not use!
Constructor Detail

IlpAlarmBalloon

public IlpAlarmBalloon(IlpGraphicView view,
                       IlpRepresentationObject obj,
                       IlpGraphic inner)
Deprecated. 
Creates a new instance by adding the inner graphic within the alarm balloon, according to the given orientation.

The alarm balloon characteristics are retrieved from the style of the representation object.

Parameters:
view - Graphic view where the graphic will be displayed.
obj - Representation object.
inner - Balloon contents.

IlpAlarmBalloon

public IlpAlarmBalloon(IlpGraphicView view,
                       IlpRepresentationObject obj,
                       IlpAttribute attr,
                       IlpGraphic inner)
Deprecated. 
Creates a new instance by adding the inner graphic within the alarm balloon according to the given orientation.

Parameters:
view - Graphic view where the graphic will be displayed.
obj - Representation object.
attr - Attribute represented by this graphic.
inner - Balloon contents.

IlpAlarmBalloon

public IlpAlarmBalloon(IlpGraphicView view,
                       IlpRepresentationObject obj,
                       IlpAttribute attr,
                       IlpGraphic inner,
                       int orient,
                       Color bg)
Deprecated. 
Creates a new instance by adding the inner graphic within the alarm balloon, according to the given orientation. The alarm balloon characteristics are given as parameters.

Parameters:
view - Graphic view where the graphic will be displayed.
obj - Representation object.
attr - Attribute represented by this graphic.
inner - Balloon contents.
orient - Balloon orientation.
bg - Balloon background color.
Since:
JTGO 3.5

IlpAlarmBalloon

public IlpAlarmBalloon(IlpGraphicView view,
                       IlpRepresentationObject obj,
                       IlpAttribute attr,
                       IlpGraphic inner,
                       Insets i,
                       int orient,
                       int depth,
                       int thickness,
                       Color bg,
                       Color border,
                       Color shadow,
                       int rad,
                       int distance)
Deprecated. 
Creates a new instance by adding the inner graphic within the alarm balloon according to the given orientation. The alarm balloon characteristics are given as parameters.

Parameters:
view - Graphic view where the graphic will be displayed.
obj - Representation object.
attr - Attribute represented by this graphic.
inner - Balloon contents.
i - Balloon insets.
orient - Balloon orientation.
depth - Balloon pointer depth.
thickness - Balloon shadow thickness.
bg - Balloon background color.
border - Balloon border color.
shadow - Balloon shadow color.
rad - Balloon round rectangle radius.
distance - Balloon pointer distance.
Method Detail

initResources

protected void initResources()
Deprecated. 
Initializes the resources used internally, base on style values.

Overrides:
initResources in class IlpBalloon
Internal method or field: do not use!

initResourcesFromStyles

protected void initResourcesFromStyles(IlpStyle style,
                                       IlpStyle defaultStyle)
Deprecated. 
Initializes the graphic characteristics from styles.

Overrides:
initResourcesFromStyles in class IlpBalloon
Internal method or field: do not use!

createBackComponent

protected void createBackComponent()
Deprecated. 
Creates the background component used by the balloon.

Specified by:
createBackComponent in class IlpBalloon
Internal method or field: do not use!

setBackComponent

protected void setBackComponent(ilog.cpl.graphic.internal.IlpComponentGraphic g)
Deprecated. 
Sets the component responsible for drawing the balloon.

Overrides:
setBackComponent in class IlpCentered
Internal method or field: do not use!

getHotSpot

public IlpPoint getHotSpot()
Deprecated. 
The hotspot is the corner of the pointer relative to getAttachmentBounds().

Internal method or field: do not use!

setPointerDistance

public void setPointerDistance(int pointerDistance)
Deprecated. 
Sets the pointer distance.

Since:
JTGO 3.5

getPointerDistance

public int getPointerDistance()
Deprecated. 
Returns the pointer distance.

Internal method or field: do not use!

getRadius

public int getRadius()
Deprecated. 
Returns the radius used to create the round rectangle.

Internal method or field: do not use!

setRadius

public void setRadius(int v)
Deprecated. 
Sets the radius used to create the round rectangle.

Since:
JTGO 3.5


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.