Class PaintContext
- java.lang.Object
-
- docking.widgets.fieldpanel.internal.PaintContext
-
public class PaintContext extends java.lang.Object
Miscellaneous information needed by fields to paint.
-
-
Constructor Summary
Constructors Constructor Description PaintContext()
Create a new PaintContext with default color values.PaintContext(PaintContext other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cursorFocused()
boolean
cursorHidden()
java.awt.Color
getBackground()
Returns the current background color setting.java.awt.Color
getCursorColor()
Returns the current cursor color setting.java.awt.Color
getDefaultBackground()
Returns the current default background color setting that is used when there is no special background color or highlight or selection.java.awt.Color
getFocusedCursorColor()
java.awt.Color
getForeground()
Returns the current foreground color setting.java.awt.Color
getHighlightColor()
Returns the current selection color setting.java.awt.Color
getNotFocusedCursorColor()
java.awt.Color
getSelectedHighlightColor()
Returns the current selection color setting.java.awt.Color
getSelectionColor()
Returns the current selection color setting.boolean
isDefaultBackground()
Returns true if the current background color matches the default background color.boolean
isPrinting()
boolean
isTextCopying()
void
setBackgroundColor(java.awt.Color c)
void
setCursorColor(java.awt.Color c)
void
setCursorFocused(boolean isFocused)
void
setCursorHidden(boolean isHidden)
void
setDefaultBackgroundColor(java.awt.Color c)
void
setFocusedCursorColor(java.awt.Color color)
void
setForegroundColor(java.awt.Color c)
void
setHighlightColor(java.awt.Color c)
void
setNotFocusedCursorColor(java.awt.Color color)
void
setPrintColor(java.awt.Color c)
void
setPrinting(boolean b)
void
setSelectionColor(java.awt.Color c)
void
setTextCopying(boolean b)
-
-
-
Constructor Detail
-
PaintContext
public PaintContext()
Create a new PaintContext with default color values.
-
PaintContext
public PaintContext(PaintContext other)
-
-
Method Detail
-
getDefaultBackground
public final java.awt.Color getDefaultBackground()
Returns the current default background color setting that is used when there is no special background color or highlight or selection.
-
getBackground
public final java.awt.Color getBackground()
Returns the current background color setting.
-
getForeground
public final java.awt.Color getForeground()
Returns the current foreground color setting.
-
getSelectionColor
public final java.awt.Color getSelectionColor()
Returns the current selection color setting.
-
getHighlightColor
public final java.awt.Color getHighlightColor()
Returns the current selection color setting.
-
getSelectedHighlightColor
public final java.awt.Color getSelectedHighlightColor()
Returns the current selection color setting.
-
getCursorColor
public final java.awt.Color getCursorColor()
Returns the current cursor color setting.
-
getFocusedCursorColor
public final java.awt.Color getFocusedCursorColor()
-
setSelectionColor
public void setSelectionColor(java.awt.Color c)
-
setHighlightColor
public void setHighlightColor(java.awt.Color c)
-
setDefaultBackgroundColor
public void setDefaultBackgroundColor(java.awt.Color c)
-
isDefaultBackground
public final boolean isDefaultBackground()
Returns true if the current background color matches the default background color.
-
setBackgroundColor
public void setBackgroundColor(java.awt.Color c)
-
setForegroundColor
public void setForegroundColor(java.awt.Color c)
-
setCursorColor
public void setCursorColor(java.awt.Color c)
-
cursorHidden
public boolean cursorHidden()
-
cursorFocused
public boolean cursorFocused()
-
setCursorFocused
public void setCursorFocused(boolean isFocused)
-
setCursorHidden
public void setCursorHidden(boolean isHidden)
-
setFocusedCursorColor
public void setFocusedCursorColor(java.awt.Color color)
-
setNotFocusedCursorColor
public void setNotFocusedCursorColor(java.awt.Color color)
-
getNotFocusedCursorColor
public java.awt.Color getNotFocusedCursorColor()
-
setPrintColor
public void setPrintColor(java.awt.Color c)
-
setPrinting
public void setPrinting(boolean b)
-
setTextCopying
public void setTextCopying(boolean b)
-
isPrinting
public boolean isPrinting()
-
isTextCopying
public boolean isTextCopying()
-
-