jp.carabiner.inkpod.pi.shape.handle
クラス RelationTextBoxHandle

java.lang.Object
  上位を拡張 jp.carabiner.inkpod.pi.shape.handle.AbstractHandle<S>
      上位を拡張 jp.carabiner.inkpod.pi.shape.handle.AbstractBoxHandle<AbstractRelationShape>
          上位を拡張 jp.carabiner.inkpod.pi.shape.handle.RelationTextBoxHandle
すべての実装されたインタフェース:
Handle

public class RelationTextBoxHandle
extends AbstractBoxHandle<AbstractRelationShape>


フィールドの概要
 
クラス jp.carabiner.inkpod.pi.shape.handle.AbstractBoxHandle から継承されたフィールド
SINGLE_CURSOR_EDITTING_STROKE, SINGLE_CURSOR_STROKE
 
クラス jp.carabiner.inkpod.pi.shape.handle.AbstractHandle から継承されたフィールド
EMPTY_CHILDREN
 
コンストラクタの概要
RelationTextBoxHandle(AbstractRelationShape shape)
           
 
メソッドの概要
protected  AbstractTextEditor createTextEditor(AbstractRelationShape shape)
           
protected  void filter(java.awt.geom.Point2D point, java.awt.event.MouseEvent event, EditorViewConfiguration configuration)
           
 java.awt.geom.Rectangle2D getBoxBounds()
           
 java.awt.geom.Point2D getLocation(java.awt.geom.Point2D point)
          このハンドルの位置を返す。
 java.lang.String getName()
           
 int getPadding(EditorViewConfiguration viewConfiguration)
           
 boolean isBodyHandle()
          シェイプの本体のハンドルであるかを返す。
 boolean isConstantVisible()
          推奨されていません。 
 boolean isDraggable()
          このハンドルがドラッグ可能であるかを返す。
 boolean isHit(double x, double y, java.awt.event.MouseEvent mouseEvent, EditorViewConfiguration viewConfiguration)
          このハンドルの領域に、指定された座標が含まれるかを調べる。
 boolean isVisible(ShapeRenderingContext context)
           
 void setLocation(double x, double y, java.awt.event.MouseEvent event, EditorViewConfiguration configuration)
          このハンドルの位置を変更する
 
クラス jp.carabiner.inkpod.pi.shape.handle.AbstractBoxHandle から継承されたメソッド
drawHandle, isFocusable, isTopMost, isVisible
 
クラス jp.carabiner.inkpod.pi.shape.handle.AbstractHandle から継承されたメソッド
addHandleDragListener, addTextEditorListener, cancelDrag, click, delegate, drag, endDrag, 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
 

コンストラクタの詳細

RelationTextBoxHandle

public RelationTextBoxHandle(AbstractRelationShape shape)
メソッドの詳細

getName

public java.lang.String getName()

createTextEditor

protected AbstractTextEditor createTextEditor(AbstractRelationShape shape)
オーバーライド:
クラス AbstractHandle<AbstractRelationShape> 内の createTextEditor

isBodyHandle

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

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

isConstantVisible

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

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

定義:
インタフェース Handle 内の isConstantVisible
オーバーライド:
クラス AbstractBoxHandle<AbstractRelationShape> 内の isConstantVisible
戻り値:
常に表示される場合はtrue、そうでなければfalse

isDraggable

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

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

getLocation

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

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

setLocation

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

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

isHit

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

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

isVisible

public boolean isVisible(ShapeRenderingContext context)
定義:
クラス AbstractBoxHandle<AbstractRelationShape> 内の isVisible

getBoxBounds

public java.awt.geom.Rectangle2D getBoxBounds()
定義:
クラス AbstractBoxHandle<AbstractRelationShape> 内の getBoxBounds

getPadding

public int getPadding(EditorViewConfiguration viewConfiguration)
定義:
クラス AbstractBoxHandle<AbstractRelationShape> 内の getPadding

filter

protected void filter(java.awt.geom.Point2D point,
                      java.awt.event.MouseEvent event,
                      EditorViewConfiguration configuration)
オーバーライド:
クラス AbstractHandle<AbstractRelationShape> 内の filter