public class IlvMakePolygonInteractor extends IlvMakePolyPointsInteractor implements IlvPolyPointsObjectFactory
IlvPolygon.| Constructor and Description |
|---|
IlvMakePolygonInteractor()
Creates and initializes the interactor.
|
| Modifier and Type | Method and Description |
|---|---|
IlvGraphic |
createObject(IlvPoint[] points)
Called by the interactor
to create the
IlvPolygon. |
protected void |
drawGhost(Graphics g)
Draws a ghost while the object is being created.
|
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 |
setFillOn(boolean set)
If
true, specifies that the inside of the created
object should be filled. |
void |
setStrokeOn(boolean set)
When set to
true, specifies that the created
object should be 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 IlvMakePolygonInteractor()
public IlvGraphic createObject(IlvPoint[] points)
IlvPolygon.createObject in interface IlvPolyPointsObjectFactorypoints - The points of the polygon.protected void drawGhost(Graphics g)
drawGhost in class IlvMakePolyPointsInteractorg - The graphics context.
Its current color is already set to the view's default ghost
color, see IlvManagerView.getDefaultGhostColor().
Also, in XOR ghost drawing mode, the graphics context is already
set to XOR mode, with the view's default XOR color, see
IlvManagerView.getDefaultXORColor().IlvMakePolyPointsInteractor.setOpaqueMode(boolean)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 created
object should be stroked.isStrokeOn()© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.