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 TypeMethodDescriptionboolean
boolean
final Color
Returns the current background color setting.final Color
Returns the current cursor color setting.final Color
Returns the current default background color setting that is used when there is no special background color or highlight or selection.final Color
final Color
Returns the current foreground color setting.final Color
Returns the current selection color setting.final Color
Returns the current selection color setting.final Color
Returns the current selection color setting.final boolean
Returns true if the current background color matches the default background color.boolean
boolean
void
void
void
setCursorFocused
(boolean isFocused) void
setCursorHidden
(boolean isHidden) void
void
setFocusedCursorColor
(Color color) void
void
void
setNotFocusedCursorColor
(Color color) void
void
setPrinting
(boolean b) void
void
setTextCopying
(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()
-