ilog.cpl.graphic.component
Class IlpCentered

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

Deprecated. Please use a composite graphic with a centered layout instead.

public class IlpCentered
extends IlpCompositeGraphic

This class is a container for one decoration. The decoration is displayed centered inside a Java component.

Since:
JTGO 3.0
See Also:
IlvCompositeGraphic, IlvCenteredLayout
Deprecated Since:
JTGO 4.0

Field Summary
protected  Component backComponent
          Deprecated. Stores the outer decoration
protected static Insets DefaultInsets
          Deprecated.  
protected  Insets insets
          Deprecated. Define the margin
 
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
IlpCentered(IlpGraphicView view, IlpRepresentationObject obj, Component outer, IlpGraphic inner)
          Deprecated. Creates a new instance, grouping an outer element and an inner element.
IlpCentered(IlpGraphicView view, IlpRepresentationObject obj, IlpAttribute attr, Component outer, IlpGraphic inner)
          Deprecated. Creates a new instance, grouping an outer element and an inner element.
IlpCentered(IlpGraphicView view, IlpRepresentationObject obj, IlpAttribute attr, Component outer, IlpGraphic inner, Insets i)
          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. During computeAttachmentCoordinates(), sets the children's positions.
 void computeFixedCoordinates()
          Deprecated. Prepares the attachment rectangle.
protected  void createComponent()
          Deprecated. Creates a Java component representation of this composite.
protected  Component getBackComponent()
          Deprecated. Returns the background component.
protected  IlpGraphic getInner()
          Deprecated. Returns the inner graphic.
 int getInsets()
          Deprecated. Returns the insets used when a graphic instance is added inside another component.
protected  Component getOuter()
          Deprecated. Returns the outer graphic.
protected  void initResourcesFromStyles(IlpStyle style, IlpStyle defaultStyle)
          Deprecated. Initializes the graphic characteristics from styles.
protected  void initSpecifics()
          Deprecated. Stores the specific information for the component.
protected  void setBackComponent(ilog.cpl.graphic.internal.IlpComponentGraphic g)
          Deprecated. Sets the component responsible for drawing the balloon.
 void setInsets(int v)
          Deprecated. Sets the insets used when a graphic instance is added inside another component.
 
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, initResources, 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

DefaultInsets

protected static final Insets DefaultInsets
Deprecated. 
Internal method or field: do not use!

insets

protected Insets insets
Deprecated. 
Define the margin

Internal method or field: do not use!

backComponent

protected Component backComponent
Deprecated. 
Stores the outer decoration

Internal method or field: do not use!
Constructor Detail

IlpCentered

public IlpCentered(IlpGraphicView view,
                   IlpRepresentationObject obj,
                   Component outer,
                   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.

The characteristics of this graphic are retrieved from the representation object style.


IlpCentered

public IlpCentered(IlpGraphicView view,
                   IlpRepresentationObject obj,
                   IlpAttribute attr,
                   Component outer,
                   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.


IlpCentered

public IlpCentered(IlpGraphicView view,
                   IlpRepresentationObject obj,
                   IlpAttribute attr,
                   Component outer,
                   IlpGraphic inner,
                   Insets i)
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

initResourcesFromStyles

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

Internal method or field: do not use!

getOuter

protected Component getOuter()
Deprecated. 
Returns the outer graphic.

Internal method or field: do not use!

getInner

protected IlpGraphic getInner()
Deprecated. 
Returns the inner graphic.

Internal method or field: do not use!

computeFixedCoordinates

public void computeFixedCoordinates()
Deprecated. 
Prepares the attachment rectangle. In particular, computes its size.

Specified by:
computeFixedCoordinates in interface IlpAttachable
Overrides:
computeFixedCoordinates in class IlpCompositeGraphic
Internal method or field: do not use!

computeChildrenAttachmentCoordinates

protected void computeChildrenAttachmentCoordinates()
Deprecated. 
During computeAttachmentCoordinates(), sets the children's positions.

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

createComponent

protected void createComponent()
Deprecated. 
Creates a Java component representation of this composite.

Overrides:
createComponent in class IlpCompositeGraphic
Internal method or field: do not use!

initSpecifics

protected void initSpecifics()
Deprecated. 
Stores the specific information for the component.

Overrides:
initSpecifics in class IlpCompositeGraphic
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.

Internal method or field: do not use!

getBackComponent

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

Internal method or field: do not use!

setInsets

public void setInsets(int v)
Deprecated. 
Sets the insets used when a graphic instance is added inside another component.

Since:
JTGO 3.5
Internal method or field: do not use!

getInsets

public int getInsets()
Deprecated. 
Returns the insets used when a graphic instance is added inside another component.

Since:
JTGO 3.5
Internal method or field: do not use!


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