ilog.cpl.graphic.component
Class IlpStacker

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

Deprecated. Please use a Composite Graphic with a Stacker Layout instead.

public class IlpStacker
extends IlpCompositeGraphic

This class is a container for several decorations. It lays out the child objects on a row or column basis, adding some space between them.

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

Field Summary
 
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
IlpStacker(IlpGraphicView view, IlpRepresentationObject obj)
          Deprecated. Creates a new stacker graphic.
IlpStacker(IlpGraphicView view, IlpRepresentationObject obj, IlpAttribute attribute)
          Deprecated. Creates a new stacker graphic.
IlpStacker(IlpGraphicView view, IlpRepresentationObject obj, IlpAttribute attr, int orientation, int alignment, int spacing)
          Deprecated. Creates a new stacker graphic for the attribute or representation object, with the given characteristics for orientation, alignment and spacing.
 
Method Summary
protected  void checkValues()
          Deprecated. This method just checks if the values defined for the stacker characteristics are valid.
 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.
 int getAlignment()
          Deprecated. Returns the alignment used in the stacker children.
 int getOrientation()
          Deprecated. Returns the current orientation.
 int getSpacing()
          Deprecated. Returns the spacing between child elements.
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.
 void setAlignment(int v)
          Deprecated. Returns the alignment used in the stacker children.
 void setOrientation(int v)
          Deprecated. Sets the current orientation.
 void setSpacing(int v)
          Deprecated. Returns the spacing between child elements.
 
Methods inherited from class ilog.cpl.graphic.IlpCompositeGraphic
addBase, addChild, addChild, apply, apply, call, compute, computeAttachmentCoordinates, computeAttachmentCoordinates, createComponent, 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
 

Constructor Detail

IlpStacker

public IlpStacker(IlpGraphicView view,
                  IlpRepresentationObject obj)
Deprecated. 
Creates a new stacker graphic.


IlpStacker

public IlpStacker(IlpGraphicView view,
                  IlpRepresentationObject obj,
                  IlpAttribute attribute)
Deprecated. 
Creates a new stacker graphic.


IlpStacker

public IlpStacker(IlpGraphicView view,
                  IlpRepresentationObject obj,
                  IlpAttribute attr,
                  int orientation,
                  int alignment,
                  int spacing)
Deprecated. 
Creates a new stacker graphic for the attribute or representation object, with the given characteristics for orientation, alignment and spacing.

Parameters:
orientation - either SwingConstants.TOP or SwingConstants.BOTTOM or SwingConstants.LEFT or SwingConstants.RIGHT
alignment - either SwingConstants.TOP or SwingConstants.BOTTOM or SwingConstants.LEFT or SwingConstants.RIGHT or SwingConstants.CENTER
Method Detail

initSpecifics

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

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

Internal method or field: do not use!

checkValues

protected void checkValues()
Deprecated. 
This method just checks if the values defined for the stacker characteristics are valid. This method may modify the values to correct an internal value.

Internal method or field: do not use!

getOrientation

public int getOrientation()
Deprecated. 
Returns the current orientation.

Internal method or field: do not use!

setOrientation

public void setOrientation(int v)
Deprecated. 
Sets the current orientation.

Since:
JTGO 3.5

getAlignment

public int getAlignment()
Deprecated. 
Returns the alignment used in the stacker children.

Internal method or field: do not use!

setAlignment

public void setAlignment(int v)
Deprecated. 
Returns the alignment used in the stacker children.

Since:
JTGO 3.5

getSpacing

public int getSpacing()
Deprecated. 
Returns the spacing between child elements.

Internal method or field: do not use!

setSpacing

public void setSpacing(int v)
Deprecated. 
Returns the spacing between child elements.

Since:
JTGO 3.5

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!

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!

computeChildrenAttachmentCoordinates

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

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


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