|
|||||||||
Home >> All >> jpicedt >> graphic >> [ event overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
jpicedt.graphic.event
Class SelectionEvent

java.lang.Objectjava.util.EventObject
jpicedt.graphic.event.SelectionEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class SelectionEvent
- extends java.util.EventObject
Class for SelectionHandler changes notifications (aka CaretEvent in javax.swing.text)
Nested Class Summary | |
static class |
SelectionEvent.EventType
enumeration for SelectionEvent types |
Field Summary | |
protected jpicedt.graphic.model.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(jpicedt.graphic.PECanvas source,
jpicedt.graphic.model.Element[] elements,
SelectionEvent.EventType type)
a new SelectionEvent sourced from the given PECanvas |
|
SelectionEvent(jpicedt.graphic.PECanvas source,
jpicedt.graphic.model.Element element,
SelectionEvent.EventType type)
a new SelectionEvent sourced from the given PECanvas (constructor to be used when only one element was (un)selected). |
Method Summary | |
jpicedt.graphic.model.Element[] |
getElements()
|
SelectionEvent.EventType |
getType()
|
java.lang.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 |
type
protected SelectionEvent.EventType type
- the event type
elements
protected jpicedt.graphic.model.Element[] elements
- the elements that were (un)selected
Constructor Detail |
SelectionEvent
public SelectionEvent(jpicedt.graphic.PECanvas source, jpicedt.graphic.model.Element[] elements, SelectionEvent.EventType type)
- a new SelectionEvent sourced from the given PECanvas
SelectionEvent
public SelectionEvent(jpicedt.graphic.PECanvas source, jpicedt.graphic.model.Element element, SelectionEvent.EventType type)
- a new SelectionEvent sourced from the given PECanvas (constructor to be used
when only one element was (un)selected).
Method Detail |
getElements
public jpicedt.graphic.model.Element[] getElements()
getType
public SelectionEvent.EventType getType()
toString
public java.lang.String toString()
- a textual representation of this event
|
|||||||||
Home >> All >> jpicedt >> graphic >> [ event overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |