|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.forms.HyperlinkSettings
Manages color and underline mode settings for a group of hyperlinks. The class is extended by HyperlinkGroup but is otwerwise not intended to be subclassed.
Field Summary | |
static int |
UNDERLINE_ALWAYS
Underline mode to be used when hyperlinks should always be underlined. |
static int |
UNDERLINE_HOVER
Underline mode to be used when hyperlinks should only be underlined on mouse hover. |
static int |
UNDERLINE_NEVER
Underline mode to be used when hyperlinks should not be underlined. |
Constructor Summary | |
HyperlinkSettings(Display display)
The constructor. |
Method Summary | |
Color |
getActiveBackground()
Returns the background to use for the active hyperlink. |
Color |
getActiveForeground()
Returns the foreground to use for the active hyperlink. |
Color |
getBackground()
Returns the background to use for the normal hyperlink. |
Cursor |
getBusyCursor()
Returns the cursor to use when the hyperlink is active. |
Color |
getForeground()
Returns the foreground to use for the normal hyperlink. |
Cursor |
getHyperlinkCursor()
Returns the cursor to use when hovering over the hyperlink. |
int |
getHyperlinkUnderlineMode()
Returns the underline mode to be used for all the hyperlinks in this group. |
Cursor |
getTextCursor()
Returns the cursor to use when over text. |
void |
initializeDefaultForegrounds(Display display)
Initializes the hyperlink foregrounds from the JFace defaults set for the entire workbench. |
void |
setActiveBackground(Color newActiveBackground)
Sets the new active hyperlink background for all the links. |
void |
setActiveForeground(Color newActiveForeground)
Sets the new active hyperlink foreground for all the links. |
void |
setBackground(Color newBackground)
Sets the new hyperlink background for all the links. |
void |
setForeground(Color newForeground)
Sets the new hyperlink foreground for all the links. |
void |
setHyperlinkUnderlineMode(int mode)
Sets the new hyperlink underline mode for all the links in this group. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int UNDERLINE_NEVER
public static final int UNDERLINE_HOVER
public static final int UNDERLINE_ALWAYS
Constructor Detail |
public HyperlinkSettings(Display display)
display
- the display to use when creating colors.Method Detail |
public void initializeDefaultForegrounds(Display display)
display
- the display to use when creating colorsJFaceColors
public Color getActiveBackground()
public Color getActiveForeground()
public Color getBackground()
public Cursor getBusyCursor()
public Cursor getTextCursor()
public Color getForeground()
public Cursor getHyperlinkCursor()
public int getHyperlinkUnderlineMode()
public void setActiveBackground(Color newActiveBackground)
newActiveBackground
- the new active backgroundpublic void setActiveForeground(Color newActiveForeground)
newActiveForeground
- the new active foregroundpublic void setBackground(Color newBackground)
newBackground
- the new hyperlink backgroundpublic void setForeground(Color newForeground)
newForeground
- the new hyperlink foregroundpublic void setHyperlinkUnderlineMode(int mode)
mode
- one of UNDERLINE_NEVER
,
UNDERLINE_HOVER
and
UNDERLINE_ALWAYS
.
|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.