public class IlvHyperEdgeSelection extends IlvHandlesSelection
CIRCLE_SHAPE, defaultHandleBackgroundColor, defaultHandleColor, defaultHandleShape, defaultHandleSize, FILLED_CIRCLE_SHAPE, FILLED_SQUARE_SHAPE, SQUARE_SHAPE| Constructor and Description |
|---|
IlvHyperEdgeSelection(IlvHyperEdge obj)
Creates a new selection object.
|
| Modifier and Type | Method and Description |
|---|---|
IlvRect |
boundingBox(IlvTransformer t)
Returns the bounding box of the object.
|
protected IlvPoint[] |
calcSelectionHandles(IlvTransformer t)
Recalculates the handle points at the given transformer.
|
boolean |
contains(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
Test if the specified point is inside a handle or
inside the selected object.
|
String |
getDefaultInteractor()
Returns the default interactor.
|
IlvPoint |
getHandle(int i,
IlvTransformer t)
Returns the location of a handle.
|
int |
getHandleCardinal()
Returns the number of handles for this object.
|
boolean |
isOptimizedDrawingEnabled()
This method allows or disables an optimization
for drawing a selection object and its selected
object.
|
static void |
SetDefaultInteractor(String interactor)
This method allows to change the default interactor for instances
of this class.
|
void |
setGraphicBag(IlvGraphicBag bag)
Sets the graphic bag of this object.
|
afterLoopAllHandles, beforeLoopAllHandles, draw, drawWithoutHandles, getActiveHandlesColor, getHandle, getHandlesColor, getHandlesShape, getHandlesSize, isActive, onEnter, onExit, setActiveHandlesColor, setHandlesColor, setHandlesShape, setHandlesSize, zoomableapplyTransform, copy, getObject, isVisibleaddActionListener, addNamedPropertyListener, allViewsRemoved, baseTextDirectionChanged, blinkingStateOn, boundingBox, callDraw, componentOrientationChanged, getAndAssociateObjectInteractor, getBaseTextDirection, getBlinkingAction, getBlinkingObjectOwner, getBlinkingOffPeriod, getBlinkingOnPeriod, getCenter, getComponentOrientation, getGraphicBag, GetGraphicObject, getIntersectionWithOutline, getLocale, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getProperty, getResolvedBaseTextDirection, getToolTipBaseTextDirection, getToolTipText, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, getULocale, getZOrderIndex, hasProperty, inside, intersects, invalidateBBoxCache, invalidateBidiCache, isBaseTextDirectionSensitive, isComponentOrientationSensitive, isDataFlavorSupported, isEditable, isInApplyToObject, isLocaleSensitive, isMovable, isPersistent, isSelectable, localeChanged, makeSelection, move, move, moveResize, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBackground, setBaseTextDirection, setBaseTextDirectionDuringConstruction, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setFillOn, setForeground, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemoved, writepublic IlvHyperEdgeSelection(IlvHyperEdge obj)
public void setGraphicBag(IlvGraphicBag bag)
setGraphicBag in class IlvGraphicbag - The graphic bag to contain this graphic object.IlvGraphicpublic IlvPoint getHandle(int i, IlvTransformer t)
getHandle in class IlvHandlesSelectioni - the index of the handle.t - the transformer through which the object is drawn.public int getHandleCardinal()
getHandleCardinal in class IlvHandlesSelectionprotected IlvPoint[] calcSelectionHandles(IlvTransformer t)
public boolean contains(IlvPoint p, IlvPoint tp, IlvTransformer t)
contains in class IlvHandlesSelectionp - The point to be tested.tp - The point p transformed by the transformer
t.t - The transformation used to draw the object.true if the point lies inside this graphic object.IlvGraphicpublic IlvRect boundingBox(IlvTransformer t)
boundingBox in class IlvHandlesSelectiont - The transformer used to draw the object. If the
transformer is null, the bounding box for the
identity transformer is returned.IlvGraphic.draw(java.awt.Graphics, ilog.views.IlvTransformer),
IlvGraphic.zoomable(),
IlvGraphicpublic boolean isOptimizedDrawingEnabled()
true if the selection object
covers completely the selected objects. In other words if the
bounding box of this selection object is the same or bigger
than the bounding box of the corresponding selected object.
Note that the default value is false.isOptimizedDrawingEnabled in class IlvSelectionpublic String getDefaultInteractor()
SetDefaultInteractor it is an instance of
ilog.views.siemens.hypergraph.IlvHyperEdgeEdition.getDefaultInteractor in class IlvSelectionSetDefaultInteractor(java.lang.String)public static void SetDefaultInteractor(String interactor)
interactor - the new interactorgetDefaultInteractor()© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.