public class DataEvent extends EventObject
source
Constructor and Description |
---|
DataEvent() |
DataEvent(String name,
int[] shape)
Creates an event to notify that this data has changed.
|
Modifier and Type | Method and Description |
---|---|
static DataEvent |
decode(String json)
Decodes from String for instance {"name" : "Tests", "shape" : [1024, 1024], "filepath" : "C:/tmp/Fred.txt"}
|
String |
encode()
Encodes event to string
|
boolean |
equals(Object obj) |
String |
getFilePath() |
String |
getName() |
int[] |
getShape() |
String |
getSource() |
int |
hashCode() |
void |
setFilePath(String filePath) |
void |
setName(String name) |
void |
setShape(int[] shape) |
toString
public DataEvent()
public String getSource()
getSource
in class EventObject
public int[] getShape()
public void setShape(int[] shape)
public String getFilePath()
public void setFilePath(String filePath)
public static DataEvent decode(String json)
Copyright © 2014–2019 Eclipse Foundation. All rights reserved.