ilog.tgo.swing
Class IltComponentGraphic

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by ilog.tgo.swing.IltComponentGraphic
All Implemented Interfaces:
IltGraphic, IlvGraphicBag, MouseListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener

Deprecated. Please use IlpGraphic object instead. Use its function getComponent() to retrieve a JComponent, which you can add to any other JComponent.

public class IltComponentGraphic
extends JComponent
implements IltGraphic, IlvGraphicBag, MouseListener, MouseMotionListener

This class describes a component graphic object used to represent a telecom object in a Swing container.

Since:
JTGO 2.0
See Also:
Serialized Form
Deprecated Since:
JViews 8.1

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static boolean verboseComponent
          Deprecated.  
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
IltComponentGraphic(IltObject object, IltGraphicManager manager)
          Deprecated. Default constructor
 
Method Summary
 void addObject(IlvGraphic graphic, boolean redraw)
          Deprecated. Implementation of the IlvGraphicBag interface.
 void afterComputeGraphic(IltObject object, IltGraphicManager manager)
          Deprecated. This method is called after computing the graphical representation of the objects.
 void applyToObject(IlvGraphic graphic, IlvApplyObject f, Object arg, boolean redraw)
          Deprecated. Implementation of the IlvGraphicBag interface.
 boolean contains(int x, int y)
          Deprecated. Returns if the given coordinates are contained in this component.
protected  void createGraphic(IltObject object, IltGraphicManager manager)
          Deprecated. Creates the graphical representation of the object in the given graphic manager.
 void dispose()
          Deprecated. Dispose this graphic object.
 void doComputeGraphic(IltObject object, IltGraphicManager manager, ilog.tgo.graphic.internal.IltComputeAmount amount)
          Deprecated. Computes the symbolic graphic representation of the object.
 IlvRect getBaseBounds()
          Deprecated. Returns the base bounding box.
 IlvRect getBoundingBox(IlvTransformer t)
          Deprecated. Returns the bounds of the object taking into account its subitems.
 IltCompositeGraphic getCompositeGraphic()
          Deprecated. Returns the underlying IltCompositeGraphic instance.
 IlvGraphicBag getGraphicBag()
          Deprecated. Implementation of the IlvGraphicBag interface.
 IltCompositeInteractions getInteractions()
          Deprecated.  
 IltLegend getLegend()
          Deprecated.  
 IlvGraphic getObject(String name)
          Deprecated. Returns the graphic object with that name if exists in the bag, otherwise returns null.
 IlvGraphicEnumeration getObjects()
          Deprecated. Implementation of the IlvGraphicBag interface.
 IltGraphic getParentGraphic()
          Deprecated. Returns the graphic object which represents the container this graphic representation belongs to, in the same IltGraphicManager.
 Dimension getPreferredSize()
          Deprecated. Returns the preferred size for this component.
 boolean isContainerGraphic()
          Deprecated. Returns true if this graphic representation belongs to a container.
 void mouseClicked(MouseEvent e)
          Deprecated.  
 void mouseDragged(MouseEvent e)
          Deprecated.  
 void mouseEntered(MouseEvent e)
          Deprecated.  
 void mouseExited(MouseEvent e)
          Deprecated.  
 void mouseMoved(MouseEvent e)
          Deprecated.  
 void mousePressed(MouseEvent e)
          Deprecated.  
 void mouseReleased(MouseEvent e)
          Deprecated.  
 void moveObject(IlvGraphic graphic, float x, float y, boolean redraw)
          Deprecated. Implementation of the IlvGraphicBag interface.
protected  void paintBorder(Graphics g)
          Deprecated.  
protected  void paintChildren(Graphics g)
          Deprecated.  
protected  void processMouseEvent(MouseEvent le)
          Deprecated.  
 void processMouseEvent(MouseEvent le, MouseEvent ge)
          Deprecated. Process mouse events, forwarding the events to the composite interactions.
protected  void processMouseMotionEvent(MouseEvent e)
          Deprecated. Process mouse motion events, forwarding the events to the tooltip manager, if there is one attached to the parent container.
 void reDrawObj(IlvGraphic graphic)
          Deprecated. Implementation of the IlvGraphicBag interface.
 void reDrawRegion(IlvRegion region)
          Deprecated. Implementation of the IlvGraphicBag interface.
 void removeObject(IlvGraphic graphic, boolean redraw)
          Deprecated. Implementation of the IlvGraphicBag interface.
 void reshapeObject(IlvGraphic obj, IlvRect newrect, boolean redraw)
          Deprecated. Implementation of the IlvGraphicBag interface.
 boolean setObjectName(IlvGraphic graphic, String name)
          Deprecated. Implementation of the IlvGraphicBag interface.
 String toString()
          Deprecated.  
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

verboseComponent

public static final boolean verboseComponent
Deprecated. 
See Also:
Constant Field Values
Internal method or field: do not use!
Constructor Detail

IltComponentGraphic

public IltComponentGraphic(IltObject object,
                           IltGraphicManager manager)
Deprecated. 
Default constructor

Internal method or field: do not use!
Method Detail

createGraphic

protected void createGraphic(IltObject object,
                             IltGraphicManager manager)
Deprecated. 
Creates the graphical representation of the object in the given graphic manager.

Internal method or field: do not use!

getPreferredSize

public Dimension getPreferredSize()
Deprecated. 
Returns the preferred size for this component.

Overrides:
getPreferredSize in class JComponent

contains

public boolean contains(int x,
                        int y)
Deprecated. 
Returns if the given coordinates are contained in this component.

Overrides:
contains in class JComponent

paintChildren

protected void paintChildren(Graphics g)
Deprecated. 
Overrides:
paintChildren in class JComponent

paintBorder

protected void paintBorder(Graphics g)
Deprecated. 
Overrides:
paintBorder in class JComponent

processMouseMotionEvent

protected void processMouseMotionEvent(MouseEvent e)
Deprecated. 
Process mouse motion events, forwarding the events to the tooltip manager, if there is one attached to the parent container.

Overrides:
processMouseMotionEvent in class JComponent
Internal method or field: do not use!

processMouseEvent

public void processMouseEvent(MouseEvent le,
                              MouseEvent ge)
Deprecated. 
Process mouse events, forwarding the events to the composite interactions. The event is local to the component, with coordinates relative to the component.

Internal method or field: do not use!

processMouseEvent

protected void processMouseEvent(MouseEvent le)
Deprecated. 
Overrides:
processMouseEvent in class JComponent
Internal method or field: do not use!

mouseClicked

public void mouseClicked(MouseEvent e)
Deprecated. 
Specified by:
mouseClicked in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent e)
Deprecated. 
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Deprecated. 
Specified by:
mouseExited in interface MouseListener

mousePressed

public void mousePressed(MouseEvent e)
Deprecated. 
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Deprecated. 
Specified by:
mouseReleased in interface MouseListener

mouseDragged

public void mouseDragged(MouseEvent e)
Deprecated. 
Specified by:
mouseDragged in interface MouseMotionListener

mouseMoved

public void mouseMoved(MouseEvent e)
Deprecated. 
Specified by:
mouseMoved in interface MouseMotionListener

getBoundingBox

public IlvRect getBoundingBox(IlvTransformer t)
Deprecated. 
Returns the bounds of the object taking into account its subitems.

Parameters:
t - transformer which is applied in the component.

getBaseBounds

public IlvRect getBaseBounds()
Deprecated. 
Returns the base bounding box. The coordinate system is relative to the surrounding component.


getCompositeGraphic

public IltCompositeGraphic getCompositeGraphic()
Deprecated. 
Returns the underlying IltCompositeGraphic instance.

Specified by:
getCompositeGraphic in interface IltGraphic

getLegend

public IltLegend getLegend()
Deprecated. 

Returns the object containing the customizable graphic properties for this graphic representation.

Specified by:
getLegend in interface IltGraphic
Deprecated Since:
JTGO 3.5

getInteractions

public IltCompositeInteractions getInteractions()
Deprecated. 

Returns the object managing the interactions for this composite object.

Specified by:
getInteractions in interface IltGraphic
See Also:
IltObject.getGraphicInteractions(ilog.tgo.graphic.IltGraphicManager)
Deprecated Since:
JTGO 4.0

isContainerGraphic

public boolean isContainerGraphic()
Deprecated. 
Description copied from interface: IltGraphic
Returns true if this graphic representation belongs to a container.

Specified by:
isContainerGraphic in interface IltGraphic

getParentGraphic

public IltGraphic getParentGraphic()
Deprecated. 
Description copied from interface: IltGraphic
Returns the graphic object which represents the container this graphic representation belongs to, in the same IltGraphicManager.

Specified by:
getParentGraphic in interface IltGraphic
Returns:
null if this graphic representation is not a subordinate graphic object of a container

doComputeGraphic

public void doComputeGraphic(IltObject object,
                             IltGraphicManager manager,
                             ilog.tgo.graphic.internal.IltComputeAmount amount)
Deprecated. 
Computes the symbolic graphic representation of the object. Only to be called while graphic.getLegend() has IN_COMPUTE_GRAPHIC set.

Specified by:
doComputeGraphic in interface IltGraphic
Internal method or field: do not use!

afterComputeGraphic

public void afterComputeGraphic(IltObject object,
                                IltGraphicManager manager)
Deprecated. 
This method is called after computing the graphical representation of the objects. It is mainly used to know when the graphical representation of the subitems have been created.

Specified by:
afterComputeGraphic in interface IltGraphic
Internal method or field: do not use!

addObject

public void addObject(IlvGraphic graphic,
                      boolean redraw)
Deprecated. 
Implementation of the IlvGraphicBag interface. Do not call this method directly.

Specified by:
addObject in interface IlvGraphicBag
Parameters:
graphic - the graphic object.
redraw - if true the object is redrawn.
Internal method or field: do not use!

removeObject

public void removeObject(IlvGraphic graphic,
                         boolean redraw)
Deprecated. 
Implementation of the IlvGraphicBag interface. Do not call this method directly.

Specified by:
removeObject in interface IlvGraphicBag
Parameters:
graphic - the graphic object.
redraw - if true the object is redrawn.
Internal method or field: do not use!

reDrawObj

public void reDrawObj(IlvGraphic graphic)
Deprecated. 
Implementation of the IlvGraphicBag interface. Do not call this method directly.

Specified by:
reDrawObj in interface IlvGraphicBag
Parameters:
graphic - the graphic object.
Internal method or field: do not use!

reDrawRegion

public void reDrawRegion(IlvRegion region)
Deprecated. 
Implementation of the IlvGraphicBag interface. Do not call this method directly.

Specified by:
reDrawRegion in interface IlvGraphicBag
Parameters:
region - the region to redraw.
Internal method or field: do not use!

reshapeObject

public void reshapeObject(IlvGraphic obj,
                          IlvRect newrect,
                          boolean redraw)
Deprecated. 
Implementation of the IlvGraphicBag interface. Do not call this method directly.

Specified by:
reshapeObject in interface IlvGraphicBag
Parameters:
obj - The graphic object.
newrect - The new desired bounding rectangle.
redraw - If true the object is redrawn.
Internal method or field: do not use!

moveObject

public void moveObject(IlvGraphic graphic,
                       float x,
                       float y,
                       boolean redraw)
Deprecated. 
Implementation of the IlvGraphicBag interface. Do not call this method directly.

Specified by:
moveObject in interface IlvGraphicBag
Parameters:
graphic - The graphic object.
x - The new desired x position.
y - The new desired y position.
redraw - If true the object is redrawn.
Internal method or field: do not use!

applyToObject

public void applyToObject(IlvGraphic graphic,
                          IlvApplyObject f,
                          Object arg,
                          boolean redraw)
Deprecated. 
Implementation of the IlvGraphicBag interface. Do not call this method directly.

Specified by:
applyToObject in interface IlvGraphicBag
Parameters:
graphic - the graphic object.
f - the method to apply.
arg - the arguments passed to f.
redraw - if true the object is redrawn.
Internal method or field: do not use!

setObjectName

public boolean setObjectName(IlvGraphic graphic,
                             String name)
Deprecated. 
Implementation of the IlvGraphicBag interface. Do not call this method directly.

Specified by:
setObjectName in interface IlvGraphicBag
Parameters:
graphic - The graphic object.
name - The new name.
Returns:
true if the name can be changed.
Internal method or field: do not use!

getObject

public IlvGraphic getObject(String name)
Deprecated. 
Returns the graphic object with that name if exists in the bag, otherwise returns null.

Specified by:
getObject in interface IlvGraphicBag
Parameters:
name - The graphic object name.
Since:
JTGO 4.0
Internal method or field: do not use!

getGraphicBag

public IlvGraphicBag getGraphicBag()
Deprecated. 
Implementation of the IlvGraphicBag interface. Do not call this method directly.

Specified by:
getGraphicBag in interface IlvGraphicBag
Internal method or field: do not use!

getObjects

public IlvGraphicEnumeration getObjects()
Deprecated. 
Implementation of the IlvGraphicBag interface. Do not call this method directly.

Specified by:
getObjects in interface IlvGraphicBag
Internal method or field: do not use!

dispose

public void dispose()
Deprecated. 
Dispose this graphic object.


toString

public String toString()
Deprecated. 
Overrides: