IlpGraphic
object instead. Use its
function getComponent()
to retrieve a JComponent,
which you can add to any other JComponent
.@Deprecated public class IltComponentGraphic extends JComponent implements IltGraphic, IlvGraphicBag, MouseListener, MouseMotionListener
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
IltComponentGraphic(IltObject object,
IltGraphicManager manager)
Deprecated.
Default constructor
|
Modifier and Type | Method and Description |
---|---|
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.
Invoked when the mouse button has been clicked (pressed
and released) on a component.
|
void |
mouseDragged(MouseEvent e)
Deprecated.
Invoked when a mouse button is pressed on a component and then
dragged.
|
void |
mouseEntered(MouseEvent e)
Deprecated.
Invoked when the mouse enters a component.
|
void |
mouseExited(MouseEvent e)
Deprecated.
Invoked when the mouse exits a component.
|
void |
mouseMoved(MouseEvent e)
Deprecated.
Invoked when the mouse cursor has been moved onto a component
but no buttons have been pushed.
|
void |
mousePressed(MouseEvent e)
Deprecated.
Invoked when a mouse button has been pressed on a component.
|
void |
mouseReleased(MouseEvent e)
Deprecated.
Invoked when a mouse button has been released on a component.
|
void |
moveObject(IlvGraphic graphic,
double x,
double 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.
Converts the object into a human-readable format.
|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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
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, transferFocusDownCycle, validate, validateTree
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, getAccessibleContext, 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, 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, transferFocusBackward, transferFocusUpCycle
public IltComponentGraphic(IltObject object, IltGraphicManager manager)
protected void createGraphic(IltObject object, IltGraphicManager manager)
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public boolean contains(int x, int y)
contains
in class JComponent
protected void paintChildren(Graphics g)
paintChildren
in class JComponent
protected void paintBorder(Graphics g)
paintBorder
in class JComponent
protected void processMouseMotionEvent(MouseEvent e)
processMouseMotionEvent
in class JComponent
public void processMouseEvent(MouseEvent le, MouseEvent ge)
protected void processMouseEvent(MouseEvent le)
processMouseEvent
in class JComponent
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public IlvRect getBoundingBox(IlvTransformer t)
t
- transformer which is applied in the component.public IlvRect getBaseBounds()
public IltCompositeGraphic getCompositeGraphic()
getCompositeGraphic
in interface IltGraphic
@Deprecated public IltLegend getLegend()
getLegend
in interface IltGraphic
@Deprecated public IltCompositeInteractions getInteractions()
getInteractions
in interface IltGraphic
IltObject.getGraphicInteractions(ilog.tgo.graphic.IltGraphicManager)
public boolean isContainerGraphic()
IltGraphic
isContainerGraphic
in interface IltGraphic
public IltGraphic getParentGraphic()
IltGraphic
getParentGraphic
in interface IltGraphic
null
if this graphic representation is not a
subordinate graphic object of a containerpublic void doComputeGraphic(IltObject object, IltGraphicManager manager, ilog.tgo.graphic.internal.IltComputeAmount amount)
doComputeGraphic
in interface IltGraphic
public void afterComputeGraphic(IltObject object, IltGraphicManager manager)
afterComputeGraphic
in interface IltGraphic
public void addObject(IlvGraphic graphic, boolean redraw)
IlvGraphicBag
interface.
Do not call this method directly.addObject
in interface IlvGraphicBag
graphic
- the graphic object.redraw
- if true the object is redrawn.public void removeObject(IlvGraphic graphic, boolean redraw)
IlvGraphicBag
interface.
Do not call this method directly.removeObject
in interface IlvGraphicBag
graphic
- the graphic object.redraw
- if true the object is redrawn.public void reDrawObj(IlvGraphic graphic)
IlvGraphicBag
interface.
Do not call this method directly.reDrawObj
in interface IlvGraphicBag
graphic
- the graphic object.public void reDrawRegion(IlvRegion region)
IlvGraphicBag
interface.
Do not call this method directly.reDrawRegion
in interface IlvGraphicBag
region
- the region to redraw.public void reshapeObject(IlvGraphic obj, IlvRect newrect, boolean redraw)
IlvGraphicBag
interface.
Do not call this method directly.reshapeObject
in interface IlvGraphicBag
obj
- The graphic object.newrect
- The new desired bounding rectangle.redraw
- If true
the object is redrawn.public void moveObject(IlvGraphic graphic, double x, double y, boolean redraw)
IlvGraphicBag
interface.
Do not call this method directly.moveObject
in interface IlvGraphicBag
graphic
- The graphic object.x
- The new desired x position.y
- The new desired y position.redraw
- If true
the object is redrawn.public void applyToObject(IlvGraphic graphic, IlvApplyObject f, Object arg, boolean redraw)
IlvGraphicBag
interface.
Do not call this method directly.applyToObject
in interface IlvGraphicBag
graphic
- the graphic object.f
- the method to apply.arg
- the arguments passed to f.redraw
- if true the object is redrawn.public boolean setObjectName(IlvGraphic graphic, String name)
IlvGraphicBag
interface.
Do not call this method directly.setObjectName
in interface IlvGraphicBag
graphic
- The graphic object.name
- The new name.true
if the name can be changed.public IlvGraphic getObject(String name)
null
.getObject
in interface IlvGraphicBag
name
- The graphic object name.public IlvGraphicBag getGraphicBag()
IlvGraphicBag
interface.
Do not call this method directly.getGraphicBag
in interface IlvGraphicBag
public IlvGraphicEnumeration getObjects()
IlvGraphicBag
interface.
Do not call this method directly.getObjects
in interface IlvGraphicBag
IlvGraphic
objects, or
null
.public void dispose()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.