public class IlvMakeSplineInteractor extends IlvMakePolyPointsInteractor implements IlvPolyPointsObjectFactory
IlvSpline.| Constructor and Description |
|---|
IlvMakeSplineInteractor()
Creates and initializes the interactor.
|
| Modifier and Type | Method and Description |
|---|---|
IlvGraphic |
createObject(IlvPoint[] points)
Called by the interactor
to create the
IlvSpline. |
protected void |
drawGhost(Graphics g)
Draws a ghost while the object is being created.
|
double |
getSmoothness()
Returns the smoothness of the spline to be created.
|
boolean |
isClosed()
Returns
true if the created spline should be closed. |
boolean |
isFillOn()
Returns
true if the inside of the created
object should be filled. |
boolean |
isStrokeOn()
Returns
true if the created
object should be stroked. |
void |
setClosed(boolean set)
When set to
true, specifies that the created
spline should be closed. |
void |
setFillOn(boolean set)
If
true, specifies that the inside of the created
object should be filled. |
void |
setSmoothness(double smoothness)
Sets the smoothness of the spline to be created.
|
void |
setStrokeOn(boolean set)
When set to
true, specifies that the
spline is stroked. |
accept, addPolyPoints, allowsMultiplePoints, allowsMultiplePoints, attach, count, detach, doIt, endOnDoubleClick, getBackground, getCursor, getForeground, getMinPointsDistance, getObjectFactory, getPoints, isAllowingMultiplePoints, isCreationInSubManagersAllowed, isGrapherMode, isGridMode, isOpaqueMode, isPermanent, isSelectionMode, isXORGhost, makePolyPoint, numberOfPointsReached, processMouseEvent, processMouseMotionEvent, react, reInitialize, setAllowingMultiplePoints, setBackground, setCreationInSubManagersAllowed, setCursor, setForeground, setGrapherMode, setGridMode, setMinPointsDistance, setObjectFactory, setOpaqueMode, setPermanent, setSelectionModeaddFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, handleExpose, processEvent, processFocusEvent, processKeyEvent, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, setXORGhostpublic IlvMakeSplineInteractor()
public IlvGraphic createObject(IlvPoint[] points)
IlvSpline.createObject in interface IlvPolyPointsObjectFactorypoints - The control points of the spline.protected void drawGhost(Graphics g)
drawGhost in class IlvMakePolyPointsInteractorg - The Graphics.IlvMakePolyPointsInteractor.setOpaqueMode(boolean)public void setSmoothness(double smoothness)
IlvGraphicUtil.COMPATIBLE_SMOOTHNESS.
With this value, a spline looks exactly as in JViews 3.0.
That is, the spline with more than two bends (4 control points) will not
look smooth.
smoothness - The smoothness.getSmoothness(),
IlvSpline.setSmoothness(double)public double getSmoothness()
setSmoothness(double),
IlvSpline.getSmoothness()public boolean isFillOn()
true if the inside of the created
object should be filled.setFillOn(boolean)public void setFillOn(boolean set)
true, specifies that the inside of the created
object should be filled.isFillOn()public boolean isStrokeOn()
true if the created
object should be stroked.setStrokeOn(boolean)public void setStrokeOn(boolean set)
true, specifies that the
spline is stroked.isStrokeOn()public void setClosed(boolean set)
true, specifies that the created
spline should be closed.public boolean isClosed()
true if the created spline should be closed.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.