Class PaintContext
java.lang.Object
docking.widgets.fieldpanel.internal.PaintContext
Miscellaneous information needed by fields to paint.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new PaintContext with default color values.PaintContext(PaintContext other) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanfinal ColorReturns the current background color setting.final ColorReturns the current cursor color setting.final ColorReturns the current default background color setting that is used when there is no special background color or highlight or selection.final Colorfinal ColorReturns the current foreground color setting.final ColorReturns the current selection color setting.final ColorReturns the current selection color setting.final ColorReturns the current selection color setting.final booleanReturns true if the current background color matches the default background color.booleanbooleanvoidvoidvoidsetCursorFocused(boolean isFocused) voidsetCursorHidden(boolean isHidden) voidvoidsetFocusedCursorColor(Color color) voidvoidvoidsetNotFocusedCursorColor(Color color) voidvoidsetPrinting(boolean b) voidvoidsetTextCopying(boolean b)
-
Constructor Details
-
PaintContext
public PaintContext()Create a new PaintContext with default color values. -
PaintContext
-
-
Method Details
-
getDefaultBackground
Returns the current default background color setting that is used when there is no special background color or highlight or selection. -
getBackground
Returns the current background color setting. -
getForeground
Returns the current foreground color setting. -
getSelectionColor
Returns the current selection color setting. -
getHighlightColor
Returns the current selection color setting. -
getSelectedHighlightColor
Returns the current selection color setting. -
getCursorColor
Returns the current cursor color setting. -
getFocusedCursorColor
-
setSelectionColor
-
setHighlightColor
-
setDefaultBackgroundColor
-
isDefaultBackground
public final boolean isDefaultBackground()Returns true if the current background color matches the default background color. -
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
-
setPrintColor
-
setPrinting
public void setPrinting(boolean b) -
setTextCopying
public void setTextCopying(boolean b) -
isPrinting
public boolean isPrinting() -
isTextCopying
public boolean isTextCopying()
-