ilog.views.graphic.composite.layout
Class IlvAttachmentLocation

java.lang.Object
  extended by ilog.views.graphic.composite.layout.IlvAttachmentLocation
All Implemented Interfaces:
IlvPersistentObject
Direct Known Subclasses:
IlvLinkAttachmentLocation

public abstract class IlvAttachmentLocation
extends Object
implements IlvPersistentObject

This class contains the code to manipulate the (x,y) value of a given attachment point (for example, upper-right corner) of an IlvAttachable

Since:
JViews 6.0
See Also:
IlvAttachable

Field Summary
static IlvAttachmentLocation BottomCenter
          Attachment to the bottom center point of the graphic instance.
static IlvAttachmentLocation BottomLeft
          Attachment to the bottom left corner of the graphic instance.
static IlvAttachmentLocation BottomRight
          Attachment to the bottom right corner of the graphic instance.
static IlvAttachmentLocation Center
          Attachment to the center of the graphic instance.
static IlvAttachmentLocation CenterPostOrderFirst
          Attachment to the center of the graphic instance according to the postorder traversal scheme.
static IlvAttachmentLocation HotSpot
          Attachment to the hotspot point of the graphic instance.
static IlvAttachmentLocation LeftCenter
          Attachment to the left center point of the graphic instance.
static IlvAttachmentLocation LeftHotSpot
          Attachment to the left hotspot point of the graphic instance.
static IlvAttachmentLocation RightCenter
          Attachment to the right center point of the graphic instance.
static IlvAttachmentLocation TopCenter
          Attachment to the top center point of the graphic instance.
static IlvAttachmentLocation TopLeft
          Attachment to the top left corner of the graphic instance.
static IlvAttachmentLocation TopRight
          Attachment to the top right corner of the graphic instance.
 
Constructor Summary
IlvAttachmentLocation(String name)
          Creates a new attachment location with the given name.
 
Method Summary
 String getName()
          Returns the name of the attachment location.
abstract  IlvPoint getValue(IlvAttachable graphic)
          Gets the value of the location.
 void setName(String name)
          Sets the name of the attachment location.
abstract  boolean setValue(IlvAttachable graphic, IlvPoint value)
          Sets the value of the location, by moving the element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.views.io.IlvPersistentObject
write
 

Field Detail

TopLeft

public static final IlvAttachmentLocation TopLeft
Attachment to the top left corner of the graphic instance.


TopCenter

public static final IlvAttachmentLocation TopCenter
Attachment to the top center point of the graphic instance.


TopRight

public static final IlvAttachmentLocation TopRight
Attachment to the top right corner of the graphic instance.


LeftCenter

public static final IlvAttachmentLocation LeftCenter
Attachment to the left center point of the graphic instance.


Center

public static final IlvAttachmentLocation Center
Attachment to the center of the graphic instance.


CenterPostOrderFirst

public static final IlvAttachmentLocation CenterPostOrderFirst
Attachment to the center of the graphic instance according to the postorder traversal scheme.


RightCenter

public static final IlvAttachmentLocation RightCenter
Attachment to the right center point of the graphic instance.


BottomLeft

public static final IlvAttachmentLocation BottomLeft
Attachment to the bottom left corner of the graphic instance.


BottomCenter

public static final IlvAttachmentLocation BottomCenter
Attachment to the bottom center point of the graphic instance.


BottomRight

public static final IlvAttachmentLocation BottomRight
Attachment to the bottom right corner of the graphic instance.


HotSpot

public static final IlvAttachmentLocation HotSpot
Attachment to the hotspot point of the graphic instance.


LeftHotSpot

public static final IlvAttachmentLocation LeftHotSpot
Attachment to the left hotspot point of the graphic instance.

Constructor Detail

IlvAttachmentLocation

public IlvAttachmentLocation(String name)
Creates a new attachment location with the given name.

Method Detail

getValue

public abstract IlvPoint getValue(IlvAttachable graphic)
Gets the value of the location.


setValue

public abstract boolean setValue(IlvAttachable graphic,
                                 IlvPoint value)
Sets the value of the location, by moving the element.

Returns:
true if the element's position has changed.

setName

public void setName(String name)
Sets the name of the attachment location.


getName

public String getName()
Returns the name of the attachment location.

Since:
JViews 7.5


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