Package edu.cnu.mdi.item
Class RadArcItem
java.lang.Object
edu.cnu.mdi.item.AItem
edu.cnu.mdi.item.PathBasedItem
edu.cnu.mdi.item.PolygonItem
edu.cnu.mdi.item.RadArcItem
- All Implemented Interfaces:
IFeedbackProvider,IDrawable,EventListener
-
Field Summary
Fields inherited from class edu.cnu.mdi.item.AItem
_connectable, _deletable, _dirty, _displayName, _doubleClickable, _draggable, _enabled, _focus, _FOCUSFILL, _lastDrawnPolygon, _layer, _line, _locked, _modification, _path, _popupMenu, _resizable, _resizePolicy, _rightClickable, _rotatable, _selectable, _selected, _style, _styleEditable, _visible, rotateIcon, RPSIZE, RPSIZE2, SPSIZE, SPSIZE2 -
Constructor Summary
ConstructorsConstructorDescriptionRadArcItem(Layer layer, Point2D.Double wpc, Point2D.Double wp1, double arcAngle) -
Method Summary
Modifier and TypeMethodDescriptiongetRotatePoint(IContainer container) Get the rotation pointPoint[]getSelectionPoints(IContainer container) Return the selection handles for this item in screen coordinates.protected voidreshape()Reshape the polygon based on the modification.protected voidHook called when geometry changes and the focus should be recomputed.Methods inherited from class edu.cnu.mdi.item.PolygonItem
setPathMethods inherited from class edu.cnu.mdi.item.PathBasedItem
contains, drawItem, getBounds, getWorldBounds, modify, rotate, scale, shouldDraw, singlePointBounds, threePointAngle, translateWorldMethods inherited from class edu.cnu.mdi.item.AItem
acceptModification, applyGeometryProperties, applyProperties, applyStyleProperties, createPopupMenu, doubleClicked, draw, drawSelections, enclosed, equals, focusFill, geometryChanged, getAzimuth, getContainer, getDisplayName, getFeedbackStrings, getFocus, getFocusPoint, getItemModification, getLastDrawnPolygon, getLayer, getLine, getPath, getPopupMenu, getResizePolicy, getStyle, getStyleSafe, getView, hashCode, inASelectRect, inRotatePoint, inSelectPoint, isConnectable, isDeletable, isDirty, isDoubleClickable, isDraggable, isEnabled, isLocked, isResizable, isRightClickable, isRotatable, isSelectable, isSelected, isStyleEditable, isTrackable, isVisible, modificationRejected, prepareForPopup, prepareForRemoval, setAzimuth, setConnectable, setDeletable, setDirty, setDisplayName, setDoubleClickable, setDraggable, setEnabled, setFillFocus, setFocus, setLocked, setModification, setResizable, setResizePolicy, setRightClickable, setRotatable, setSelectable, setSelected, setStyle, setStyleEditable, setVisible, startModification, stopModification, translateLocal
-
Constructor Details
-
RadArcItem
-
-
Method Details
-
updateFocus
protected void updateFocus()Description copied from class:AItemHook called when geometry changes and the focus should be recomputed. The default implementation is a no-op.- Overrides:
updateFocusin classPathBasedItem
-
reshape
protected void reshape()Description copied from class:PolygonItemReshape the polygon based on the modification. Not much we can do to a polygon except move the selected point. Keep in mind that if control or shift was pressed, the polygon will scale rather than coming here.- Overrides:
reshapein classPolygonItem
-
getSelectionPoints
Description copied from class:AItemReturn the selection handles for this item in screen coordinates.The default uses the vertices of
AItem._lastDrawnPolygonif available, otherwise the four corners ofAItem.getBounds(edu.cnu.mdi.container.IContainer).- Overrides:
getSelectionPointsin classAItem- Parameters:
container- the container rendering this item- Returns:
- array of handle points, or
nullif bounds are unavailable
-
getRotatePoint
Description copied from class:PathBasedItemGet the rotation point- Overrides:
getRotatePointin classPathBasedItem- Parameters:
container- the container bing rendered- Returns:
- the rotation point where rotations are initiated
-