jp.carabiner.inkpod.pi.shape.handle
クラス AbstractSquareHandle<S extends PObjectShape>

java.lang.Object
  上位を拡張 jp.carabiner.inkpod.pi.shape.handle.AbstractHandle<S>
      上位を拡張 jp.carabiner.inkpod.pi.shape.handle.AbstractSquareHandle<S>
すべての実装されたインタフェース:
Handle
直系の既知のサブクラス:
AbstractCornerHandle, AbstractNodeShapeHandle.BottomHandle, AbstractNodeShapeHandle.LeftHandle, AbstractNodeShapeHandle.RightHandle, AbstractNodeShapeHandle.TopHandle, AbstractRelationShapeHandle.EdgePointHandle, BezierCurvesNodeShapeHandle.PointHandle, CurveRelationShapePointHandle, PolylinePointHandle, RightAngleRelationShapeHandle.LineEdgePointHandle, RightAngleRelationShapeHandle.RightAnglePointHandle

public abstract class AbstractSquareHandle<S extends PObjectShape>
extends AbstractHandle<S>


フィールドの概要
 
クラス jp.carabiner.inkpod.pi.shape.handle.AbstractHandle から継承されたフィールド
EMPTY_CHILDREN
 
コンストラクタの概要
AbstractSquareHandle(AbstractHandle<S> parent, java.awt.Color fillColor, S shape)
           
AbstractSquareHandle(AbstractHandle<S> parent, int cursorSize, int unmovableCursorSize, java.awt.Color fillColor, S shape)
           
AbstractSquareHandle(AbstractHandle<S> parent, int cursorSize, int unmovableCursorSize, S shape)
           
AbstractSquareHandle(AbstractHandle<S> parent, S shape)
           
 
メソッドの概要
 void drawHandle(java.awt.Graphics g, ShapeRenderingContext context)
          このハンドルを現在の場所に描画する。
 java.awt.Shape getCursorPath()
           
 S getTargetShape()
          このハンドルの操作対象のシェイプを返す。
 java.awt.Shape getUnmovableCursorPath()
           
 boolean isBodyHandle()
          シェイプの本体のハンドルであるかを返す。
 boolean isConstantVisible()
          推奨されていません。 
 boolean isDraggable()
          このハンドルがドラッグ可能であるかを返す。
 boolean isFocusable()
           
 boolean isHit(double x, double y, java.awt.event.MouseEvent mouseEvent, EditorViewConfiguration viewConfiguration)
          このハンドルの領域に、指定された座標が含まれるかを調べる。
 boolean isRotationCursor()
           
 boolean isTopMost()
           
 boolean isVisible(boolean topLevel, boolean selected, boolean singleSelected)
           
 void setCursorRotation(boolean cursorRotation)
           
 void setFillColor(java.awt.Color fillColor)
           
 void setLocation(double x, double y, java.awt.event.MouseEvent event, EditorViewConfiguration configuration)
          このハンドルの位置を変更する
 
クラス 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, 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
 
インタフェース jp.carabiner.inkpod.pi.shape.handle.Handle から継承されたメソッド
getLocation, getName
 

コンストラクタの詳細

AbstractSquareHandle

public AbstractSquareHandle(AbstractHandle<S> parent,
                            S shape)

AbstractSquareHandle

public AbstractSquareHandle(AbstractHandle<S> parent,
                            java.awt.Color fillColor,
                            S shape)

AbstractSquareHandle

public AbstractSquareHandle(AbstractHandle<S> parent,
                            int cursorSize,
                            int unmovableCursorSize,
                            S shape)

AbstractSquareHandle

public AbstractSquareHandle(AbstractHandle<S> parent,
                            int cursorSize,
                            int unmovableCursorSize,
                            java.awt.Color fillColor,
                            S shape)
メソッドの詳細

isBodyHandle

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

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

isTopMost

public boolean isTopMost()

isConstantVisible

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

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

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

isVisible

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

isFocusable

public boolean isFocusable()

setFillColor

public void setFillColor(java.awt.Color fillColor)

getCursorPath

public java.awt.Shape getCursorPath()

getUnmovableCursorPath

public java.awt.Shape getUnmovableCursorPath()

setCursorRotation

public void setCursorRotation(boolean cursorRotation)

isRotationCursor

public boolean isRotationCursor()

getTargetShape

public S getTargetShape()
インタフェース Handle の記述:
このハンドルの操作対象のシェイプを返す。

定義:
インタフェース Handle 内の getTargetShape
オーバーライド:
クラス AbstractHandle<S extends PObjectShape> 内の getTargetShape
戻り値:
このハンドルの操作対象のシェイプ

drawHandle

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

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

isDraggable

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

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

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 の記述:
このハンドルの領域に、指定された座標が含まれるかを調べる。

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