public class ConnectorForceRenderer extends MonitorBase
ModelComponent.NavpanelVisibility
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_ARROW_SIZE |
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
ConnectorForceRenderer() |
ConnectorForceRenderer(BodyConnector con) |
Modifier and Type | Method and Description |
---|---|
void |
apply(double t0,
double t1)
Called at the end of a
RootModel 's advance procedure |
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.
|
double |
getArrowSize() |
boolean |
isSelectable()
Returns true if this object is in fact selectable.
|
void |
prerender(PlanarConnector myConnector) |
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 |
prerender(SphericalJointBase myConnector) |
void |
render(Renderer renderer,
int flags)
Render this object using the functionality of the supplied
Renderer . |
void |
setArrowSize(double size) |
copy, createState, getInitialState, getRenderHints, getRenderProps, getSelection, getState, hasState, numSelectionQueriesNeeded, setRenderProps, setState, updateBounds
dispose, finalize, getModel, initialize, isActive, setActive, setModel, 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, isWritable, 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, initialize, isActive, setModel
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
isWritable, write
createState, getInitialState, getState, setState
public static final double DEFAULT_ARROW_SIZE
public static PropertyList myProps
public ConnectorForceRenderer()
public ConnectorForceRenderer(BodyConnector con)
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class ModelAgentBase
public void apply(double t0, double t1)
Monitor
RootModel
's advance proceduret0
- time at start of stept1
- time at end of steppublic 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 MonitorBase
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 void prerender(SphericalJointBase myConnector)
public void prerender(PlanarConnector myConnector)
public RenderProps createRenderProps()
HasRenderProps
createRenderProps
in interface HasRenderProps
createRenderProps
in class ControllerMonitorBase
public boolean isSelectable()
ControllerMonitorBase
isSelectable
in interface IsSelectable
isSelectable
in class ControllerMonitorBase
public void setArrowSize(double size)
public double getArrowSize()