|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.model.IlpDefaultObject
ilog.tgo.model.IltObject
ilog.tgo.model.IltCardItem
public abstract class IltCardItem
Abstract class to define common characteristics of card item objects.
| Nested Class Summary | |
|---|---|
static class |
IltCardItem.Type
The abstract class used to manage the types of the subclasses of IltCardItem. |
| Nested classes/interfaces inherited from class ilog.tgo.model.IltObject |
|---|
IltObject.ListPrimaryStateStyleValueProvider, IltObject.LogicalType, IltObject.TinyType |
| Field Summary | |
|---|---|
static IlpBooleanKey |
AntiAliasing
Deprecated. Please use CSS property antialiasing instead. |
static IltAttribute |
DirectionAttribute
Attribute used to define the direction of the card item. |
static IltObjectInfo |
metainfo
Contains metainformation about this IltObject implementation. |
static IltAttribute |
TypeAttribute
Attribute used to define the type of the LED or Port object. |
| Fields inherited from interface ilog.cpl.model.IlpAttributeValueHolder |
|---|
VALUE_NOT_SET |
| Constructor Summary | |
|---|---|
IltCardItem(IlpClass ilpClass,
Object identifier)
Creates a new instance of IltCardItem with a given class and identifier. |
|
IltCardItem(IltObjectState oState,
String label)
Creates a new instance of IltCardItem with label
and object state. |
|
IltCardItem(Object identifier)
Creates a new instance of IltCardItem with an identifier. |
|
| Method Summary | |
|---|---|
void |
applyTransform(IltGraphicManager manager,
IltGraphic graphic,
IlvTransformer transf,
IlpPositionSource reason)
Deprecated. |
void |
computeGraphic(IltGraphicManager manager,
IlvPoint position)
Deprecated. Adding a object to a datasource, connected to a graphic component such as an IlpNetwork, is enough to make its graphic representation
visible. Once visible, it is updated automatically when needed. |
protected void |
copyFrom(IltCardItem other)
|
ilog.tgo.graphic.internal.IltGraphicUpdate |
createPositionUpdate(Object position,
Object positionInManager)
Creates the graphic update responsible for setting the position/shape to a graphical representation. |
ilog.tgo.graphic.internal.base.IltBaseElement |
createTinyBase(IltcGraphicElementAggregate root)
Creates a base element, suitable for this particular kind of object, for us with the Tiny Graphic Representation Style (GRS). |
IlvRect |
getBaseRectangle(IltGraphicManager manager)
Returns the base rectangle of the graphic representation in a given IltGraphicManager. |
protected IlvPoint |
getCenterPoint(IltGraphicManager manager,
IltGraphic graphic)
Returns the position of the graphic representation in a given IltGraphicManager. |
static IltLegend |
GetClassLegend()
Deprecated. Please use IlpStyleManager to retrieve the appropriate
style for this IlpClass. |
ilog.tgo.model.internal.IltCardItemContainer |
getContainer()
Returns the container of this card item. |
static IltLegendModifier |
GetDirectionMapping(int direction)
Access the legend modifier associated with the given direction. |
static IltObjectInfo |
GetIlpClass()
Returns the IlpClass corresponding to this Java class. |
ilog.util.internal.IlAVector |
getMappedForUserList()
Access method to retrieve the user mappings. |
boolean |
isItemMoveable(IltGraphic graphic)
Check whether or not a card item should be affected by transformations (when inside a composite card, a card item should not be affected by zooming transformations). |
boolean |
isValidPosition(Object position)
Determines whether the argument is a valid position/shape for the card item object. |
void |
setAttributeValue(IlpAttribute attribute,
Object value)
Sets the value of an attribute of this object. |
void |
setBaseRectangle(IltGraphicManager manager,
IlvRect newBaseRectangle)
Applies a transformation to the graphic representation in a given IltGraphicManager, attempting to make the base rectangle resemble the given rectangle. |
void |
setCenterPoint(IltGraphicManager manager,
IltGraphic graphic,
IlvPoint position,
IlpPositionSource reason)
Changes the position of the graphic representation in a given IltGraphicManager. |
void |
setContainer(ilog.tgo.model.internal.IltCardItemContainer cardContainer)
Specifies the container of this card item. |
static void |
SetDirectionMapping(IltLegendModifier modifier,
int direction)
Set a new legend modifier for a given position. |
void |
setShapeInManagerGraphicSetting(IltGraphic graphic,
Object position,
IlpPositionSource reason)
Set the ShapeInManager graphic setting. |
Object |
transformPosition(IltGraphicManager manager,
Object position)
Applies the manager transformer to the position parameter. |
void |
updateShapeGraphicSettingInManager(IltGraphicManager manager,
IltGraphic graphic,
Object newShape,
IlpPositionSource reason)
If the graphic representation is visible, updates the shape graphic setting in manager coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static IltObjectInfo metainfo
IltObject implementation.
public static IltAttribute TypeAttribute
Attribute name: type.
Value type: IltCardItem.Type.
public static IltAttribute DirectionAttribute
IlpDirection.
Attribute name: direction.
Value type: IlpDirection.
IlpDirectionpublic static IlpBooleanKey AntiAliasing
antialiasing instead.false by default.
IltObjectCustomization.isAntialiasing()| Constructor Detail |
|---|
public IltCardItem(Object identifier)
IltCardItem with an identifier.
identifier - The identifier of this new instance
public IltCardItem(IlpClass ilpClass,
Object identifier)
IltCardItem with a given class and identifier.
ilpClass - The business class of this new instance. It must be a
subclass of IltCardItem.identifier - The identifier of this new instance
public IltCardItem(IltObjectState oState,
String label)
IltCardItem with label
and object state.
oState - The object statelabel - The card label| Method Detail |
|---|
public static IltObjectInfo GetIlpClass()
IlpClass corresponding to this Java class.
Here the IlpClass interface is implemented by IltObjectInfo.
public ilog.tgo.model.internal.IltCardItemContainer getContainer()
IltCardItemContainer object
that contains this card itempublic static IltLegendModifier GetDirectionMapping(int direction)
Every time when a card item is rotated to a specific direction, JTGO updates a set of legend values so decorations follow the new orientation.
direction - The direction
public static void SetDirectionMapping(IltLegendModifier modifier,
int direction)
The legend modifier defines the legend keys and values that will be set when the card item is set to the given direction.
modifier - The new legend modifierdirection - The corresponding directionpublic void setContainer(ilog.tgo.model.internal.IltCardItemContainer cardContainer)
This method must only be called internally.
cardContainer - A reference to the IltCardItemContainer
object that contains this card item.
public void setAttributeValue(IlpAttribute attribute,
Object value)
VALUE_NOT_SET for the value
argument.
setAttributeValue in interface IlpAttributeValueHoldersetAttributeValue in class IltObjectattribute - The attribute of which the value is set.value - The new value of the attribute, or
VALUE_NOT_SET to remove the value
of the attribute.
IllegalArgumentException - if the attribute cannot have
its value modified.public IlvRect getBaseRectangle(IltGraphicManager manager)
getBaseRectangle in class IltObjectnull if the base has no extent at allpublic static IltLegend GetClassLegend()
IlpStyleManager to retrieve the appropriate
style for this IlpClass.
public ilog.util.internal.IlAVector getMappedForUserList()
getMappedForUserList in class IltObject
public void computeGraphic(IltGraphicManager manager,
IlvPoint position)
IlpNetwork, is enough to make its graphic representation
visible. Once visible, it is updated automatically when needed.
IltGraphicManager. The graphic representation is drawn
at the given position.
manager - The graphic managerposition - The relative position of the graphic representationpublic ilog.tgo.graphic.internal.base.IltBaseElement createTinyBase(IltcGraphicElementAggregate root)
createTinyBase in class IltObjectIltCompositeGraphic.createBase(IltcGraphicElementAggregate, IltObject),
IltGraphicRepresentationStyle,
IltTinyElementBase,
IltObject.createBase(IltcGraphicElementAggregate)
public Object transformPosition(IltGraphicManager manager,
Object position)
computeGraphic(mgr, position)
transformPosition in class IltObjectmanager - The graphic managerposition - A valid position for the object
public boolean isValidPosition(Object position)
isValidPosition in class IltObjectposition - The given object to be validated, must be instance of
IlvPoint class
true if the given position is instance of
IlvPoint class, false
otherwise
public ilog.tgo.graphic.internal.IltGraphicUpdate createPositionUpdate(Object position,
Object positionInManager)
null, the position/shape set will be
the default value.
createPositionUpdate in class IltObjectposition - The shape in stationary coordinatespositionInManager - The shape in manager coordinates (takes into
account the logical zoom transformer)
public void updateShapeGraphicSettingInManager(IltGraphicManager manager,
IltGraphic graphic,
Object newShape,
IlpPositionSource reason)
This method must to be called after the shape graphic setting (in stationary coordinates) has changed.
updateShapeGraphicSettingInManager in class IltObjectmanager - The graphic managergraphic - The graphic representation in managernewShape - The new shape in stationary coordinates;
null means the current value of the
shape graphic settingreason - the reason for the shape change, or null if
unknown
public void applyTransform(IltGraphicManager manager,
IltGraphic graphic,
IlvTransformer transf,
IlpPositionSource reason)
IltObjectIltGraphicManager.
Note: t is given relative to the stationary
coordinate system, which is the coordinate system used by the other
IltObject subclasses API functions.
Note that this method is not supposed to be used when this
IltObject is in a DataSource.
applyTransform in class IltObjectmanager - The graphic manager where the object is displayed.graphic - The graphic representation in the manager.transf - The transform parameter.reason - The reason for the shape change, or null if unknownIltObject.applyTransform(ilog.tgo.graphic.IltGraphicManager, ilog.views.IlvTransformer),
IltGraphicManager.getZoomTransformer()
public void setCenterPoint(IltGraphicManager manager,
IltGraphic graphic,
IlvPoint position,
IlpPositionSource reason)
setCenterPoint in class IltObjectmanager - The graphic managergraphic - The graphic representation in managerposition - The new position
protected IlvPoint getCenterPoint(IltGraphicManager manager,
IltGraphic graphic)
getCenterPoint in class IltObjectmanager - The graphic managergraphic - The graphic representation in manager
public void setBaseRectangle(IltGraphicManager manager,
IlvRect newBaseRectangle)
setBaseRectangle in class IltObjectmanager - The graphic managernewBaseRectangle - Rectangle for base
public void setShapeInManagerGraphicSetting(IltGraphic graphic,
Object position,
IlpPositionSource reason)
ShapeInManager graphic setting.
setShapeInManagerGraphicSetting in class IltObjectgraphic - The graphic associated to the objectposition - The position to be setpublic boolean isItemMoveable(IltGraphic graphic)
graphic - The graphic associated to the card item
true when the card item should
be movable; false otherwiseprotected void copyFrom(IltCardItem other)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||