|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.graphic.IlpAbstractGraphic
ilog.cpl.graphic.IlpCompositeGraphic
public class IlpCompositeGraphic
This class models complex graphics, which can be composed of several other graphic instances.
In order to combine the child graphics, the user may define attachment rules.
Note: Composite graphics are now supported through
ILOG 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 ILOG JViews
Composite Graphics and Cascading Style Sheets.
IlvCompositeGraphic,
IlvAttachmentLayout,
IlvAttachmentConstraint| Field Summary |
|---|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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(float centerx,
float centery)
Deprecated. Returns a rectangle with the location and dimension of the base graphic, if there is one. |
IlpPoint |
getCenterPoint(float rectx,
float recty,
float rectw,
float 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(float centerx,
float centery,
float width,
float 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. |
| 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 |
|---|
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.| Method Detail |
|---|
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 IlpAttachablepublic void computeFixedCoordinates()
computeAttachmentCoordinates will calculate the appropriate
(x,y) position based on the attachment rules.
computeFixedCoordinates in interface IlpAttachablepublic void computeAttachmentCoordinates()
computeAttachmentCoordinates in interface IlpAttachableprotected 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 IlpAttachmentManagerpublic void computeAttachmentCoordinates(IlpGraphic graphic)
computeAttachmentCoordinates in interface IlpAttachmentManagerpublic JComponent getComponent()
getComponent in interface IlpGraphicprotected void createComponent()
public void addChild(IlpGraphic child)
addChild in interface IlpGraphicContainmentpublic void removeChild(IlpGraphic child)
removeChild in interface IlpGraphicContainmentpublic void removeChildren()
removeChildren in interface IlpGraphicContainmentpublic Collection getChildren()
getChildren in interface IlpGraphicContainmentpublic IlpGraphic getChild(int index)
public int getChildCount()
getChildCount in interface IlpGraphicContainmentpublic 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.IlpGraphicModifierpublic Object call(ilog.cpl.graphic.internal.IlpCallOnGraphic f)
call in interface ilog.cpl.graphic.internal.IlpGraphicModifierpublic IlpGraphic getInnermostGraphic(IlpPoint viewLocation)
getInnermostGraphic in interface ilog.cpl.graphic.internal.IlpCompositeviewLocation - Location, in stationary coordinates, inside this
composite graphic
public IlpRect getBaseRect(float centerx,
float centery)
If the given graphic is not a composite one, this method returns null.
getBaseRect in interface ilog.cpl.graphic.internal.IlpCompositecenterx - X coordinate of the center pointcentery - Y coordinate of the center point
public IlpPoint getCenterPoint(float rectx,
float recty,
float rectw,
float recth)
getCenterPoint in interface ilog.cpl.graphic.internal.IlpCompositerectx - recty - rectw - recth -
public IlpPoint getTopLeftLocation(float centerx,
float centery,
float width,
float 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.IlpCompositecenterx - X coordinate of the center pointcentery - Y coordinate of the center pointwidth - Default graphic widthheight - Default graphic height
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||