|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ascape.model.event.DefaultScapeListener
org.eclipse.amp.escape.ascape.view.ModelScapeView
org.eclipse.amp.escape.ascape.view.EditPartFactoryScapeView
org.eclipse.amp.escape.ascape.view.EditPartScapeView
org.ascape.view.vis.GraphicsView
org.ascape.view.vis.SimplexView
public class SimplexView
A scape view that represents some aspect of agent state in a simplex diagram.
Nested Class Summary | |
---|---|
class |
SimplexView.ConcreteSimplexFeature
The Class ConcreteSimplexFeature. |
Field Summary |
---|
Fields inherited from class org.ascape.view.vis.GraphicsView |
---|
agentSize, image, imageFigure, imageGC, imageGraphics |
Fields inherited from class org.ascape.model.event.DefaultScapeListener |
---|
listeningToScape, scape |
Constructor Summary | |
---|---|
SimplexView()
Constructs an overhead two-dimensional view. |
|
SimplexView(java.lang.String name)
Constructs an overhead two-dimensional view. |
Method Summary | |
---|---|
org.eclipse.draw2d.geometry.Dimension |
getPreferredSize()
Returns the preferred size of this view, which is the size of the lattice times this views agentSize. |
SimplexFeature |
getSimplexFeature()
Returns the color feature this object is using to interpret the object's color. |
int |
getXPosition(SimplexFeature f,
Agent a)
Gets the x position. |
int |
getYPosition(SimplexFeature f,
Agent a)
Gets the y position. |
void |
setCentroidTradeoff(float t)
Sets the centroid tradeoff. |
void |
setSimplexFeature(SimplexFeature simplexFeature)
Sets the color feature this object uses to interpret the object's color. |
void |
updateScapeGraphics(org.eclipse.draw2d.Graphics graphics)
On notification of a scape update, draws the actual overhead view. |
Methods inherited from class org.ascape.view.vis.GraphicsView |
---|
addSelectionChangedListener, createEditPart, createFeatures, createImage, createImageFigure, drawSelectedAgent, getAgentAtPixel, getImage, getImageFigure, getMinimumSizeWithin, getPreferredSizeWithin, getSelection, getSize, refresh, removeSelectionChangedListener, scapeAdded, scapeIterated, setSelection |
Methods inherited from class org.eclipse.amp.escape.ascape.view.EditPartScapeView |
---|
createInput |
Methods inherited from class org.eclipse.amp.escape.ascape.view.EditPartFactoryScapeView |
---|
getAdapter, getRootPart |
Methods inherited from class org.eclipse.amp.escape.ascape.view.ModelScapeView |
---|
getModel, getName, toString |
Methods inherited from class org.ascape.model.event.DefaultScapeListener |
---|
clone, environmentQuiting, getScape, isGraphic, isLifeOfScape, isNotifyScapeAutomatically, notifyScapeUpdated, scapeClosing, scapeDeserialized, scapeInitialized, scapeNotification, scapeRemoved, scapeSetup, scapeStarted, scapeStopped, setName, setNotifyScapeAutomatically |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimplexView(java.lang.String name)
public SimplexView()
data.name
- a user relevant name for this viewcentroidTradeOff
- the centroid trade offMethod Detail |
---|
public org.eclipse.draw2d.geometry.Dimension getPreferredSize()
public void setCentroidTradeoff(float t)
t
- the new centroid tradeoffpublic int getXPosition(SimplexFeature f, Agent a)
f
- the fa
- the a
public int getYPosition(SimplexFeature f, Agent a)
f
- the fa
- the a
public void updateScapeGraphics(org.eclipse.draw2d.Graphics graphics)
updateScapeGraphics
in class GraphicsView
public SimplexFeature getSimplexFeature()
public void setSimplexFeature(SimplexFeature simplexFeature)
simplexFeature
- the feature to use for coloring
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |