public class PullController extends ControllerBase implements SelectionListener, javax.swing.event.MouseInputListener
ModelComponent.NavpanelVisibility
Modifier and Type | Field and Description |
---|---|
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
PullController(SelectionManager selManager) |
Modifier and Type | Method and Description |
---|---|
void |
apply(double t0,
double t1)
Called at the beginning of a
RootModel 's advance procedure |
void |
clear() |
static RenderProps |
createDefaultRenderProps() |
RenderProps |
createRenderProps()
Factory method to create render properties appropriate to this object.
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
Point3d |
getPointPosition() |
double |
getStiffness() |
void |
initialize(double t0) |
boolean |
isSelectable()
Returns true if this object is in fact selectable.
|
boolean |
isWritable()
Returns false; prevents this component from being writing out as
part of a RootModel file.
|
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
int |
numSelectionQueriesNeeded()
If this selectable manages its own selection (by issuing selection
queries within its
render method), then this method should
return the maximum number of selection queries that will be
required. |
void |
prerender(RenderList list)
Called prior to rendering to allow this object to update the internal
state required for rendering (such as by caching rendering coordinates).
|
void |
render(Renderer renderer,
int flags)
Render this object using the functionality of the supplied
Renderer . |
void |
selectionChanged(SelectionEvent e) |
void |
setModel(Model model) |
void |
setRootModelDefaults(RootModel root)
Should be called whenever this pull controller is assigned to a RootModel
|
void |
setStiffness(double k) |
copy, createState, getInitialState, getRenderHints, getRenderProps, getSelection, getState, hasState, setRenderProps, setState, updateBounds
dispose, finalize, getModel, isActive, setActive, setModelFromComponent, write
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, isFixed, isMarked, isScanning, isSelected, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, getModel, isActive
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferences
getProperty
getChildren, hasChildren
postscan
createState, getInitialState, getState, setState
public static PropertyList myProps
public PullController(SelectionManager selManager)
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class ModelAgentBase
public double getStiffness()
public void setStiffness(double k)
public void clear()
public Point3d getPointPosition()
public void selectionChanged(SelectionEvent e)
selectionChanged
in interface SelectionListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void prerender(RenderList list)
IsRenderable
list.addIfVisible (obj);
for each of the objects in question.prerender
in interface IsRenderable
prerender
in class ControllerMonitorBase
list
- list of objects to be renderedpublic void render(Renderer renderer, int flags)
IsRenderable
Renderer
.render
in interface IsRenderable
render
in class ControllerBase
renderer
- provides the functionality used to perform the rendering.flags
- flags that may be used to control different
aspects of the rendering. Flags are defined in Renderer
and currently include
Renderer.HIGHLIGHT
and
Renderer.SORT_FACES
.public RenderProps createRenderProps()
HasRenderProps
createRenderProps
in interface HasRenderProps
createRenderProps
in class ControllerMonitorBase
public static RenderProps createDefaultRenderProps()
public boolean isSelectable()
ControllerMonitorBase
isSelectable
in interface IsSelectable
isSelectable
in class ControllerMonitorBase
public int numSelectionQueriesNeeded()
IsSelectable
render
method), then this method should
return the maximum number of selection queries that will be
required. Otherwise, this method should return -1.numSelectionQueriesNeeded
in interface IsSelectable
numSelectionQueriesNeeded
in class ControllerMonitorBase
public void initialize(double t0)
initialize
in interface ModelAgent
initialize
in class ModelAgentBase
public void apply(double t0, double t1)
Controller
RootModel
's advance procedureapply
in interface Controller
t0
- time at start of simulation stept1
- time at end of simulation steppublic void setRootModelDefaults(RootModel root)
public void setModel(Model model)
setModel
in interface ModelAgent
setModel
in class ModelAgentBase
public boolean isWritable()
isWritable
in interface Scannable
isWritable
in class ModelComponentBase
true
if this component should be written to
secondary storage.