Class AbstractBusPrimitive<CONTAINER extends BusContainer<?>>
- java.lang.Object
-
- org.arakhne.afc.gis.primitive.AbstractGISElement<C,T>
-
- org.arakhne.afc.gis.primitive.AbstractBoundedGISElement<CONTAINER,AbstractBusPrimitive<CONTAINER>>
-
- org.arakhne.afc.gis.bus.network.AbstractBusPrimitive<CONTAINER>
-
- Type Parameters:
CONTAINER
- is the type of the object which could contains a instance of this class.
- All Implemented Interfaces:
Serializable
,Cloneable
,EventListener
,AttributeChangeListener
,AttributeCollection
,AttributeProvider
,BusPrimitive<CONTAINER>
,BoundedGISElement
,FlagContainer
,GISCloneable<AbstractBusPrimitive<CONTAINER>>
,GISEditable
,GISElement
,GISFlagContainer
,GISPrimitive
,BoundedElement2afp<Rectangle2d>
,JsonableObject
- Direct Known Subclasses:
AbstractBusContainer
,BusHub
,BusItineraryHalt
,BusStop
public abstract class AbstractBusPrimitive<CONTAINER extends BusContainer<?>> extends AbstractBoundedGISElement<CONTAINER,AbstractBusPrimitive<CONTAINER>> implements BusPrimitive<CONTAINER>
A bus stop is a specific stop of an itinerary. It is situated on a road segment.Validation
Validity state of the bus primitive depends on the type of that primitive. By default, all bus primitives are invalid. They must implement thecheckPrimitiveValidity()
to verify if the current validity state is correct and change it if necessary.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:56
- Author:
- Stéphane GALLAND
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.gis
- Maven Artifact Id:
- gisbus
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_COLOR
Attribute: color of the element.static int
DEFAULT_COLOR
Default color of a map element.-
Fields inherited from interface org.arakhne.afc.gis.primitive.FlagContainer
FLAG_READONLY, FLAG_SELECTED
-
Fields inherited from interface org.arakhne.afc.gis.primitive.GISElement
ATTR_NAME, NAME_COMPARATOR
-
Fields inherited from interface org.arakhne.afc.gis.primitive.GISPrimitive
COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description AbstractBusPrimitive(UUID id, AttributeCollection attributeProvider)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addBusChangeListener(BusChangeListener listener)
Add listener.void
addGISEditableChangeListener(GISEditableChangeListener listener)
Add listener.protected <T extends EventListener>
voidaddListener(Class<T> listenerType, T listener)
Add a listener.protected abstract void
checkPrimitiveValidity()
Check if the validity of this primitive is correctly set and change its values if necessary.protected void
finalize()
Deprecated, for removal: This API element is subject to removal in a future version.void
fireGraphicalAttributeChanged(String propertyName, Object oldValue, Object newValue)
Invoked when one of the graphical attributes of this element has changed, except those that change the bounding boxes.void
fireGraphicalAttributeChanged(BusChangeEvent event)
Invoked when one of the graphical attributes of this element has changed, except those that change the bounding boxes.protected void
firePrimitiveChanged()
Fire the event that indicates this object has changed.protected void
firePrimitiveChanged(String propertyName, Object oldValue, Object newValue)
Fire the event that indicates this object has changed.void
firePrimitiveChanged(BusChangeEvent event)
Fire the event that indicates this object has changed.void
fireShapeChanged()
Invoked when the shape of this element changed.void
fireShapeChanged(BusChangeEvent event)
Invoked when the shape of this element changed.protected void
fireValidityChanged(BusPrimitiveInvalidity oldReason, BusPrimitiveInvalidity newReason)
Fire the event that indicates the validity of the object has changed.protected void
fireValidityChangedFor(Object changedObject, int index, BusPrimitiveInvalidity oldReason, BusPrimitiveInvalidity newReason)
Fire the event that indicates the validity of the object has changed.int
getColor()
Replies the color of this element or the color of the container.int
getColor(int defaultColor)
Replies the color of this element or the color of the container.int
getFlags()
Replies the flags associated to this element.GeoLocation
getGeoLocation()
Replies the geo-location.BusPrimitiveInvalidity
getInvalidityReason()
Replies the explanation of the invalidity of the primitive.Integer
getRawColor()
Replies the color stored inside this element.boolean
hasFlag(int flagIndex)
Replies if the specified flag is set for this element.abstract int
indexInParent()
Replies the index of this primitive in its parent.boolean
isReadOnlyObject()
Replies if this editable object want to be seen as a reed-only object.boolean
isValidPrimitive()
Replies if this primitive is marked as valid.protected void
onAttributeChanged(String name)
This function is invoked by the attribute provider each time an attribute has changed.void
rebuild()
Rebuild the primitive and all the primitive inside.void
removeBusChangeListener(BusChangeListener listener)
Remove listener.void
removeGISEditableChangeListener(GISEditableChangeListener listener)
Remove listener.protected <T extends EventListener>
voidremoveListener(Class<T> listenerType, T listener)
Remove a listener.void
revalidate()
Check if the validity of this primitive is correctly set and change its values if necessary.void
setColor(int color)
Set the color of this element.void
setFlag(int flag)
Set the flag.protected void
setPrimitiveValidity(BusPrimitiveInvalidity invalidityReason)
Set if this component has invalid or not.void
setReadOnlyObject(boolean readOnly)
Set if this editable object want to be seen as a reed-only object.void
setUUID(UUID id)
Set the unique identifier for element.void
switchFlag(int flagIndex)
Switch the value of the specified flag on this element.void
toJson(JsonBuffer buffer)
Replies the Json representation of this node.void
unsetFlag(int flagIndex)
Unset the flag.-
Methods inherited from class org.arakhne.afc.gis.primitive.AbstractBoundedGISElement
calcBounds, clone, getBoundingBox, resetBoundingBox, setBoundingBox
-
Methods inherited from class org.arakhne.afc.gis.primitive.AbstractGISElement
addAttributeChangeListener, addAttributes, addAttributes, attributes, copyAttributes, flush, freeMemory, getAllAttributeNames, getAllAttributes, getAllAttributesByType, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttributeAsBool, getAttributeAsDate, getAttributeAsDouble, getAttributeAsEnumeration, getAttributeAsEnumeration, getAttributeAsFloat, getAttributeAsInetAddress, getAttributeAsInt, getAttributeAsJavaClass, getAttributeAsLong, getAttributeAsString, getAttributeAsURI, getAttributeAsURL, getAttributeAsUUID, getAttributeCollection, getAttributeCount, getAttributeObject, getAttributeProvider, getContainer, getGeoId, getName, getTopContainer, getUUID, hasAttribute, hashKey, isEventFirable, onAttributeChangeEvent, removeAllAttributes, removeAttribute, removeAttributeChangeListener, renameAttribute, renameAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes, setAttributes, setAttributeType, setContainer, setEventFirable, setName, toMap, toMap, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.attrs.collection.AttributeCollection
addAttributeChangeListener, addAttributes, addAttributes, flush, isEventFirable, removeAllAttributes, removeAttribute, removeAttributeChangeListener, renameAttribute, renameAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes, setAttributes, setAttributeType, setEventFirable
-
Methods inherited from interface org.arakhne.afc.attrs.collection.AttributeProvider
attributes, freeMemory, getAllAttributeNames, getAllAttributes, getAllAttributesByType, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttributeAsBool, getAttributeAsDate, getAttributeAsDouble, getAttributeAsEnumeration, getAttributeAsEnumeration, getAttributeAsFloat, getAttributeAsInetAddress, getAttributeAsInt, getAttributeAsJavaClass, getAttributeAsLong, getAttributeAsString, getAttributeAsURI, getAttributeAsURL, getAttributeAsUUID, getAttributeCount, getAttributeObject, hasAttribute, toMap, toMap
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.afp.BoundedElement2afp
getBoundingBox
-
Methods inherited from interface org.arakhne.afc.gis.primitive.BoundedGISElement
getShape, resetBoundingBox
-
Methods inherited from interface org.arakhne.afc.gis.bus.network.BusPrimitive
getBusNetwork, rebuild
-
Methods inherited from interface org.arakhne.afc.gis.primitive.GISEditable
getName, setName
-
Methods inherited from interface org.arakhne.afc.gis.primitive.GISElement
clone, copyAttributes, getName, hashKey, setName
-
Methods inherited from interface org.arakhne.afc.gis.primitive.GISPrimitive
getGeoId, getUUID
-
-
-
-
Field Detail
-
ATTR_COLOR
public static final String ATTR_COLOR
Attribute: color of the element.- See Also:
- Constant Field Values
-
DEFAULT_COLOR
public static final int DEFAULT_COLOR
Default color of a map element.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractBusPrimitive
AbstractBusPrimitive(UUID id, AttributeCollection attributeProvider)
Constructor.- Parameters:
id
- is the unique identifier of this element, ornull
if unknown.attributeProvider
- is the provider of attributes used by this bus stop.- Since:
- 2.0
-
-
Method Detail
-
finalize
@Deprecated(since="17.0", forRemoval=true) protected void finalize() throws Throwable
Deprecated, for removal: This API element is subject to removal in a future version.
-
onAttributeChanged
protected void onAttributeChanged(String name)
This function is invoked by the attribute provider each time an attribute has changed.You should override this method to provide several feedback to the BusPrimitive for instance.
- Parameters:
name
- is the name of the attribute that changed
-
addListener
protected final <T extends EventListener> void addListener(Class<T> listenerType, T listener)
Add a listener.- Type Parameters:
T
- is the type of listener to add.- Parameters:
listenerType
- is the type of listener to add.listener
- is the new listener.
-
removeListener
protected final <T extends EventListener> void removeListener(Class<T> listenerType, T listener)
Remove a listener.- Type Parameters:
T
- is the type of listener to add.- Parameters:
listenerType
- is the type of listener to remove.listener
- is the new listener.
-
addGISEditableChangeListener
public void addGISEditableChangeListener(GISEditableChangeListener listener)
Description copied from interface:GISEditable
Add listener.- Specified by:
addGISEditableChangeListener
in interfaceBusPrimitive<CONTAINER extends BusContainer<?>>
- Specified by:
addGISEditableChangeListener
in interfaceGISEditable
- Parameters:
listener
- the listener.
-
removeGISEditableChangeListener
public void removeGISEditableChangeListener(GISEditableChangeListener listener)
Description copied from interface:GISEditable
Remove listener.- Specified by:
removeGISEditableChangeListener
in interfaceBusPrimitive<CONTAINER extends BusContainer<?>>
- Specified by:
removeGISEditableChangeListener
in interfaceGISEditable
- Parameters:
listener
- the listener.
-
addBusChangeListener
public void addBusChangeListener(BusChangeListener listener)
Description copied from interface:BusPrimitive
Add listener.- Specified by:
addBusChangeListener
in interfaceBusPrimitive<CONTAINER extends BusContainer<?>>
- Parameters:
listener
- the listener.
-
removeBusChangeListener
public void removeBusChangeListener(BusChangeListener listener)
Description copied from interface:BusPrimitive
Remove listener.- Specified by:
removeBusChangeListener
in interfaceBusPrimitive<CONTAINER extends BusContainer<?>>
- Parameters:
listener
- the listener.
-
indexInParent
@Pure public abstract int indexInParent()
Replies the index of this primitive in its parent.- Returns:
- the index of this primitive in its parent.
-
firePrimitiveChanged
protected final void firePrimitiveChanged()
Fire the event that indicates this object has changed.
-
firePrimitiveChanged
protected final void firePrimitiveChanged(String propertyName, Object oldValue, Object newValue)
Fire the event that indicates this object has changed.- Parameters:
propertyName
- is the name of the graphical property.oldValue
- is the old value of the property.newValue
- is the new value of the property.
-
firePrimitiveChanged
public void firePrimitiveChanged(BusChangeEvent event)
Description copied from interface:BusPrimitive
Fire the event that indicates this object has changed.- Specified by:
firePrimitiveChanged
in interfaceBusPrimitive<CONTAINER extends BusContainer<?>>
- Parameters:
event
- the event
-
fireValidityChanged
protected final void fireValidityChanged(BusPrimitiveInvalidity oldReason, BusPrimitiveInvalidity newReason)
Fire the event that indicates the validity of the object has changed.- Parameters:
oldReason
- is the old invalidity reason before the change.newReason
- is the current invalidity reason after the change.
-
fireValidityChangedFor
protected void fireValidityChangedFor(Object changedObject, int index, BusPrimitiveInvalidity oldReason, BusPrimitiveInvalidity newReason)
Fire the event that indicates the validity of the object has changed.- Parameters:
changedObject
- is the object for which the validity has changed.index
- is the index of the changedObject in its parent.oldReason
- is the old invalidity reason before the change.newReason
- is the current invalidity reason after the change.
-
fireGraphicalAttributeChanged
public void fireGraphicalAttributeChanged(String propertyName, Object oldValue, Object newValue)
Invoked when one of the graphical attributes of this element has changed, except those that change the bounding boxes.This function does not call
BoundedGISElement.resetBoundingBox()
.In the implementation of a MapElement, prefers to call
fireGraphicalAttributeChanged()
orBusPrimitive.fireShapeChanged()
instead ofBoundedGISElement.resetBoundingBox()
.If the attributes that change concern the shape (bounding box) of the element, prefers an invocation of
BusPrimitive.fireShapeChanged()
instead offireGraphicalAttributeChanged()
- Specified by:
fireGraphicalAttributeChanged
in interfaceBusPrimitive<CONTAINER extends BusContainer<?>>
- Parameters:
propertyName
- is the name of the graphical property.oldValue
- is the old value of the property.newValue
- is the new value of the property.
-
fireGraphicalAttributeChanged
public void fireGraphicalAttributeChanged(BusChangeEvent event)
Description copied from interface:BusPrimitive
Invoked when one of the graphical attributes of this element has changed, except those that change the bounding boxes.This function does not call
BoundedGISElement.resetBoundingBox()
.In the implementation of a MapElement, prefers to call
fireGraphicalAttributeChanged()
orBusPrimitive.fireShapeChanged()
instead ofBoundedGISElement.resetBoundingBox()
.If the attributes that change concern the shape (bounding box) of the element, prefers an invocation of
BusPrimitive.fireShapeChanged()
instead offireGraphicalAttributeChanged()
- Specified by:
fireGraphicalAttributeChanged
in interfaceBusPrimitive<CONTAINER extends BusContainer<?>>
- Parameters:
event
- the event.
-
fireShapeChanged
public void fireShapeChanged()
Description copied from interface:BusPrimitive
Invoked when the shape of this element changed.This method also reset the bounding box to allow its re-computation (with a call to
BoundedGISElement.resetBoundingBox()
.In the implementation of a BusPrimitive, prefers to call
BusPrimitive.fireGraphicalAttributeChanged(String, Object, Object)
orfireShapeChanged()
instead ofBoundedGISElement.resetBoundingBox()
.If the attributes that change does not concern the shape (bounding box) of the element, prefers an invocation of
BusPrimitive.fireGraphicalAttributeChanged(String, Object, Object)
instead offireShapeChanged()
- Specified by:
fireShapeChanged
in interfaceBusPrimitive<CONTAINER extends BusContainer<?>>
-
fireShapeChanged
public void fireShapeChanged(BusChangeEvent event)
Description copied from interface:BusPrimitive
Invoked when the shape of this element changed.This method also reset the bounding box to allow its re-computation (with a call to
BoundedGISElement.resetBoundingBox()
.In the implementation of a BusPrimitive, prefers to call
BusPrimitive.fireGraphicalAttributeChanged(String, Object, Object)
orfireShapeChanged()
instead ofBoundedGISElement.resetBoundingBox()
.If the attributes that change does not concern the shape (bounding box) of the element, prefers an invocation of
BusPrimitive.fireGraphicalAttributeChanged(String, Object, Object)
instead offireShapeChanged()
- Specified by:
fireShapeChanged
in interfaceBusPrimitive<CONTAINER extends BusContainer<?>>
- Parameters:
event
- the event.
-
setUUID
public void setUUID(UUID id)
Description copied from class:AbstractGISElement
Set the unique identifier for element.A Unique IDentifier (UID) must be unique for all the object instances.
- Overrides:
setUUID
in classAbstractGISElement<CONTAINER extends BusContainer<?>,AbstractBusPrimitive<CONTAINER extends BusContainer<?>>>
- Parameters:
id
- is the new identifier
-
getGeoLocation
@Pure public GeoLocation getGeoLocation()
Description copied from interface:GISPrimitive
Replies the geo-location.A GeoLocation is unique according to the geo-location of the element. If two elements have the same points in the same order, or if two elements have the same points in a reverse order, they must have equal GeoLocations.
The following code is always true (where the arguments of the constructors are the list of points of the polyline). It illustrates that for two elements with the same geo-localized points, they have the same geo-location identifier (Geo-Id) and they have different unique ientifier (Uid):
GISElement obj1 = new MapPolyline(100,10,200,30,300,4); GISElement obj2 = new MapPolyline(100,10,200,30,300,4); assert( obj1.getGeoId().equals(obj2.getGeoId()) ); assert( obj2.getGeoId().equals(obj1.getGeoId()) ); assert( ! obj1.getUid().equals(obj2.getUid()) ); assert( ! obj2.getUid().equals(obj1.getUid()) );
- Specified by:
getGeoLocation
in interfaceGISPrimitive
- Returns:
- a location
- See Also:
GISPrimitive.getGeoId()
,GISPrimitive.getGeoLocation()
-
getColor
@Pure public int getColor()
Replies the color of this element or the color of the container.- Specified by:
getColor
in interfaceGISEditable
- Returns:
- the color
- See Also:
getRawColor()
-
getColor
@Pure public int getColor(int defaultColor)
Replies the color of this element or the color of the container.- Parameters:
defaultColor
- the default color.- Returns:
- the color
- See Also:
getRawColor()
-
getRawColor
@Pure public Integer getRawColor()
Description copied from interface:GISEditable
Replies the color stored inside this element.- Specified by:
getRawColor
in interfaceGISEditable
- Returns:
- the color of this element, or
null
.
-
setColor
public void setColor(int color)
Description copied from interface:GISEditable
Set the color of this element.- Specified by:
setColor
in interfaceGISEditable
- Parameters:
color
- the new color
-
isReadOnlyObject
@Pure public boolean isReadOnlyObject()
Description copied from interface:GISEditable
Replies if this editable object want to be seen as a reed-only object.Even if this object replies
true
, it is possible to change its attributes. The value replied by this function is just a desire from this object. It could be used by the GUI to allow edition or not from a graphical component.- Specified by:
isReadOnlyObject
in interfaceGISEditable
- Returns:
true
if this object ant to be assumed as read-only, otherwisefalse
-
setReadOnlyObject
public void setReadOnlyObject(boolean readOnly)
Set if this editable object want to be seen as a reed-only object.Even if this object replies
true
, it is possible to change its attributes. The value replied by this function is just a desire from this object. It could be used by the GUI to allow edition or not from a graphical component.- Parameters:
readOnly
- the flag.
-
getFlags
@Pure public int getFlags()
Description copied from interface:FlagContainer
Replies the flags associated to this element.The flag could be predefined (eg.
FlagContainer.FLAG_SELECTED
, or user defined.- Specified by:
getFlags
in interfaceFlagContainer
- Returns:
- the flags
- See Also:
FlagContainer.FLAG_SELECTED
,FlagContainer.hasFlag(int)
,FlagContainer.setFlag(int)
,FlagContainer.unsetFlag(int)
-
hasFlag
@Pure public boolean hasFlag(int flagIndex)
Description copied from interface:FlagContainer
Replies if the specified flag is set for this element.The flag could be predefined (eg.
FlagContainer.FLAG_SELECTED
, or user defined.- Specified by:
hasFlag
in interfaceFlagContainer
- Parameters:
flagIndex
- is the index of the flag- Returns:
true
if the flag was set, otherwisefalse
- See Also:
FlagContainer.FLAG_SELECTED
,FlagContainer.getFlags()
,FlagContainer.setFlag(int)
,FlagContainer.unsetFlag(int)
-
switchFlag
public void switchFlag(int flagIndex)
Description copied from interface:FlagContainer
Switch the value of the specified flag on this element.The flag could be predefined (eg.
FlagContainer.FLAG_SELECTED
, or user defined.- Specified by:
switchFlag
in interfaceFlagContainer
- Parameters:
flagIndex
- is the index of the flag- See Also:
FlagContainer.FLAG_SELECTED
,FlagContainer.getFlags()
,FlagContainer.setFlag(int)
,FlagContainer.unsetFlag(int)
-
setFlag
public void setFlag(int flag)
Description copied from interface:FlagContainer
Set the flag.The flag could be predefined (eg.
FlagContainer.FLAG_SELECTED
, or user defined.- Specified by:
setFlag
in interfaceFlagContainer
- Parameters:
flag
- is the index of the flag- See Also:
FlagContainer.FLAG_SELECTED
,FlagContainer.getFlags()
,FlagContainer.hasFlag(int)
,FlagContainer.unsetFlag(int)
-
unsetFlag
public void unsetFlag(int flagIndex)
Description copied from interface:FlagContainer
Unset the flag.The flag could be predefined (eg.
FlagContainer.FLAG_SELECTED
, or user defined.- Specified by:
unsetFlag
in interfaceFlagContainer
- Parameters:
flagIndex
- is the index of the flag- See Also:
FlagContainer.FLAG_SELECTED
,FlagContainer.getFlags()
,FlagContainer.hasFlag(int)
,FlagContainer.setFlag(int)
-
isValidPrimitive
@Pure public final boolean isValidPrimitive()
Description copied from interface:BusPrimitive
Replies if this primitive is marked as valid.The validity of a primitive depends on the type of this primitive. Please refers to the documentation of that primitive.
- Specified by:
isValidPrimitive
in interfaceBusPrimitive<CONTAINER extends BusContainer<?>>
- Returns:
true
if the primitive is valid, otherwisefalse
-
setPrimitiveValidity
protected final void setPrimitiveValidity(BusPrimitiveInvalidity invalidityReason)
Set if this component has invalid or not.This function is supposed to be invoked at least from
checkPrimitiveValidity()
.- Parameters:
invalidityReason
- is the reason of the invalidity; ifnull
the primitive is valid.
-
getInvalidityReason
@Pure public final BusPrimitiveInvalidity getInvalidityReason()
Description copied from interface:BusPrimitive
Replies the explanation of the invalidity of the primitive.- Specified by:
getInvalidityReason
in interfaceBusPrimitive<CONTAINER extends BusContainer<?>>
- Returns:
- the invalidity reason.
-
revalidate
public void revalidate()
Description copied from interface:BusPrimitive
Check if the validity of this primitive is correctly set and change its values if necessary. This function revalidate also all the primitives inside this primitive.- Specified by:
revalidate
in interfaceBusPrimitive<CONTAINER extends BusContainer<?>>
-
checkPrimitiveValidity
protected abstract void checkPrimitiveValidity()
Check if the validity of this primitive is correctly set and change its values if necessary. This function DO NOT revalidate the primitives inside this primitive.- See Also:
revalidate()
-
rebuild
public final void rebuild()
Description copied from interface:BusPrimitive
Rebuild the primitive and all the primitive inside. Rebuilding means to reset all the internal values and recompute their values.This function should be invoked when the bus primitive was construct with its flag replied by
AttributeCollection.isEventFirable()
set tofalse
. This function permits to finalize the construction.In addition, this function automatically invoke
BoundedGISElement.resetBoundingBox()
and does the same job asBusPrimitive.revalidate()
(but does not invoke it). This function invokesAttributeCollection.setEventFirable(boolean)
withtrue
as parameter.This function does not fire any event is
AttributeCollection.isEventFirable()
repliestrue
whenBusPrimitive.rebuild()
is invoked- Specified by:
rebuild
in interfaceBusPrimitive<CONTAINER extends BusContainer<?>>
- See Also:
BusPrimitive.rebuild(boolean)
-
toJson
@Pure public void toJson(JsonBuffer buffer)
Description copied from interface:JsonableObject
Replies the Json representation of this node.- Specified by:
toJson
in interfaceJsonableObject
- Overrides:
toJson
in classAbstractBoundedGISElement<CONTAINER extends BusContainer<?>,AbstractBusPrimitive<CONTAINER extends BusContainer<?>>>
- Parameters:
buffer
- the Json buffer.
-
-