|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.carabiner.inkpod.pi.shape.handle.AbstractHandle<S>
public abstract class AbstractHandle<S extends PObjectShape>
フィールドの概要 | |
---|---|
protected static Handle[] |
EMPTY_CHILDREN
|
コンストラクタの概要 | |
---|---|
AbstractHandle(AbstractHandle parent,
S shape)
|
|
AbstractHandle(S shape)
|
メソッドの概要 | |
---|---|
void |
addHandleDragListener(HandleDragListener listener)
|
void |
addTextEditorListener(TextEditorListener listener)
|
void |
cancelDrag()
このハンドルのドラッグがキャンセルされたことを通知する。 |
boolean |
click(java.awt.geom.Point2D p,
java.awt.event.MouseEvent mouseEvent,
EditorViewConfiguration viewConfiguration)
このハンドルがクリックされたことを通知する。 |
protected AbstractTextEditor |
createTextEditor(S shape)
|
protected boolean |
delegate(AbstractHandle<S> targetHandle)
|
Handle |
drag(java.awt.geom.Point2D point,
java.awt.event.MouseEvent event,
EditorViewConfiguration configuration)
このハンドルがドラッグ中に呼び出される。 |
void |
endDrag(java.awt.event.MouseEvent event)
このハンドルのドラッグが終了したときに呼び出される。 |
protected void |
filter(java.awt.geom.Point2D point,
java.awt.event.MouseEvent event,
EditorViewConfiguration configuration)
|
protected void |
fireDragCanceledEvent(Handle source)
|
protected void |
fireDragEndedEvent(Handle source)
|
protected void |
fireDragRequestedEvent(Handle source)
|
protected void |
fireDragStartedEvent(Handle source)
|
protected void |
fireTextEditorEvent(TextEditorEvent event)
|
Handle[] |
getChildHandles()
このハンドルの子のハンドルを返す。 |
java.awt.Cursor |
getCursor()
|
protected java.awt.geom.Point2D |
getDragStartPoint()
|
protected java.awt.geom.Point2D |
getDragStartPointDelta(java.awt.geom.Point2D startPoint,
java.awt.geom.Point2D location)
|
java.awt.geom.Point2D |
getLastClickedPoint()
最後にクリックされた座標を返す。 |
java.awt.geom.Point2D |
getLocation()
このハンドルの位置を返す。 |
PMapObject |
getTargetObject()
|
S |
getTargetShape()
このハンドルの操作対象のシェイプを返す。 |
TextEditor |
getTextEditor()
このハンドルと結びついたテキストエディタを返す。 |
boolean |
isDragging()
このハンドルがドラッグ中であるかを返す。 |
boolean |
isFocused()
|
boolean |
isSelected()
|
boolean |
isSingleSelected()
|
boolean |
keyPressed(java.awt.event.KeyEvent ke,
EditorViewConfiguration screenConfigration)
キーが押されたことを通知する。 |
boolean |
keyReleased(java.awt.event.KeyEvent ke,
EditorViewConfiguration screenConfigration)
キーが離されたことを通知する。 |
boolean |
keyTyped(java.awt.event.KeyEvent ke,
EditorViewConfiguration screenConfigration)
キーがタイプされたことを通知する。 |
boolean |
readyDrag(java.awt.geom.Point2D startPoint,
java.awt.event.MouseEvent mouseEvent,
EditorViewConfiguration configuration)
このハンドルのドラッグの準備をしていることを通知する。 |
void |
removeHandleDragListener(HandleDragListener listener)
|
void |
removeTextEditorListener(TextEditorListener listener)
|
protected AbstractHandle |
requestDelegate(double x,
double y,
EditorViewConfiguration configuration)
|
void |
setLocation(java.awt.geom.Point2D newLocation,
java.awt.event.MouseEvent event,
EditorViewConfiguration configuration)
このハンドルの位置を変更する |
boolean |
startDrag(java.awt.geom.Point2D cursorLocation,
java.awt.event.MouseEvent mouseEvent,
EditorViewConfiguration configuration)
このハンドルのドラッグを開始したことを通知する。 |
void |
updateFocus(boolean focused)
|
void |
updateSelection(boolean selected,
boolean singleSelected)
|
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
インタフェース jp.carabiner.inkpod.pi.shape.handle.Handle から継承されたメソッド |
---|
drawHandle, getLocation, getName, isBodyHandle, isConstantVisible, isDraggable, isFocusable, isHit, isTopMost, isVisible, setLocation |
フィールドの詳細 |
---|
protected static final Handle[] EMPTY_CHILDREN
コンストラクタの詳細 |
---|
public AbstractHandle(S shape)
public AbstractHandle(AbstractHandle parent, S shape)
メソッドの詳細 |
---|
public S getTargetShape()
Handle
の記述:
Handle
内の getTargetShape
public TextEditor getTextEditor()
Handle
の記述:
Handle
内の getTextEditor
protected AbstractTextEditor createTextEditor(S shape)
public void addHandleDragListener(HandleDragListener listener)
Handle
内の addHandleDragListener
public void removeHandleDragListener(HandleDragListener listener)
Handle
内の removeHandleDragListener
public void addTextEditorListener(TextEditorListener listener)
Handle
内の addTextEditorListener
public void removeTextEditorListener(TextEditorListener listener)
Handle
内の removeTextEditorListener
protected void fireDragRequestedEvent(Handle source)
protected void fireDragStartedEvent(Handle source)
protected void fireDragCanceledEvent(Handle source)
protected void fireDragEndedEvent(Handle source)
protected void fireTextEditorEvent(TextEditorEvent event)
public PMapObject getTargetObject()
Handle
内の getTargetObject
public Handle[] getChildHandles()
Handle
の記述:
Handle
内の getChildHandles
public boolean click(java.awt.geom.Point2D p, java.awt.event.MouseEvent mouseEvent, EditorViewConfiguration viewConfiguration)
Handle
の記述:
Handle
内の click
p
- クリックされた座標(マップ上の座標系)mouseEvent
- マウスイベントviewConfiguration
- ビューの状態
public boolean keyPressed(java.awt.event.KeyEvent ke, EditorViewConfiguration screenConfigration)
Handle
の記述:
Handle
内の keyPressed
ke
- キーイベントscreenConfigration
- ビューの状態
public boolean keyReleased(java.awt.event.KeyEvent ke, EditorViewConfiguration screenConfigration)
Handle
の記述:
Handle
内の keyReleased
ke
- キーイベントscreenConfigration
- ビューの状態
public boolean keyTyped(java.awt.event.KeyEvent ke, EditorViewConfiguration screenConfigration)
Handle
の記述:
Handle
内の keyTyped
ke
- キーイベントscreenConfigration
- ビューの状態
public java.awt.geom.Point2D getLastClickedPoint()
Handle
の記述:
Handle
内の getLastClickedPoint
Handle.click(Point2D, MouseEvent, EditorViewConfiguration)
public java.awt.geom.Point2D getLocation()
Handle
の記述:
Handle
内の getLocation
public void setLocation(java.awt.geom.Point2D newLocation, java.awt.event.MouseEvent event, EditorViewConfiguration configuration)
Handle
の記述:
Handle
内の setLocation
newLocation
- 新しい座標(マップ上の座標系)event
- ハンドル位置を変更するきっかけになったマウスイベントconfiguration
- ビューの状態public boolean readyDrag(java.awt.geom.Point2D startPoint, java.awt.event.MouseEvent mouseEvent, EditorViewConfiguration configuration)
Handle
の記述:
Handle
内の readyDrag
startPoint
- 開始点の座標系mouseEvent
- マウスイベントconfiguration
- ビューの状態
protected java.awt.geom.Point2D getDragStartPointDelta(java.awt.geom.Point2D startPoint, java.awt.geom.Point2D location)
public boolean startDrag(java.awt.geom.Point2D cursorLocation, java.awt.event.MouseEvent mouseEvent, EditorViewConfiguration configuration)
Handle
の記述:
Handle
内の startDrag
cursorLocation
- ハンドルの位置mouseEvent
- マウスイベントconfiguration
- ビューの状態
protected boolean delegate(AbstractHandle<S> targetHandle)
protected AbstractHandle requestDelegate(double x, double y, EditorViewConfiguration configuration)
protected java.awt.geom.Point2D getDragStartPoint()
protected void filter(java.awt.geom.Point2D point, java.awt.event.MouseEvent event, EditorViewConfiguration configuration)
public Handle drag(java.awt.geom.Point2D point, java.awt.event.MouseEvent event, EditorViewConfiguration configuration)
Handle
の記述:
Handle
内の drag
point
- ハンドルの新しい座標event
- マウスイベントconfiguration
- ビューの状態
public boolean isDragging()
Handle
の記述:
Handle
内の isDragging
public void cancelDrag()
Handle
の記述:
Handle
内の cancelDrag
public void endDrag(java.awt.event.MouseEvent event)
Handle
の記述:
Handle
内の endDrag
event
- ドラッグ終了時のマウスイベントpublic java.awt.Cursor getCursor()
Handle
内の getCursor
public void updateSelection(boolean selected, boolean singleSelected)
Handle
内の updateSelection
public void updateFocus(boolean focused)
Handle
内の updateFocus
public boolean isSelected()
public boolean isSingleSelected()
public boolean isFocused()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |