http://www.jpicedt.org

jpicedt.graphic.event
Class ConvexZoneSelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by jpicedt.graphic.event.ConvexZoneSelectionEvent
All Implemented Interfaces:
Serializable

public class ConvexZoneSelectionEvent
extends EventObject

Un événement produit lorsque une ConvexZone est sélectionnée, ou désélectionnée.

Since:
jPicEdt 1.6
Version:
$Id: ConvexZoneSelectionEvent.java,v 1.5 2013/03/27 07:07:12 vincentb1 Exp $
Author:
Vincent Belaïche
See Also:
Serialized Form

Nested Class Summary
static class ConvexZoneSelectionEvent.EventType
          enumeration for SelectionEvent types
 
Field Summary
protected  ConvexZone[] convexZones
          the elements that were (un)selected
protected  ConvexZoneSelectionEvent.EventType type
          the event type
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ConvexZoneSelectionEvent(PECanvas source, ConvexZone[] convexZones, ConvexZoneSelectionEvent.EventType type)
          A new SelectionEvent sourced from the given PECanvas Use this constructor when several elements were (un)selected.
ConvexZoneSelectionEvent(PECanvas source, ConvexZone convexZone, ConvexZoneSelectionEvent.EventType type)
          A new SelectionEvent sourced from the given PECanvas.
 
Method Summary
 ConvexZone[] getConvexZones()
           
 ConvexZoneSelectionEvent.EventType getType()
           
 String toString()
          Une représentation textuel de cet événement.
 
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 ConvexZoneSelectionEvent.EventType type
the event type


convexZones

protected ConvexZone[] convexZones
the elements that were (un)selected

Constructor Detail

ConvexZoneSelectionEvent

public ConvexZoneSelectionEvent(PECanvas source,
                                ConvexZone[] convexZones,
                                ConvexZoneSelectionEvent.EventType type)
A new SelectionEvent sourced from the given PECanvas Use this constructor when several elements were (un)selected.

Parameters:
source - the originator of the event
convexZones - the convexe zone that were (un)selected
type - the event type

ConvexZoneSelectionEvent

public ConvexZoneSelectionEvent(PECanvas source,
                                ConvexZone convexZone,
                                ConvexZoneSelectionEvent.EventType type)
A new SelectionEvent sourced from the given PECanvas. Use this constructor when only one convexZone was (un)selected.

Parameters:
source - the originator of the event
convexZone - the convexZone that was (un)selected
type - the event type
Method Detail

getConvexZones

public ConvexZone[] getConvexZones()
Returns:
les ConvexZones qui ont été séléctionnées/désélectionnées.

getType

public ConvexZoneSelectionEvent.EventType getType()
Returns:
the event type

toString

public String toString()
Une représentation textuel de cet événement.

Overrides:
toString in class EventObject

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org