Class PaintContext
java.lang.Object
docking.widgets.fieldpanel.internal.PaintContext
Miscellaneous information needed by fields to paint.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
final Color
Returns the current background color setting.final Color
Returns the current cursor color.final Color
final Color
Returns the current foreground color setting.final Color
Returns the current highlight color setting.final Color
Returns the current selected highlight color setting.final Color
Returns the current selection color setting.boolean
boolean
void
void
void
setCursorFocused
(boolean isFocused) void
setCursorHidden
(boolean isHidden) void
setFocusedCursorColor
(Color color) void
void
void
setNotFocusedCursorColor
(Color color) void
setPrinting
(boolean b) void
void
setTextCopying
(boolean b)
-
Constructor Details
-
PaintContext
public PaintContext()Create a new PaintContext with default color values.
-
-
Method Details
-
getBackground
Returns the current background color setting.- Returns:
- the current background color setting.
-
getForeground
Returns the current foreground color setting.- Returns:
- the current foreground color setting.
-
getSelectionColor
Returns the current selection color setting.- Returns:
- the current selection color setting.
-
getHighlightColor
Returns the current highlight color setting.- Returns:
- the current highlight color setting.
-
getSelectedHighlightColor
Returns the current selected highlight color setting.- Returns:
- the current selected highlight color setting.
-
getCursorColor
Returns the current cursor color.- Returns:
- the current cursor color.
-
getFocusedCursorColor
-
setSelectionColor
-
setHighlightColor
-
setBackgroundColor
-
setForegroundColor
-
setCursorColor
-
cursorHidden
public boolean cursorHidden() -
cursorFocused
public boolean cursorFocused() -
setCursorFocused
public void setCursorFocused(boolean isFocused) -
setCursorHidden
public void setCursorHidden(boolean isHidden) -
setFocusedCursorColor
-
setNotFocusedCursorColor
-
getNotFocusedCursorColor
-
setPrinting
public void setPrinting(boolean b) -
setTextCopying
public void setTextCopying(boolean b) -
isPrinting
public boolean isPrinting() -
isTextCopying
public boolean isTextCopying()
-