jp.carabiner.inkpod.pi.shape.handle
クラス BezierCurvesNodeShapeHandle.PointHandle

java.lang.Object
  上位を拡張 jp.carabiner.inkpod.pi.shape.handle.AbstractHandle<S>
      上位を拡張 jp.carabiner.inkpod.pi.shape.handle.AbstractSquareHandle<S>
          上位を拡張 jp.carabiner.inkpod.pi.shape.handle.BezierCurvesNodeShapeHandle.PointHandle
すべての実装されたインタフェース:
Handle
含まれているクラス:
BezierCurvesNodeShapeHandle<S extends BezierCurvesNodeShape>

public class BezierCurvesNodeShapeHandle.PointHandle
extends AbstractSquareHandle<S>


フィールドの概要
 
クラス jp.carabiner.inkpod.pi.shape.handle.AbstractHandle から継承されたフィールド
EMPTY_CHILDREN
 
コンストラクタの概要
BezierCurvesNodeShapeHandle.PointHandle(S shape, int index)
           
 
メソッドの概要
 boolean click(java.awt.geom.Point2D p, java.awt.event.MouseEvent mouseEvent, EditorViewConfiguration viewConfiguration)
          このハンドルがクリックされたことを通知する。
 void drawHandle(java.awt.Graphics g, ShapeRenderingContext context)
          このハンドルを現在の場所に描画する。
 java.awt.Shape getCursorPath()
           
 int getIndex()
           
 java.awt.geom.Point2D getLocation(java.awt.geom.Point2D point)
          このハンドルの位置を返す。
 java.lang.String getName()
           
 java.awt.Shape getUnmovableCursorPath()
           
 boolean isDraggable()
          このハンドルがドラッグ可能であるかを返す。
 boolean isFocusable()
           
 boolean isVisible(boolean topLevel, boolean selected, boolean singleSelected)
           
 void setLocation(double x, double y, java.awt.event.MouseEvent event, EditorViewConfiguration configuration)
          このハンドルの位置を変更する
 boolean startDrag(java.awt.geom.Point2D cursorLocation, java.awt.event.MouseEvent mouseEvent, EditorViewConfiguration configuration)
          このハンドルのドラッグを開始したことを通知する。
 
クラス jp.carabiner.inkpod.pi.shape.handle.AbstractSquareHandle から継承されたメソッド
getTargetShape, isBodyHandle, isConstantVisible, isHit, isRotationCursor, isTopMost, setCursorRotation, setFillColor
 
クラス jp.carabiner.inkpod.pi.shape.handle.AbstractHandle から継承されたメソッド
addHandleDragListener, addTextEditorListener, cancelDrag, createTextEditor, delegate, drag, endDrag, filter, fireDragCanceledEvent, fireDragEndedEvent, fireDragRequestedEvent, fireDragStartedEvent, fireTextEditorEvent, getChildHandles, getCursor, getDragStartPoint, getDragStartPointDelta, getLastClickedPoint, getLocation, getTargetObject, getTextEditor, isDragging, isFocused, isSelected, isSingleSelected, keyPressed, keyReleased, keyTyped, readyDrag, removeHandleDragListener, removeTextEditorListener, requestDelegate, setLocation, updateFocus, updateSelection
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BezierCurvesNodeShapeHandle.PointHandle

public BezierCurvesNodeShapeHandle.PointHandle(S shape,
                                               int index)
メソッドの詳細

getName

public java.lang.String getName()

isDraggable

public boolean isDraggable()
インタフェース Handle の記述:
このハンドルがドラッグ可能であるかを返す。

定義:
インタフェース Handle 内の isDraggable
オーバーライド:
クラス AbstractSquareHandle<S extends BezierCurvesNodeShape> 内の isDraggable
戻り値:
ドラッグ可能ならtrue

isFocusable

public boolean isFocusable()
定義:
インタフェース Handle 内の isFocusable
オーバーライド:
クラス AbstractSquareHandle<S extends BezierCurvesNodeShape> 内の isFocusable

getIndex

public int getIndex()

getCursorPath

public java.awt.Shape getCursorPath()
オーバーライド:
クラス AbstractSquareHandle<S extends BezierCurvesNodeShape> 内の getCursorPath

getUnmovableCursorPath

public java.awt.Shape getUnmovableCursorPath()
オーバーライド:
クラス AbstractSquareHandle<S extends BezierCurvesNodeShape> 内の getUnmovableCursorPath

isVisible

public boolean isVisible(boolean topLevel,
                         boolean selected,
                         boolean singleSelected)
定義:
インタフェース Handle 内の isVisible
オーバーライド:
クラス AbstractSquareHandle<S extends BezierCurvesNodeShape> 内の isVisible

getLocation

public java.awt.geom.Point2D getLocation(java.awt.geom.Point2D point)
インタフェース Handle の記述:
このハンドルの位置を返す。

パラメータ:
point - ハンドルの位置(マップ上の座標系)を格納するPoint2Dオブジェクト
戻り値:
point引数を返す。

startDrag

public boolean startDrag(java.awt.geom.Point2D cursorLocation,
                         java.awt.event.MouseEvent mouseEvent,
                         EditorViewConfiguration configuration)
インタフェース Handle の記述:
このハンドルのドラッグを開始したことを通知する。

定義:
インタフェース Handle 内の startDrag
オーバーライド:
クラス AbstractHandle<S extends BezierCurvesNodeShape> 内の startDrag
パラメータ:
cursorLocation - ハンドルの位置
mouseEvent - マウスイベント
configuration - ビューの状態
戻り値:
ドラッグを開始したらtrue、何らかの理由で失敗したらfalse

drawHandle

public void drawHandle(java.awt.Graphics g,
                       ShapeRenderingContext context)
インタフェース Handle の記述:
このハンドルを現在の場所に描画する。

定義:
インタフェース Handle 内の drawHandle
オーバーライド:
クラス AbstractSquareHandle<S extends BezierCurvesNodeShape> 内の drawHandle
パラメータ:
g - Grpahicsオブジェクト
context - 描画コンテキスト情報

setLocation

public void setLocation(double x,
                        double y,
                        java.awt.event.MouseEvent event,
                        EditorViewConfiguration configuration)
インタフェース Handle の記述:
このハンドルの位置を変更する

定義:
インタフェース Handle 内の setLocation
オーバーライド:
クラス AbstractSquareHandle<S extends BezierCurvesNodeShape> 内の setLocation
パラメータ:
x - 新しいX座標(マップ上の座標系)
y - 新しいY座標(マップ上の座標系)
event - ハンドル位置を変更するきっかけになったマウスイベント
configuration - ビューの状態

click

public boolean click(java.awt.geom.Point2D p,
                     java.awt.event.MouseEvent mouseEvent,
                     EditorViewConfiguration viewConfiguration)
インタフェース Handle の記述:
このハンドルがクリックされたことを通知する。

定義:
インタフェース Handle 内の click
オーバーライド:
クラス AbstractHandle<S extends BezierCurvesNodeShape> 内の click
パラメータ:
p - クリックされた座標(マップ上の座標系)
mouseEvent - マウスイベント
viewConfiguration - ビューの状態
戻り値:
このイベントを処理した場合true、何もしなかった場合はfalse