Package com.inet.editor
Class ColorList
java.lang.Object
com.inet.editor.ColorList
This class presends a List for selection a color value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an action listener to the selection componentgetColor()Get the current color value that is selected.Returns a list of available color menu itemsGets the current selection color.voidExecutes when the color button was pressedvoidSets the selected colorvoidSets the color of the current selection
-
Constructor Details
-
ColorList
public ColorList()
-
-
Method Details
-
getColor
Get the current color value that is selected.- Returns:
- a Color value or null
-
setColor
Sets the selected color- Parameters:
selectedColor- the selected color
-
setSelectionColor
Sets the color of the current selection- Parameters:
c- the color of the current selection
-
getSelectionColor
Gets the current selection color.- Returns:
- the current selection color.
-
addActionListener
Adds an action listener to the selection component- Parameters:
l- the listener to add
-
mouseClickedCL
public void mouseClickedCL()Executes when the color button was pressed -
getMenuItems
Returns a list of available color menu items- Returns:
- a list of available color menu items
-