Class PaintContext
java.lang.Object
docking.widgets.fieldpanel.internal.PaintContext
Miscellaneous information needed by fields to paint.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanfinal ColorReturns the current background color setting.final ColorReturns the current cursor color.final Colorfinal ColorReturns the current foreground color setting.final ColorReturns the current highlight color setting.final ColorReturns the current selected highlight color setting.final ColorReturns the current selection color setting.booleanbooleanvoidvoidvoidsetCursorFocused(boolean isFocused) voidsetCursorHidden(boolean isHidden) voidsetFocusedCursorColor(Color color) voidvoidvoidsetNotFocusedCursorColor(Color color) voidsetPrinting(boolean b) voidvoidsetTextCopying(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()
-