ilog.cpl.graphic.component
Class IlpBalloon

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
All Implemented Interfaces:
IlpAttachable, IlpAttachmentManager, IlpGraphic, IlpGraphicContainment, ilog.cpl.graphic.internal.IlpComposite, ilog.cpl.graphic.internal.IlpGraphicModifier, ilog.cpl.graphic.internal.IlpHotSpot
Direct Known Subclasses:
IlpAlarmBalloon, IlpInfoBalloon

Deprecated. Please use IlvBalloon instead.

public abstract class IlpBalloon
extends IlpCentered
implements ilog.cpl.graphic.internal.IlpHotSpot

This class describes the base class for graphic elements that represent a balloon.

Since:
JTGO 3.0
Deprecated Since:
JTGO 4.0

Field Summary
 
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
IlpBalloon(IlpGraphicView view, IlpRepresentationObject obj, IlpAttribute attr, IlpGraphic inner)
          Deprecated. Creates a new instance, grouping an outer element and an inner element.
IlpBalloon(IlpGraphicView view, IlpRepresentationObject obj, IlpAttribute attr, IlpGraphic inner, Insets i, int orient, int depth, int thickness, Color bg, Color border, Color shadow)
          Deprecated. Creates a new instance, grouping an outer element and an inner element.
 
Method Summary
 void computeAttachmentBounds()
          Deprecated. Computes the composite attachment bounds based on the child bounds.
protected  void computeChildrenAttachmentCoordinates()
          Deprecated. Computes the attachment coordinates of the child graphics.
protected abstract  void createBackComponent()
          Deprecated. Creates the background component used by the balloon.
protected  Component getBackComponent()
          Deprecated. Returns the background component.
 Color getBackground()
          Deprecated. Returns the balloon background color.
 Color getBorderColor()
          Deprecated. Returns the balloon border color.
 int getOrientation()
          Deprecated. Returns the orientation in which the balloon will be displayed relative to the base graphic.
 int getPointerDepth()
          Deprecated. Returns the pointer height.
 Color getShadowColor()
          Deprecated. Returns the balloon shadow color.
 int getShadowThickness()
          Deprecated. Returns the shadow thickness.
protected  void initResources()
          Deprecated. Initializes the resources needed to display this graphic.
protected  void initResourcesFromStyles(IlpStyle style, IlpStyle defaultStyle)
          Deprecated. Initializes the graphic characteristics from styles.
 void setBackground(Color v)
          Deprecated. Sets the balloon background color.
 void setBorderColor(Color v)
          Deprecated. Sets the balloon border color.
 void setOrientation(int v)
          Deprecated. Sets the orientation in which the balloon will be displayed relative to the base graphic.
 void setPointerDepth(int v)
          Deprecated. Sets the pointer height.
 void setShadowColor(Color v)
          Deprecated. Sets the balloon shadow color.
 void setShadowThickness(int v)
          Deprecated. Sets the shadow thickness.
 
Methods inherited from class ilog.cpl.graphic.component.IlpCentered
computeFixedCoordinates, createComponent, getInner, getInsets, getOuter, initSpecifics, setBackComponent, 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
 
Methods inherited from interface ilog.cpl.graphic.internal.IlpHotSpot
getHotSpot
 

Constructor Detail

IlpBalloon

public IlpBalloon(IlpGraphicView view,
                  IlpRepresentationObject obj,
                  IlpAttribute attr,
                  IlpGraphic inner)
Deprecated. 
Creates a new instance, grouping an outer element and an inner element. The outer element is below the inner element, and its size is determined by the inner element plus a margin in all four directions.


IlpBalloon

public IlpBalloon(IlpGraphicView view,
                  IlpRepresentationObject obj,
                  IlpAttribute attr,
                  IlpGraphic inner,
                  Insets i,
                  int orient,
                  int depth,
                  int thickness,
                  Color bg,
                  Color border,
                  Color shadow)
Deprecated. 
Creates a new instance, grouping an outer element and an inner element. The outer element is below the inner element, and its size is determined by the inner element plus a margin in all four directions.

Method Detail

initResources

protected void initResources()
Deprecated. 
Initializes the resources needed to display this graphic.

Overrides:
initResources in class IlpCompositeGraphic
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 IlpCentered
Internal method or field: do not use!

getOrientation

public int getOrientation()
Deprecated. 
Returns the orientation in which the balloon will be displayed relative to the base graphic.

The possible values are:


setOrientation

public void setOrientation(int v)
Deprecated. 
Sets the orientation in which the balloon will be displayed relative to the base graphic.

Since:
JTGO 3.5

getPointerDepth

public int getPointerDepth()
Deprecated. 
Returns the pointer height.


setPointerDepth

public void setPointerDepth(int v)
Deprecated. 
Sets the pointer height.

Since:
JTGO 3.5

getShadowThickness

public int getShadowThickness()
Deprecated. 
Returns the shadow thickness.


setShadowThickness

public void setShadowThickness(int v)
Deprecated. 
Sets the shadow thickness.

Since:
JTGO 3.5

getBackground

public Color getBackground()
Deprecated. 
Returns the balloon background color.


setBackground

public void setBackground(Color v)
Deprecated. 
Sets the balloon background color.

Since:
JTGO 3.5

getBorderColor

public Color getBorderColor()
Deprecated. 
Returns the balloon border color.


setBorderColor

public void setBorderColor(Color v)
Deprecated. 
Sets the balloon border color.

Since:
JTGO 3.5

getShadowColor

public Color getShadowColor()
Deprecated. 
Returns the balloon shadow color.


setShadowColor

public void setShadowColor(Color v)
Deprecated. 
Sets the balloon shadow color.

Since:
JTGO 3.5

computeChildrenAttachmentCoordinates

protected void computeChildrenAttachmentCoordinates()
Deprecated. 
Computes the attachment coordinates of the child graphics.

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

computeAttachmentBounds

public void computeAttachmentBounds()
Deprecated. 
Computes the composite attachment bounds based on the child bounds. This method can only be called after computing the attachment coordinates of the child graphics.

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

getBackComponent

protected Component getBackComponent()
Deprecated. 
Returns the background component.

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

createBackComponent

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

Internal method or field: do not use!


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