@Deprecated public class IlpCompositeGraphic extends IlpAbstractGraphic implements ilog.cpl.graphic.internal.IlpGraphicModifier, IlpAttachmentManager, ilog.cpl.graphic.internal.IlpComposite
In order to combine the child graphics, the user may define attachment rules.
Note: Composite graphics are now supported through
Rogue Wave JViews Composite Graphics. The new composite graphics are
created using CSS. Please refer to samples.network.compositeGraphic
for an example on how to create and customize the graphic
representation of custom business objects using Rogue Wave JViews
Composite Graphics and Cascading Style Sheets.
IlvCompositeGraphic
,
IlvAttachmentLayout
,
IlvAttachmentConstraint
AlarmBalloonBorderColor, AlarmBalloonColor, AlarmBalloonOrientation, AlarmBalloonPointerDepth, AlarmBalloonPointerDistance, AlarmBalloonRadius, AlarmBalloonShadowColor, AlarmBalloonShadowThickness, AlarmCountLabelBackgroundColor, AlarmCountOuterBorderColor, CenteredInsets, InfoBalloonBorderColor, InfoBalloonColor, InfoBalloonOrientation, InfoBalloonPointerDepth, InfoBalloonShadowColor, InfoBalloonShadowThickness, StackerAlignment, StackerOrientation, StackerSpacing
Constructor and Description |
---|
IlpCompositeGraphic(IlpGraphicView graphicView,
IlpRepresentationObject object)
Deprecated.
Creates a graphic to represent the given object inside
the given view.
|
IlpCompositeGraphic(IlpGraphicView graphicView,
IlpRepresentationObject object,
IlpAttribute attribute)
Deprecated.
Creates a graphic to represent an attribute in the given object
inside the given view.
|
Modifier and Type | Method and Description |
---|---|
void |
addBase(IlpGraphic base)
Deprecated.
Adds the given graphic as a child of this composite,
and marks it as the base graphic.
|
void |
addChild(IlpGraphic child)
Deprecated.
Adds a child to this graphic, creating a composite
representation.
|
void |
addChild(IlpGraphic graphic,
IlpAttachment attachment)
Deprecated.
Adds a new child graphic with the given attachment rule.
|
void |
apply(ilog.cpl.graphic.internal.IlpApplyToGraphic f)
Deprecated.
Applies the given function to all leaves in this graphic
hierarchy, going down in this composite graphic.
|
void |
apply(ilog.cpl.graphic.internal.IlpApplyToGraphic f,
boolean postOrder)
Deprecated.
Recursively applies a function to all nodes inside
this composite graphic hierarchy.
|
Object |
call(ilog.cpl.graphic.internal.IlpCallOnGraphic f)
Deprecated.
Recursively applies a function to all leaves, and returns the first
non-null value produced.
|
void |
compute()
Deprecated.
Computes the composite graphic representation attaching
the child graphics to their correct position.
|
void |
computeAttachmentBounds()
Deprecated.
Computes the composite attachment bounds based on the
child bounds.
|
void |
computeAttachmentCoordinates()
Deprecated.
Computes the values of all attachments, recursively traversing the tree.
|
void |
computeAttachmentCoordinates(IlpGraphic graphic)
Deprecated.
Computes the attachment coordinates of this composite graphic.
|
protected void |
computeChildrenAttachmentCoordinates()
Deprecated.
Computes the attachment coordinates of the child graphics.
|
void |
computeFixedCoordinates()
Deprecated.
This methods prepares the attachment rectangle.
|
protected void |
createComponent()
Deprecated.
Creates a Java component representation of this composite.
|
IlpAttachment |
getAttachment(IlpGraphic graphic)
Deprecated.
Returns the attachment of the given graphic object.
|
IlpRect |
getAttachmentBounds()
Deprecated.
This method prepares the attachment bounds of this composite graphic,
considering the bounds of its children.
|
IlpGraphic |
getBase()
Deprecated.
Gets the base element.
|
IlpRect |
getBaseRect(double centerx,
double centery)
Deprecated.
Returns a rectangle with the location and dimension of the base graphic,
if there is one.
|
IlpPoint |
getCenterPoint(double rectx,
double recty,
double rectw,
double recth)
Deprecated.
Returns the center point of the object considering the given base
rectangle.
|
IlpGraphic |
getChild(int index)
Deprecated.
Returns the child graphic at the given position.
|
int |
getChildCount()
Deprecated.
Returns the number of child graphics.
|
Collection |
getChildren()
Deprecated.
Returns a collection with all graphics present in
this composite.
|
JComponent |
getComponent()
Deprecated.
Returns the Java component responsible for the display
of this graphic.
|
IlpGraphic |
getInnermostGraphic(IlpPoint viewLocation)
Deprecated.
Returns the innermost graphic at the given position in this object.
|
ilog.cpl.graphic.internal.IlpComponentSpecifics |
getSpecifics()
Deprecated.
Returns the instance responsible for the specific things in this component
representation or
null if there is no specific behavior defined. |
IlpPoint |
getTopLeftLocation(double centerx,
double centery,
double width,
double height)
Deprecated.
Returns the location of the top left point of the graphic considering the
given center point.
|
protected void |
initResources()
Deprecated.
Initializes any resources needed by this graphic.
|
protected void |
initSpecifics()
Deprecated.
Stores the specific information for the component.
|
void |
removeChild(IlpGraphic child)
Deprecated.
Removes the given child from this composite graphic.
|
void |
removeChildren()
Deprecated.
Removes all the children.
|
void |
setAttachment(IlpGraphic graphic,
IlpAttachment attachment)
Deprecated.
Attaches the corresponding graphic object to another one.
|
protected void |
setSpecifics(ilog.cpl.graphic.internal.IlpComponentSpecifics spec)
Deprecated.
Set the characteristics that are specific to the component.
|
protected void |
validateComponent()
Deprecated.
Validates the component after computing attachments.
|
addGraphicChangeListener, contains, fireEvent, getAttachmentManager, getAttachmentRect, getAttribute, getParent, getRepresentationObject, getRoot, getView, invalidateAttachmentRect, removeGraphicChangeListener, setAttachmentManager, setAttachmentRect, setAttribute, setComponent, setComponentNoInvalidate, setParent
public IlpCompositeGraphic(IlpGraphicView graphicView, IlpRepresentationObject object)
graphicView
- View in which the object is being represented.object
- The object that is being represented by this graphic.public IlpCompositeGraphic(IlpGraphicView graphicView, IlpRepresentationObject object, IlpAttribute attribute)
graphicView
- View in which the object is being represented.object
- The object that is being represented.attribute
- The attribute that is being represented by this graphic.protected void initResources()
protected void initSpecifics()
protected void setSpecifics(ilog.cpl.graphic.internal.IlpComponentSpecifics spec)
computeTransformer
.public ilog.cpl.graphic.internal.IlpComponentSpecifics getSpecifics()
null
if there is no specific behavior defined.public IlpGraphic getBase()
public void addBase(IlpGraphic base)
public void addChild(IlpGraphic graphic, IlpAttachment attachment)
public void compute()
public IlpRect getAttachmentBounds()
getAttachmentBounds
in interface IlpAttachable
public void computeFixedCoordinates()
computeAttachmentCoordinates
will calculate the appropriate
(x,y) position based on the attachment rules.computeFixedCoordinates
in interface IlpAttachable
public void computeAttachmentCoordinates()
computeAttachmentCoordinates
in interface IlpAttachable
protected void computeChildrenAttachmentCoordinates()
public void computeAttachmentBounds()
protected void validateComponent()
public IlpAttachment getAttachment(IlpGraphic graphic)
getAttachment
in interface IlpAttachmentManager
public void setAttachment(IlpGraphic graphic, IlpAttachment attachment)
setAttachment
in interface IlpAttachmentManager
public void computeAttachmentCoordinates(IlpGraphic graphic)
computeAttachmentCoordinates
in interface IlpAttachmentManager
public JComponent getComponent()
getComponent
in interface IlpGraphic
protected void createComponent()
public void addChild(IlpGraphic child)
addChild
in interface IlpGraphicContainment
public void removeChild(IlpGraphic child)
removeChild
in interface IlpGraphicContainment
public void removeChildren()
removeChildren
in interface IlpGraphicContainment
public Collection getChildren()
getChildren
in interface IlpGraphicContainment
public IlpGraphic getChild(int index)
public int getChildCount()
getChildCount
in interface IlpGraphicContainment
public void apply(ilog.cpl.graphic.internal.IlpApplyToGraphic f)
apply
in interface ilog.cpl.graphic.internal.IlpGraphicModifier
public void apply(ilog.cpl.graphic.internal.IlpApplyToGraphic f, boolean postOrder)
apply
in interface ilog.cpl.graphic.internal.IlpGraphicModifier
public Object call(ilog.cpl.graphic.internal.IlpCallOnGraphic f)
call
in interface ilog.cpl.graphic.internal.IlpGraphicModifier
public IlpGraphic getInnermostGraphic(IlpPoint viewLocation)
getInnermostGraphic
in interface ilog.cpl.graphic.internal.IlpComposite
viewLocation
- Location, in stationary coordinates, inside this
composite graphicpublic IlpRect getBaseRect(double centerx, double centery)
If the given graphic is not a composite one, this method returns null.
getBaseRect
in interface ilog.cpl.graphic.internal.IlpComposite
centerx
- X coordinate of the center pointcentery
- Y coordinate of the center pointpublic IlpPoint getCenterPoint(double rectx, double recty, double rectw, double recth)
getCenterPoint
in interface ilog.cpl.graphic.internal.IlpComposite
rectx
- recty
- rectw
- recth
- public IlpPoint getTopLeftLocation(double centerx, double centery, double width, double height)
When the graphic is a composite graphic (IlpCompositeGraphic or IlvCompositeGraphic) the center point is considered the center of the base, and not the center of the whole composite.
getTopLeftLocation
in interface ilog.cpl.graphic.internal.IlpComposite
centerx
- X coordinate of the center pointcentery
- Y coordinate of the center pointwidth
- Default graphic widthheight
- Default graphic height© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.