public class EdbPicturePane extends EdbEditorObject implements EdbUndo.Undoable, FocusListener, ImageObserver, ClipboardOwner, DragGestureListener, EdbDnDAnyDropTarget, Transferable
| Modifier and Type | Field and Description |
|---|---|
protected EdbLabel |
descriptionBox |
protected boolean |
editable |
protected Image |
myPicture |
protected String |
myText |
protected EdbPanel |
panel |
protected EdbLabel |
pictureBox |
protected int |
pictureBytes |
protected EdbPanel |
picturePanel |
protected int |
pictureXsize |
protected int |
pictureYsize |
protected String |
postfix |
protected EdbLabel |
postfixLabel |
protected String |
prefix |
protected EdbLabel |
prefixLabel |
protected MLText |
title |
protected EdbLabel |
titleLabel |
editorOwner, s_changeListenersABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
EdbPicturePane(EdbEditorOwner eo,
MLText tit,
String pre,
String text,
String post) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMouseListener(MouseListener ml)
このペインからマウスイベントを受け取るために,指定されたマウスリスナーを追加します.
|
void |
copy() |
void |
cut() |
void |
delete() |
void |
dragGestureRecognized(DragGestureEvent dge)
このペインで,ドラック開始ジェスチャーを認識したときに呼び出されます.
|
boolean |
edbDnDDrop(DropTargetDropEvent dtde)
ドロップターゲット領域内でドロップしたときに呼び出されます.
|
boolean |
edbDnDDropAcceptable(DropTargetDragEvent dtde)
受け入れ可能なFlavorか?
|
boolean |
edbDnDDropTargetIsReady()
ドロップターゲットのReady状態の取得.
|
void |
edbDnDDropTargetSelected(boolean sel)
ドロップターゲット領域内でドラッグのEnter/Exit時に呼び出されます.
|
void |
edit()
編集開始のリクエスト.
|
boolean |
endEdit() |
void |
focusGained(FocusEvent e) |
void |
focusLost(FocusEvent e) |
EdbPanel |
getPanel() |
String |
getText()
画像データを取得します.
|
Object |
getTransferData(DataFlavor flavor)
転送されるデータを表すオブジェクトを返します.返されるオブジェクトのクラスは,フレーバの表現クラスで定義されます.
|
DataFlavor[] |
getTransferDataFlavors()
データを提供することができるフレーバを示す
DataFlavor オブジェクトの配列を返します. |
boolean |
imageUpdate(Image img,
int infoflags,
int x,
int y,
int width,
int height)
このメソッドの呼び出しにより,過去に非同期インタフェースを使って要求したイメージに関する情報を利用できます.
|
boolean |
isDataFlavorSupported(DataFlavor flavor)
指定されたデータフレーバが,このオブジェクトに対してサポートされているかどうかを返します.
|
boolean |
isEditable() |
void |
lostOwnership(Clipboard cb,
Transferable tr)
クリップボードの内容のオーナではなくなったことを,このオブジェクトに通知します.
|
void |
mouseClicked(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
protected boolean |
mousePopupShow(MouseEvent e)
Popupメニューを表示する.
|
boolean |
pastable() |
void |
paste() |
void |
registProxyDragGestureRecognizer(int act,
DragGestureListener lis)
Register Drag Gesture Recognizer for parent object (proxy).
|
void |
setEditable(boolean e) |
void |
setFgc(Color c)
前景色を設定します.
|
void |
setFont(Font f) |
void |
setLabelFgc(Color c)
画像ラベルの背景色を設定します.
|
void |
setLabelFont(Font f)
画像ラベルのフォントを設定します.
|
void |
setSubFgc(Color c) |
void |
setSubFont(Font f) |
boolean |
setText(String t) |
boolean |
setText(String t,
boolean undoable)
画像データを設定します.
|
void |
setTitleFont(Font f)
タイトルラベルのフォントを設定します.
|
void |
setToolTipText(String t) |
void |
show() |
boolean |
startEdit() |
(package private) Image |
text2image(String text) |
boolean |
undo(Object o) |
actionPerformed, createMenuItem_Edit, createMenuItem_Edit, dragDropEnd, dragEnter, dragExit, dragOver, dropActionChanged, getWidth, isVisible, setVisibleaddChangeListener, createAction_EndOfEdit, createAction_RotateFocus, editorObjectInnovateEditor, editorObjectNotifyChanged, editorObjectNotifyWillChange, editorObjectRequestDuplicate, editorObjectRequestInsert, editorObjectRequestRemove, editorObjectRequestReplace, editorObjectRequestVisible, editorObjectRotateFocus, editorObjectUndoPush, editorOwnerDuplicateObject, editorOwnerInsertObject, editorOwnerIsEditable, editorOwnerObjectChanged, editorOwnerObjectVisibleRequested, editorOwnerObjectWillChange, editorOwnerRemoveObject, editorOwnerReplaceObject, editorOwnerRotateFocus, getBrowser, getEDB, getEditor, getTracePrintWriter, isSimpleButton1Click, isSimpleButton1Click2, lockBrowser, mousePressed, mouseReleased, unlockBrowserprotected String myText
protected Image myPicture
protected boolean editable
protected int pictureXsize
protected int pictureYsize
protected int pictureBytes
protected EdbPanel panel
protected EdbPanel picturePanel
protected MLText title
protected String prefix
protected String postfix
protected EdbLabel titleLabel
protected EdbLabel prefixLabel
protected EdbLabel postfixLabel
protected EdbLabel pictureBox
protected EdbLabel descriptionBox
public EdbPicturePane(EdbEditorOwner eo, MLText tit, String pre, String text, String post)
public EdbPanel getPanel()
getPanel in class EdbEditorObjectpublic boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
imageUpdate in interface ImageObserverimg - 表示されるイメージinfoflags - フラグの WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR および ABORT のビット単位の論理和x - x 座標y - y 座標width - 幅height - 高さinfoflags が示す場合は true,そうでない場合は falsepublic void registProxyDragGestureRecognizer(int act,
DragGestureListener lis)
registProxyDragGestureRecognizer in class EdbEditorObjectact - drag actionlis - drag gesture listenerpublic void addMouseListener(MouseListener ml)
addMouseListener in class EdbEditorObjectml - マウスリスナpublic void setToolTipText(String t)
setToolTipText in class EdbEditorObjectpublic void setLabelFont(Font f)
f - フォントpublic void setSubFont(Font f)
setSubFont in class EdbEditorObjectpublic void setTitleFont(Font f)
f - フォントpublic void setFont(Font f)
setFont in class EdbEditorObjectpublic void setLabelFgc(Color c)
c - 背景色public void setSubFgc(Color c)
setSubFgc in class EdbEditorObjectpublic void setFgc(Color c)
setFgc in class EdbEditorObjectc - 前景色.public void focusGained(FocusEvent e)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenermouseClicked in class EdbEditorUnitprotected boolean mousePopupShow(MouseEvent e)
mousePopupShow in class EdbEditorUnite - Mouse Event.public void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenermouseEntered in class EdbEditorUnitpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenermouseExited in class EdbEditorUnitpublic void show()
show in class EdbEditorObjectpublic boolean setText(String t, boolean undoable)
t - base64 でエンコードされている画像データundoable - アンドゥ可能性.public boolean setText(String t)
setText in class EdbEditorObjectpublic boolean undo(Object o)
undo in interface EdbUndo.Undoablepublic String getText()
getText in class EdbEditorObjectpublic void setEditable(boolean e)
setEditable in class EdbEditorObjectpublic boolean isEditable()
isEditable in class EdbEditorObjectpublic boolean startEdit()
startEdit in class EdbEditorObjectpublic boolean endEdit()
endEdit in class EdbEditorObjectpublic void edit()
edit in class EdbEditorObjectpublic boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported in interface Transferableflavor - データに対して要求されたフレーバpublic Object getTransferData(DataFlavor flavor)
getTransferData in interface Transferableflavor - データに対して要求されたフレーバpublic DataFlavor[] getTransferDataFlavors()
DataFlavor オブジェクトの配列を返します.getTransferDataFlavors in interface Transferablepublic void dragGestureRecognized(DragGestureEvent dge)
dragGestureRecognized in interface DragGestureListenerdge - ジェスチャーを記述するイベントpublic boolean edbDnDDropTargetIsReady()
edbDnDDropTargetIsReady in interface EdbDnDDropTargetpublic void edbDnDDropTargetSelected(boolean sel)
edbDnDDropTargetSelected in interface EdbDnDDropTargetsel - セレクション状態.public boolean edbDnDDropAcceptable(DropTargetDragEvent dtde)
edbDnDDropAcceptable in interface EdbDnDAnyDropTargetdtde - DropTargetDragEventpublic boolean edbDnDDrop(DropTargetDropEvent dtde) throws Exception
edbDnDDrop in interface EdbDnDAnyDropTargetdtde - DropTargetDropEventException - Exceptionpublic void cut()
public void copy()
public boolean pastable()
public void paste()
public void delete()
public void lostOwnership(Clipboard cb, Transferable tr)
lostOwnership in interface ClipboardOwnercb - もう所有されていないクリップボードtr - このオーナが所有していたクリップボード上の内容EDB Working Group at Mon Dec 15 16:45:05 JST 2025