public class IlvSplineLinkSelection extends IlvLinkImageSelection
IlvSplineLinkImage
.CIRCLE_SHAPE, defaultHandleBackgroundColor, defaultHandleColor, defaultHandleShape, defaultHandleSize, FILLED_CIRCLE_SHAPE, FILLED_SQUARE_SHAPE, SQUARE_SHAPE
Constructor and Description |
---|
IlvSplineLinkSelection(IlvSplineLinkImage obj)
Creates a new spline link selection object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterLoopAllHandles()
This is called by this class after iterating over all handles
and calling
getHandle(int, ilog.views.IlvTransformer) . |
protected void |
beforeLoopAllHandles(IlvTransformer t)
This is called by this class before iterating over all handles
and calling
getHandle(int, ilog.views.IlvTransformer) . |
IlvRect |
boundingBox(IlvTransformer t)
Returns the bounding box of the object.
|
void |
draw(Graphics dst,
IlvTransformer t)
Draws the object.
|
void |
drawWithoutHandles(Graphics dst,
IlvTransformer t)
Draws the object without the handles.
|
String |
getDefaultInteractor()
Returns the class name of the interactor used to edit polypoints.
|
IlvPoint |
getHandle(int i,
IlvTransformer t)
Returns the location of a handle.
|
IlvSplineLinkImage |
getSplineLink()
Returns the selected object.
|
static boolean |
IsHandlesOnSplineMode()
Returns whether the handles of the spline link are on the spline.
|
static boolean |
IsShowTangentsMode()
Returns whether the spline tangents are shown additionally to the
selection handles for spline links.
|
static void |
SetDefaultInteractor(String interactor)
This method allows you to change the default interactor for instances
of this class.
|
static void |
SetHandlesOnSplineMode(boolean enable)
Sets whether the handles of the spline link are on the spline.
|
static void |
SetShowTangentsMode(boolean enable)
Sets whether the tangents are shown additionally to the selection
handles for spline links.
|
contains, getHandleCardinal, getPolyPoints, isClosedMode, isOptimizedDrawingEnabled, setClosedMode
getActiveHandlesColor, getHandle, getHandlesColor, getHandlesShape, getHandlesSize, isActive, onEnter, onExit, setActiveHandlesColor, setHandlesColor, setHandlesShape, setHandlesSize, zoomable
applyTransform, copy, getObject, isVisible
addActionListener, 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, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemoved, write
public IlvSplineLinkSelection(IlvSplineLinkImage obj)
obj
- the selected objectpublic IlvRect boundingBox(IlvTransformer t)
boundingBox
in class IlvPolyPointsSelection
t
- 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()
,
IlvGraphic
public void draw(Graphics dst, IlvTransformer t)
draw
in class IlvHandlesSelection
dst
- The destination Graphics.t
- The transformation used to draw the object.IlvGraphic.callDraw(Graphics,IlvTransformer)
,
IlvGraphic.boundingBox(IlvTransformer)
,
IlvGraphic.zoomable()
,
IlvGraphic
public void drawWithoutHandles(Graphics dst, IlvTransformer t)
drawWithoutHandles
in class IlvHandlesSelection
dst
- The destination Graphics.t
- The transformation used to draw the object.public IlvPoint getHandle(int i, IlvTransformer t)
getPointAt
method of the selected
IlvSplineLinkImage
object.getHandle
in class IlvPolyPointsSelection
i
- the index of the handle.t
- the transformer through which the object is drawn.protected void beforeLoopAllHandles(IlvTransformer t)
getHandle(int, ilog.views.IlvTransformer)
. Subclasses can override this method
to do preparations so that getHandle(int, ilog.views.IlvTransformer)
is fast, e.g. fill
certain caches that are needed by getHandle(int, ilog.views.IlvTransformer)
.beforeLoopAllHandles
in class IlvHandlesSelection
t
- The transformer to draw this object.afterLoopAllHandles()
protected void afterLoopAllHandles()
getHandle(int, ilog.views.IlvTransformer)
. Subclasses can override this method
to do cleanup caches that were needed by getHandle(int, ilog.views.IlvTransformer)
.afterLoopAllHandles
in class IlvHandlesSelection
beforeLoopAllHandles(ilog.views.IlvTransformer)
public IlvSplineLinkImage getSplineLink()
public String getDefaultInteractor()
IlvSplineLinkEdition
.getDefaultInteractor
in class IlvLinkImageSelection
IlvSplineLinkEdition
public static void SetDefaultInteractor(String interactor)
null
will recover the initial interactor.
This method allows to change the default interactor this class and all
subclasses that do not override getDefaultInteractor()
without subclassing this class.interactor
- The new interactor.getDefaultInteractor()
public static boolean IsHandlesOnSplineMode()
IlvGraphicUtil.COMPATIBLE_SMOOTHNESS
or
IlvGraphicUtil.AUTO_SMOOTHNESS
, the handles of
the spline link are always outside the spline.public static void SetHandlesOnSplineMode(boolean enable)
IlvGraphicUtil.COMPATIBLE_SMOOTHNESS
or
IlvGraphicUtil.AUTO_SMOOTHNESS
, the handles of
the spline link are always outside the spline.
For all other values of the smoothness, the handles are by default on
the spline link.public static boolean IsShowTangentsMode()
public static void SetShowTangentsMode(boolean enable)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.