public abstract class AddComponentAgent<E extends ModelComponent> extends FrameBasedEditingAgent implements SelectionListener, ComponentChangeListener, ValueChangeListener
| Constructor and Description |
|---|
AddComponentAgent(Main main,
ComponentList<?> container,
CompositeComponent ancestor) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
addBasicProps(java.lang.Class type,
java.lang.String[] basicProperties) |
void |
addComponentType(java.lang.Class type) |
void |
addComponentType(java.lang.Class type,
java.lang.String[] excludedProperties) |
void |
componentChanged(ComponentChangeEvent e) |
void |
dispose()
Disconnects the agent from the ArtiSynth infrastructure and disposes of
its resources.
|
void |
handleLocationEvent(GLViewer viewer,
MouseRayEvent rayEvent)
Called after a left mouse press in one of the viewers when a location
listener is installed.
|
void |
selectionChanged(SelectionEvent e) |
void |
setComponentType(java.lang.Class type)
Called whenever the specific class type of the components being added by
this agent is changed.
|
void |
show(java.awt.Rectangle popupBounds)
Connects the agent to the ArtiSynth infrastructure and makes it visible.
|
void |
valueChange(ValueChangeEvent e) |
addWidget, getDisplay, isVisiblegetCenter, intersectClipPlane, intersectViewPlanepublic AddComponentAgent(Main main, ComponentList<?> container, CompositeComponent ancestor)
public void show(java.awt.Rectangle popupBounds)
show in class FrameBasedEditingAgentpopupBounds - TODOpublic void dispose()
dispose in interface Disposabledispose in class FrameBasedEditingAgentpublic void selectionChanged(SelectionEvent e)
selectionChanged in interface SelectionListenerpublic void setComponentType(java.lang.Class type)
public void valueChange(ValueChangeEvent e)
valueChange in interface ValueChangeListenerpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class FrameBasedEditingAgentpublic void handleLocationEvent(GLViewer viewer, MouseRayEvent rayEvent)
public void componentChanged(ComponentChangeEvent e)
componentChanged in interface ComponentChangeListenercomponentChanged in class FrameBasedEditingAgentpublic void addComponentType(java.lang.Class type)
public void addComponentType(java.lang.Class type,
java.lang.String[] excludedProperties)
public void addBasicProps(java.lang.Class type,
java.lang.String[] basicProperties)