public class PaletteEvent extends EventObject
PaletteListener
when changes occur in the palette.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
added
The
added flag. |
protected IlvPaletteBaseObject |
child
The child.
|
protected IlvPaletteCategory |
parent
The parent.
|
source| Constructor and Description |
|---|
PaletteEvent(IlvPalette source,
IlvPaletteCategory parent,
IlvPaletteCategoryChild child,
boolean added)
Creates an event
|
PaletteEvent(IlvPalette source,
IlvPaletteSymbolParameterValueSet vset,
boolean added)
Creates an event
|
| Modifier and Type | Method and Description |
|---|---|
IlvPaletteCategoryChild |
getChild()
Returns the child (a category or symbol) that has been added or removed.
|
IlvPalette |
getPalette()
Returns the palette that has caused the event.
|
IlvPaletteCategory |
getParentCategory()
Returns the parent category the child has been added to or removed from.
|
IlvPaletteSymbolParameterValueSet |
getValueSet()
Returns the value set that has been added or removed.
|
boolean |
isAdded()
Returns whether the child was added to the parent category or removed
from the parent category.
|
getSource, toStringprotected transient IlvPaletteCategory parent
getParentCategory()protected transient IlvPaletteBaseObject child
getChild()protected transient boolean added
added flag.isAdded()public PaletteEvent(IlvPalette source, IlvPaletteCategory parent, IlvPaletteCategoryChild child, boolean added)
source - The source of the event.parent - The old or new parent category.child - The child whose parent has changed.added - Whether the child was added or removed from parent.public PaletteEvent(IlvPalette source, IlvPaletteSymbolParameterValueSet vset, boolean added)
source - The source of the event.vset - The palette value set that was added or removed.added - Whether the value set was added or removed from parent.public IlvPalette getPalette()
public IlvPaletteSymbolParameterValueSet getValueSet()
isAdded()public IlvPaletteCategoryChild getChild()
getParentCategory()getParentCategory(),
isAdded()public IlvPaletteCategory getParentCategory()
added flag is true and this method
returns null.added flag is false and this method
returns null.null.getChild(),
isAdded()public boolean isAdded()
null and this method
returns true.null and this method
returns false.true.false.true.false.getValueSet(),
getChild(),
getParentCategory()© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.