public class DrawInteraction extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
DrawInteraction.Event |
static class |
DrawInteraction.EventType |
static interface |
DrawInteraction.Listener |
| Constructor and Description |
|---|
DrawInteraction(Scene scene,
DrawInteractionOptions options)
Constructor of draw interaction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDrawListener(DrawInteraction.Listener listener,
DrawInteraction.EventType eventType) |
void |
destroy()
Destroy draw interaction and handlers
|
PrimitiveCollection |
getCollection()
Get current primitive collection
|
PrimitiveType |
getType()
Get type of primitive which current draw
|
boolean |
isActive() |
void |
removeDrawListener(DrawInteraction.Listener listener,
DrawInteraction.EventType eventType) |
void |
setActive(boolean active) |
public DrawInteraction(Scene scene, DrawInteractionOptions options)
scene - current scene on which will be drawing primitives.options - DrawInteractionOptions object.public boolean isActive()
public void setActive(boolean active)
public PrimitiveCollection getCollection()
public PrimitiveType getType()
public void destroy()
public void addDrawListener(DrawInteraction.Listener listener, DrawInteraction.EventType eventType)
public void removeDrawListener(DrawInteraction.Listener listener, DrawInteraction.EventType eventType)
Copyright © 2019. All rights reserved.