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

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

public class BezierCurvesNodeShapeHandle.SegmentHandle
extends AbstractHandle<S>


フィールドの概要
 
クラス jp.carabiner.inkpod.pi.shape.handle.AbstractHandle から継承されたフィールド
EMPTY_CHILDREN
 
コンストラクタの概要
BezierCurvesNodeShapeHandle.SegmentHandle(S shape, int index)
           
 
メソッドの概要
 void drawHandle(java.awt.Graphics g, ShapeRenderingContext context)
          このハンドルを現在の場所に描画する。
 int getIndex()
           
 java.awt.geom.Point2D getLocation(java.awt.geom.Point2D point)
          このハンドルの位置を返す。
 java.lang.String getName()
           
 TextEditor getTextEditor()
          このハンドルと結びついたテキストエディタを返す。
 boolean isBodyHandle()
          シェイプの本体のハンドルであるかを返す。
 boolean isConstantVisible()
          推奨されていません。 
 boolean isDraggable()
          このハンドルがドラッグ可能であるかを返す。
 boolean isFocusable()
           
 boolean isHit(double x, double y, java.awt.event.MouseEvent mouseEvent, EditorViewConfiguration viewConfiguration)
          このハンドルの領域に、指定された座標が含まれるかを調べる。
 boolean isTopMost()
           
 boolean isVisible(boolean topLevel, boolean selected, boolean singleSelected)
           
protected  AbstractHandle requestDelegate(double x, double y, EditorViewConfiguration configuration)
           
 void setLocation(double x, double y, java.awt.event.MouseEvent event, EditorViewConfiguration viewConfiguration)
          このハンドルの位置を変更する
 
クラス 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, isDragging, isFocused, isSelected, isSingleSelected, keyPressed, keyReleased, keyTyped, readyDrag, removeHandleDragListener, removeTextEditorListener, setLocation, startDrag, updateFocus, updateSelection
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BezierCurvesNodeShapeHandle.SegmentHandle

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

getName

public java.lang.String getName()

isFocusable

public boolean isFocusable()

isBodyHandle

public boolean isBodyHandle()
インタフェース Handle の記述:
シェイプの本体のハンドルであるかを返す。 本体のハンドルなら、子を持ちます。

戻り値:
シェイプ本体のハンドルなら、true

isDraggable

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

戻り値:
ドラッグ可能ならtrue

isTopMost

public boolean isTopMost()

isConstantVisible

@Deprecated
public boolean isConstantVisible()
推奨されていません。 

インタフェース Handle の記述:
このハンドルが常に表示されるべきかを返す。 falseを返すと、グループ化されている場合などに表示されなくなります。

戻り値:
常に表示される場合はtrue、そうでなければfalse

getTextEditor

public TextEditor getTextEditor()
インタフェース Handle の記述:
このハンドルと結びついたテキストエディタを返す。 このハンドルと結びついた、インライン編集可能なテキストがある場合に、TextEditorオブジェクトを返します。 無い場合は、nullを返します。

定義:
インタフェース Handle 内の getTextEditor
オーバーライド:
クラス AbstractHandle<S extends BezierCurvesNodeShape> 内の getTextEditor
戻り値:
テキストエディタ

getIndex

public int getIndex()

isVisible

public boolean isVisible(boolean topLevel,
                         boolean selected,
                         boolean singleSelected)

setLocation

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

パラメータ:
x - 新しいX座標(マップ上の座標系)
y - 新しいY座標(マップ上の座標系)
event - ハンドル位置を変更するきっかけになったマウスイベント
viewConfiguration - ビューの状態

getLocation

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

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

isHit

public boolean isHit(double x,
                     double y,
                     java.awt.event.MouseEvent mouseEvent,
                     EditorViewConfiguration viewConfiguration)
インタフェース Handle の記述:
このハンドルの領域に、指定された座標が含まれるかを調べる。

パラメータ:
x - 調べるX座標(マップ上の座標系)
y - 調べるY座標(マップ上の座標系)
mouseEvent - 元のマウスイベント
viewConfiguration - ビューの状態
戻り値:
ハンドルの領域に、指定された座標が含まれていたらtrue

drawHandle

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

パラメータ:
g - Grpahicsオブジェクト
context - 描画コンテキスト情報

requestDelegate

protected AbstractHandle requestDelegate(double x,
                                         double y,
                                         EditorViewConfiguration configuration)
オーバーライド:
クラス AbstractHandle<S extends BezierCurvesNodeShape> 内の requestDelegate