public class SpringGraphBuilder extends java.lang.Object implements IItemListener, IExpressionSessionChangeListener
Constructor and Description |
---|
SpringGraphBuilder(IStage stage,
float distanceForConnection,
float distanceForBreak,
float desiredLineLength) |
Modifier and Type | Method and Description |
---|---|
void |
allExpressionsRemoved()
All expressions removed.
|
void |
expressionAddedFromCalculator(Expression e)
Expression added from calculator.
|
void |
expressionAddedFromNetwork(Expression e)
Expression added from network.
|
void |
expressionRemoved(Expression expression)
Expression removed.
|
com.jme3.math.ColorRGBA |
getLineColour()
Gets the line colour.
|
void |
itemCursorChanged(IItem item,
MultiTouchCursorEvent event)
Item cursor changed.
|
void |
itemCursorClicked(IItem item,
MultiTouchCursorEvent event)
Item cursor clicked.
|
void |
itemCursorPressed(IItem item,
MultiTouchCursorEvent event)
Item cursor pressed.
|
void |
itemCursorReleased(IItem item,
MultiTouchCursorEvent event)
Item cursor released.
|
void |
itemMoved(IItem item)
Item moved.
|
void |
itemRotated(IItem item)
Item rotated.
|
void |
itemScaled(IItem item)
Item scaled.
|
void |
itemVisibilityChanged(IItem item,
boolean isVisible)
Item visibility changed.
|
void |
itemZOrderChanged(IItem item)
Item z order changed.
|
void |
registerAllCurrentlyOnScreenItemsForConnecting()
Register all currently on screen items for connecting.
|
void |
registerItemForConnecting(IItem item)
Will only try and connect together those items that are registered.
|
void |
setActive(boolean active,
double forTarget)
Sets the active.
|
void |
setExpressionSessionAndDisplay(ExpressionSession session,
ExpressionDisplay expressionDisplay,
IContainer graphingLinesContainer)
Sets the expression session and display.
|
void |
setLineColour(com.jme3.math.ColorRGBA lineColour)
Sets the line colour.
|
void |
targetChanged(java.lang.Double newValue)
Target changed.
|
void |
unregisterAllItems()
Unregister all items.
|
void |
unregisterItemForConnecting(IItem item)
Unregister an item - will ensure that it will no longer be able to be
connected.
|
public SpringGraphBuilder(IStage stage, float distanceForConnection, float distanceForBreak, float desiredLineLength)
expressionSession
- app
- distanceForConnection
- distanceForBreak
- public void allExpressionsRemoved()
IExpressionSessionChangeListener
allExpressionsRemoved
in interface IExpressionSessionChangeListener
public void expressionAddedFromCalculator(Expression e)
IExpressionSessionChangeListener
expressionAddedFromCalculator
in interface IExpressionSessionChangeListener
e
- the epublic void expressionAddedFromNetwork(Expression e)
IExpressionSessionChangeListener
expressionAddedFromNetwork
in interface IExpressionSessionChangeListener
e
- the epublic void expressionRemoved(Expression expression)
IExpressionSessionChangeListener
expressionRemoved
in interface IExpressionSessionChangeListener
expression
- the expressionpublic com.jme3.math.ColorRGBA getLineColour()
public void itemCursorChanged(IItem item, MultiTouchCursorEvent event)
IItemListener
itemCursorChanged
in interface IItemListener
item
- the itemevent
- the eventpublic void itemCursorClicked(IItem item, MultiTouchCursorEvent event)
IItemListener
itemCursorClicked
in interface IItemListener
item
- the itemevent
- the eventpublic void itemCursorPressed(IItem item, MultiTouchCursorEvent event)
IItemListener
itemCursorPressed
in interface IItemListener
item
- the itemevent
- the eventpublic void itemCursorReleased(IItem item, MultiTouchCursorEvent event)
IItemListener
itemCursorReleased
in interface IItemListener
item
- the itemevent
- the eventpublic void itemMoved(IItem item)
IItemListener
itemMoved
in interface IItemListener
item
- the itempublic void itemRotated(IItem item)
IItemListener
itemRotated
in interface IItemListener
item
- the itempublic void itemScaled(IItem item)
IItemListener
itemScaled
in interface IItemListener
item
- the itempublic void itemVisibilityChanged(IItem item, boolean isVisible)
IItemListener
itemVisibilityChanged
in interface IItemListener
item
- the itemisVisible
- the is visiblepublic void itemZOrderChanged(IItem item)
IItemListener
itemZOrderChanged
in interface IItemListener
item
- the itempublic void registerAllCurrentlyOnScreenItemsForConnecting()
public void registerItemForConnecting(IItem item)
item
- public void setActive(boolean active, double forTarget)
active
- the activeforTarget
- the for targetpublic void setExpressionSessionAndDisplay(ExpressionSession session, ExpressionDisplay expressionDisplay, IContainer graphingLinesContainer)
session
- the sessionexpressionDisplay
- the expression displaygraphingLinesContainer
- the graphing lines containerpublic void setLineColour(com.jme3.math.ColorRGBA lineColour)
lineColour
- the new line colourpublic void targetChanged(java.lang.Double newValue)
IExpressionSessionChangeListener
targetChanged
in interface IExpressionSessionChangeListener
newValue
- the new valuepublic void unregisterAllItems()
public void unregisterItemForConnecting(IItem item)
item
-