Class MixedLayoutBackgroundColorManager
- java.lang.Object
-
- docking.widgets.fieldpanel.internal.MixedLayoutBackgroundColorManager
-
- All Implemented Interfaces:
LayoutBackgroundColorManager
public class MixedLayoutBackgroundColorManager extends java.lang.Object implements LayoutBackgroundColorManager
-
-
Constructor Summary
Constructors Constructor Description MixedLayoutBackgroundColorManager(java.math.BigInteger index, FieldSelection selection, FieldSelection highlight, java.awt.Color backgroundColor, java.awt.Color selectionColor, java.awt.Color highlightColor, java.awt.Color mixedColor, java.awt.Color leftBorderColor, java.awt.Color rightBorderColor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Color
getBackgroundColor()
Returns the overall background color for the entire layout.java.awt.Color
getBackgroundColor(FieldLocation location)
Returns the background color at a specific location within the layout.FieldBackgroundColorManager
getFieldBackgroundColorManager(int fieldNum)
Returns aFieldBackgroundColorManager
to manage the background colors for field indexed by fieldNum.java.awt.Color
getPaddingColor(int padIndex)
Returns the color of the padding between fields or null if the color is the same as the background color for the layout.FieldSelection
getSelection()
-
-
-
Constructor Detail
-
MixedLayoutBackgroundColorManager
public MixedLayoutBackgroundColorManager(java.math.BigInteger index, FieldSelection selection, FieldSelection highlight, java.awt.Color backgroundColor, java.awt.Color selectionColor, java.awt.Color highlightColor, java.awt.Color mixedColor, java.awt.Color leftBorderColor, java.awt.Color rightBorderColor)
-
-
Method Detail
-
getFieldBackgroundColorManager
public FieldBackgroundColorManager getFieldBackgroundColorManager(int fieldNum)
Description copied from interface:LayoutBackgroundColorManager
Returns aFieldBackgroundColorManager
to manage the background colors for field indexed by fieldNum.- Specified by:
getFieldBackgroundColorManager
in interfaceLayoutBackgroundColorManager
- Parameters:
fieldNum
- the index of the field for which to get a colorManager.- Returns:
- the FieldBackgroundColorManager for the given field index.
-
getBackgroundColor
public java.awt.Color getBackgroundColor()
Description copied from interface:LayoutBackgroundColorManager
Returns the overall background color for the entire layout. If the layout is totally, selected, then this color will be the selection color. If the layout is highlighted,then the color will be the highlight color. If both, then the color will be the combined color. If the color is the same the overall background color of the field panel, then null will be returned to indicate that the background color for this layout does not need to be painted.- Specified by:
getBackgroundColor
in interfaceLayoutBackgroundColorManager
- Returns:
- the background color for this layout or null if it is the same as the background for the field panel.
-
getPaddingColor
public java.awt.Color getPaddingColor(int padIndex)
Description copied from interface:LayoutBackgroundColorManager
Returns the color of the padding between fields or null if the color is the same as the background color for the layout.- Specified by:
getPaddingColor
in interfaceLayoutBackgroundColorManager
- Parameters:
padIndex
- the index of the padding area. 0 represents the gap before the first field. a -1 indicates the gap past the last field.- Returns:
- the color for indicated gap padding.
-
getSelection
public FieldSelection getSelection()
-
getBackgroundColor
public java.awt.Color getBackgroundColor(FieldLocation location)
Description copied from interface:LayoutBackgroundColorManager
Returns the background color at a specific location within the layout.- Specified by:
getBackgroundColor
in interfaceLayoutBackgroundColorManager
- Parameters:
location
- the location in the layout for which to get the background color.- Returns:
- the background color at a specific location within the layout.
-
-