|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
jpicedt.graphic.event.SelectionEvent
public class SelectionEvent
Class for notifications of changes that occured in a SelectionHandler (strongly mimics
javax.swing.event.CaretEvent)
| Nested Class Summary | |
|---|---|
static class |
SelectionEvent.EventType
enumeration for SelectionEvent types |
| Field Summary | |
|---|---|
protected Element[] |
elements
the elements that were (un)selected |
protected SelectionEvent.EventType |
type
the event type |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
SelectionEvent(PECanvas source,
Element[] elements,
SelectionEvent.EventType type)
a new SelectionEvent sourced from the given PECanvas Use this constructor when several elements were (un)selected. |
|
SelectionEvent(PECanvas source,
Element element,
SelectionEvent.EventType type)
a new SelectionEvent sourced from the given PECanvas. |
|
| Method Summary | |
|---|---|
Element[] |
getElements()
Return the graphic elements that got selected/unselected. |
SelectionEvent.EventType |
getType()
Return the event type |
String |
toString()
a textual representation of this event |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SelectionEvent.EventType type
protected Element[] elements
| Constructor Detail |
|---|
public SelectionEvent(PECanvas source,
Element[] elements,
SelectionEvent.EventType type)
source - the originator of the eventelements - the elements that were (un)selectedtype - the event type
public SelectionEvent(PECanvas source,
Element element,
SelectionEvent.EventType type)
source - the originator of the eventelement - the element that was (un)selectedtype - the event type| Method Detail |
|---|
public Element[] getElements()
public SelectionEvent.EventType getType()
public String toString()
toString in class EventObject
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||