Package | Description |
---|---|
org.graphstream.ui.graphicGraph | |
org.graphstream.ui.view | |
org.graphstream.ui.view.camera |
Modifier and Type | Class and Description |
---|---|
class |
GraphicEdge
Graphical edge.
|
class |
GraphicNode
Graphical node.
|
class |
GraphicSprite
A small gentle sprite.
|
Modifier and Type | Method and Description |
---|---|
GraphicElement |
GraphicSprite.getAttachment()
Return the graphic object this sprite is attached to or null if not attached.
|
Modifier and Type | Method and Description |
---|---|
void |
GraphicElementChangeListener.graphicElementChanged(GraphicElement element) |
Modifier and Type | Method and Description |
---|---|
GraphicElement |
View.findGraphicElementAt(java.util.EnumSet<InteractiveElement> types,
double x,
double y)
Search for the first GraphicElement among the specified types (precedence:
node, edge, sprite) that contains the point at coordinates (x, y).
|
GraphicElement |
GraphRenderer.findGraphicElementAt(java.util.EnumSet<InteractiveElement> types,
double x,
double y)
Search for the first GraphicElement among the specified types (precedence:
node, edge, sprite) that contains the point at coordinates (x, y).
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<GraphicElement> |
View.allGraphicElementsIn(java.util.EnumSet<InteractiveElement> types,
double x1,
double y1,
double x2,
double y2)
Search for all the graphic elements contained inside the rectangle
(x1,y1)-(x2,y2).
|
java.util.Collection<GraphicElement> |
GraphRenderer.allGraphicElementsIn(java.util.EnumSet<InteractiveElement> types,
double x1,
double y1,
double x2,
double y2)
Search for all the graphic elements of the specified types contained inside
the rectangle (x1,y1)-(x2,y2).
|
Modifier and Type | Method and Description |
---|---|
void |
View.freezeElement(GraphicElement element,
boolean frozen)
Freeze an element so that the optional layout cannot move it.
|
void |
View.moveElementAtPx(GraphicElement element,
double x,
double y)
Force an element to move at the given location in pixels.
|
void |
GraphRenderer.moveElementAtPx(GraphicElement element,
double x,
double y)
Force an element to move at the given location in pixels.
|
Modifier and Type | Method and Description |
---|---|
GraphicElement |
Camera.findGraphicElementAt(GraphicGraph graph,
java.util.EnumSet<InteractiveElement> types,
double x,
double y) |
GraphicElement |
DefaultCamera2D.findGraphicElementAt(GraphicGraph graph,
java.util.EnumSet<InteractiveElement> types,
double x,
double y)
Search for the first GraphicElement among those specified.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<GraphicElement> |
Camera.allGraphicElementsIn(GraphicGraph graph,
java.util.EnumSet<InteractiveElement> types,
double x1,
double y1,
double x2,
double y2) |
java.util.Collection<GraphicElement> |
DefaultCamera2D.allGraphicElementsIn(GraphicGraph graph,
java.util.EnumSet<InteractiveElement> types,
double x1,
double y1,
double x2,
double y2) |
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultCamera2D.edgeContains(GraphicElement elt,
double x,
double y) |
Point3 |
DefaultCamera2D.getNodeOrSpritePositionGU(GraphicElement elt,
Point3 pos) |
Values |
DefaultCamera2D.getNodeOrSpriteSize(GraphicElement elt) |
boolean |
DefaultCamera2D.isTextVisible(GraphicElement element) |
boolean |
Camera.isVisible(GraphicElement element)
True if the element would be visible on screen.
|
boolean |
DefaultCamera2D.isVisible(GraphicElement element)
True if the element should be visible on screen.
|
boolean |
DefaultCamera2D.nodeContains(GraphicElement elt,
double x,
double y) |
boolean |
DefaultCamera2D.spriteContains(GraphicElement elt,
double x,
double y) |