public class HyperlinkSettings extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
HyperlinkSettings(Display display)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
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 |
initializeDefaultCursors()
Initializes the hyperlink cursors from the Forms defaults set for the
entire workbench.
|
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 |
setBusyCursor(Cursor newBusyCursor)
Sets the new cursor to use when the hyperlink is active for all the
links.
|
void |
setForeground(Color newForeground)
Sets the new hyperlink foreground for all the links.
|
void |
setHyperlinkCursor(Cursor newHyperlinkCursor)
Sets the new cursor to use when hovering over the hyperlink for all the
links.
|
void |
setHyperlinkUnderlineMode(int mode)
Sets the new hyperlink underline mode for all the links in this group.
|
void |
setTextCursor(Cursor newTextCursor)
Sets the new cursor to use when over text for all the links.
|
public static final int UNDERLINE_NEVER
public static final int UNDERLINE_HOVER
public static final int UNDERLINE_ALWAYS
public HyperlinkSettings(Display display)
display
- the display to use when creating colors.public void initializeDefaultForegrounds(Display display)
display
- the display to use when creating colorsJFaceColors
public void initializeDefaultCursors()
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
.public void setBusyCursor(Cursor newBusyCursor)
newBusyCursor
- the new busy cursorpublic void setTextCursor(Cursor newTextCursor)
newTextCursor
- the new text cursorpublic void setHyperlinkCursor(Cursor newHyperlinkCursor)
newHyperlinkCursor
- the new hyperlink cursor
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.