|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.controls.EditorPeekPopup
public class EditorPeekPopup
Mechanism to show a popup window containing a snippet of a section of a basic editor pane. It is designed to add the ability of gutter overview components to provide a mouse over peek of off screen sections of an editor pane. The pop up will appear in the pop up layer of the layer pane of the editors top level JWindow or JFrame.
Field Summary | |
---|---|
static boolean |
editorPeek
True if the extended editor peek functionality is switched on. |
Method Summary | |
---|---|
static java.lang.String[] |
createTextLines(java.lang.String text)
|
static void |
hidePopup(boolean keepKey)
|
static boolean |
isShowing()
|
static void |
showPopup(java.lang.Object key,
BasicEditorPane editorPane,
java.lang.String[] text,
java.awt.Rectangle sourceRect,
int startLine,
int endLine,
int lineHeight,
java.awt.Color[] backgroundColors,
int fadeAmount,
int minimumSize)
Show the pop up containing a snippet of code rendered directly from the editor If you have any effects on the editor that shouldn't show up in the snippet then remove them before calling this and then add them back directly afterwards. |
static void |
showPopup(java.lang.Object key,
BasicEditorPane editorPane,
java.lang.String text,
java.awt.Rectangle sourceRect,
int startLine,
int endLine,
int lineHeight,
java.awt.Color backgroundColor,
int fadeAmount,
int minimumSize)
Show the pop up containing a snippet of code rendered directly from the editor If you have any effects on the editor that shouldn't show up in the snippet then remove them before calling this and then add them back directly afterwards. |
static void |
showPopup(java.lang.Object key,
java.awt.Window window,
BasicEditorPane editorPane,
java.lang.String[] text,
java.awt.Rectangle sourceRect,
int startLine,
int endLine,
int lineHeight,
java.awt.Color[] backgroundColors,
int fadeAmount,
int minimumSize)
Show the pop up containing a snippet of code rendered directly from the editor If you have any effects on the editor that shouldn't show up in the snippet then remove them before calling this and then add them back directly afterwards. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean editorPeek
Method Detail |
---|
public static void showPopup(java.lang.Object key, BasicEditorPane editorPane, java.lang.String[] text, java.awt.Rectangle sourceRect, int startLine, int endLine, int lineHeight, java.awt.Color[] backgroundColors, int fadeAmount, int minimumSize)
key
- - an object used to determine whether to re-generate the popup. If this
method is called with the same key that was used on the last call then this method returns
immediately. Calling hidePopup(true) will remove the key.editorPane
- text
- one line per array entry will be displayed in the pop upsourceRect
- the rectangle (in screen coords) from which the popup will 'pop' The popup can appear
left or reight of the rectangle depending on screen space.startLine
- endLine
- lineHeight
- backgroundColors
- each line will be background colored to the appropriate indexed colorfadeAmount
- - The snippet shows a small part of the surrounding lines, they will be faded by this number of pixelsminimumSize
- - minimum size in pixels for teh popup. -1 indicates no minimum sizepublic static void showPopup(java.lang.Object key, java.awt.Window window, BasicEditorPane editorPane, java.lang.String[] text, java.awt.Rectangle sourceRect, int startLine, int endLine, int lineHeight, java.awt.Color[] backgroundColors, int fadeAmount, int minimumSize)
key
- - an object used to determine whether to re-generate the popup. If this
method is called with the same key that was used on the lasteditorPane
- text
- one line per array entry will be displayed in the pop upcall then this method returns
immediately. Calling hidePopup(true) will remove the key.sourceRect
- the rectangle (in screen coords) from which the popup will 'pop' The popup can appear
left or reight of the rectangle depending on screen space.startLine
- endLine
- lineHeight
- backgroundColors
- each line will be background colored to the appropriate indexed colorfadeAmount
- - The snippet shows a small part of the surrounding lines, they will be faded by this number of pixelsminimumSize
- - minimum size in pixels for teh popup. -1 indicates no minimum sizepublic static void showPopup(java.lang.Object key, BasicEditorPane editorPane, java.lang.String text, java.awt.Rectangle sourceRect, int startLine, int endLine, int lineHeight, java.awt.Color backgroundColor, int fadeAmount, int minimumSize)
key
- - an object used to determine whether to re-generate the popup. If this
method is called with the same key that was used on the last call then this method returns
immediately. Calling hidePopup(true) will remove the key.sourceRect
- the rectangle (in screen coords) from which the popup will 'pop' The popup can appear
left or reight of the rectangle depending on screen space.editorPane
- startLine
- endLine
- lineHeight
- backgroundColor
- fadeAmount
- - The snippet shows a small part of the surrounding lines, they will be faded by this number of pixelsminimumSize
- - minimum size in pixels for teh popup. -1 indicates no minimum sizepublic static java.lang.String[] createTextLines(java.lang.String text)
public static void hidePopup(boolean keepKey)
public static boolean isShowing()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |