jp.carabiner.inkpod.pi.shape.handle
クラス AbstractRelationShapeHandle<S extends AbstractRelationShape>
java.lang.Object
jp.carabiner.inkpod.pi.shape.handle.AbstractHandle<S>
jp.carabiner.inkpod.pi.shape.handle.AbstractBodyHandle<S>
jp.carabiner.inkpod.pi.shape.handle.AbstractRelationShapeHandle<S>
- すべての実装されたインタフェース:
- Handle
- 直系の既知のサブクラス:
- CurveRelationShapeHandle, PolylineRelationShapeHandle, RightAngleRelationShapeHandle
public abstract class AbstractRelationShapeHandle<S extends AbstractRelationShape>
- extends AbstractBodyHandle<S>
クラス jp.carabiner.inkpod.pi.shape.handle.AbstractHandle から継承されたメソッド |
addHandleDragListener, addTextEditorListener, cancelDrag, click, createTextEditor, delegate, drag, endDrag, filter, fireDragCanceledEvent, fireDragEndedEvent, fireDragRequestedEvent, fireDragStartedEvent, fireTextEditorEvent, getChildHandles, getCursor, getDragStartPoint, getDragStartPointDelta, getLastClickedPoint, getLocation, getTargetObject, getTargetShape, getTextEditor, isDragging, isFocused, isSelected, isSingleSelected, keyPressed, keyReleased, keyTyped, readyDrag, removeHandleDragListener, removeTextEditorListener, requestDelegate, setLocation, startDrag, updateFocus, updateSelection |
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BODY_HANDLE
public static final java.lang.String BODY_HANDLE
- 関連項目:
- 定数フィールド値
AbstractRelationShapeHandle
public AbstractRelationShapeHandle(S shape)
createStartPointHandle
protected Handle createStartPointHandle(S shape)
createEndPointHandle
protected Handle createEndPointHandle(S shape)
createTextBoxHandle
protected RelationTextBoxHandle createTextBoxHandle(S shape)
createRotationHandle
protected Handle createRotationHandle(S shape)
getName
public java.lang.String getName()
getStartPointHandle
public Handle getStartPointHandle()
getEndPointHandle
public Handle getEndPointHandle()
getTextBoxHandle
public Handle getTextBoxHandle()
getRotationHandle
public Handle getRotationHandle()
drawHandle
public void drawHandle(java.awt.Graphics g,
ShapeRenderingContext context)
- インタフェース
Handle
の記述:
- このハンドルを現在の場所に描画する。
- パラメータ:
g
- Grpahicsオブジェクトcontext
- 描画コンテキスト情報
getLocation
public java.awt.geom.Point2D getLocation(java.awt.geom.Point2D point)
- インタフェース
Handle
の記述:
- このハンドルの位置を返す。
- 定義:
- インタフェース
Handle
内の getLocation
- オーバーライド:
- クラス
AbstractBodyHandle<S extends AbstractRelationShape>
内の getLocation
- パラメータ:
point
- ハンドルの位置(マップ上の座標系)を格納するPoint2Dオブジェクト
- 戻り値:
- point引数を返す。
setLocation
public void setLocation(double x,
double y,
java.awt.event.MouseEvent event,
EditorViewConfiguration configuration)
- インタフェース
Handle
の記述:
- このハンドルの位置を変更する
- 定義:
- インタフェース
Handle
内の setLocation
- オーバーライド:
- クラス
AbstractBodyHandle<S extends AbstractRelationShape>
内の setLocation
- パラメータ:
x
- 新しいX座標(マップ上の座標系)y
- 新しいY座標(マップ上の座標系)event
- ハンドル位置を変更するきっかけになったマウスイベントconfiguration
- ビューの状態
isHit
public boolean isHit(double mx,
double my,
java.awt.event.MouseEvent mouseEvent,
EditorViewConfiguration viewConfiguration)
- インタフェース
Handle
の記述:
- このハンドルの領域に、指定された座標が含まれるかを調べる。
- パラメータ:
mx
- 調べるX座標(マップ上の座標系)my
- 調べるY座標(マップ上の座標系)mouseEvent
- 元のマウスイベントviewConfiguration
- ビューの状態
- 戻り値:
- ハンドルの領域に、指定された座標が含まれていたらtrue
isFocusable
public boolean isFocusable()
- 定義:
- インタフェース
Handle
内の isFocusable
- オーバーライド:
- クラス
AbstractBodyHandle<S extends AbstractRelationShape>
内の isFocusable
isBodyHandle
public boolean isBodyHandle()
- インタフェース
Handle
の記述:
- シェイプの本体のハンドルであるかを返す。
本体のハンドルなら、子を持ちます。
- 戻り値:
- シェイプ本体のハンドルなら、true
isDraggable
public boolean isDraggable()
- インタフェース
Handle
の記述:
- このハンドルがドラッグ可能であるかを返す。
- 戻り値:
- ドラッグ可能ならtrue