Interface PaletteItemGroup
-
- All Superinterfaces:
javax.swing.ListModel
- All Known Implementing Classes:
CustomPaletteItemGroup
,DefaultPaletteItemGroup
public interface PaletteItemGroup extends javax.swing.ListModel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addPaletteItem(PaletteItem item)
Adds a new palette item into the groupvoid
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
void
addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
javax.swing.Icon
getIcon()
Get the icon for this palette item group.java.lang.String
getName()
Returns the name of this palette item groupPaletteItem
getPaletteItem(int index)
Return the palette item contained at positionindex
void
insertPaletteItem(int index, PaletteItem item)
Inserts the item at the given position, moving what is currently at that position to the rightboolean
isEnabled()
boolean
isMutable()
Returns true if this PaletteItemGroup can be changed.void
removePaletteItem(PaletteItem item)
Removes the palette item at the given index.void
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
void
removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
void
setEnabled(boolean enabled)
void
setName(java.lang.String name)
Sets the name of this palette item groupvoid
setPaletteItem(int index, PaletteItem item)
Sets the palette item at the index.
-
-
-
Method Detail
-
addPropertyChangeListener
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
-
addPropertyChangeListener
void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
-
removePropertyChangeListener
void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
-
removePropertyChangeListener
void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
-
getPaletteItem
PaletteItem getPaletteItem(int index)
Return the palette item contained at positionindex
-
addPaletteItem
void addPaletteItem(PaletteItem item)
Adds a new palette item into the group
-
setPaletteItem
void setPaletteItem(int index, PaletteItem item)
Sets the palette item at the index. (Overwrites the item, not insert)
-
insertPaletteItem
void insertPaletteItem(int index, PaletteItem item)
Inserts the item at the given position, moving what is currently at that position to the right
-
removePaletteItem
void removePaletteItem(PaletteItem item)
Removes the palette item at the given index.
-
getName
java.lang.String getName()
Returns the name of this palette item group
-
setName
void setName(java.lang.String name)
Sets the name of this palette item group
-
getIcon
javax.swing.Icon getIcon()
Get the icon for this palette item group. null is allowed.
-
isMutable
boolean isMutable()
Returns true if this PaletteItemGroup can be changed. Only custom palettes are mutable.
-
isEnabled
boolean isEnabled()
-
setEnabled
void setEnabled(boolean enabled)
-
-