org.chaostocosmos.chaosgraph.GraphPressEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chaosgraph Show documentation
Show all versions of chaosgraph Show documentation
This library contributes to making charts on AWT/Swing/SWT components. It can be used for AWT/Swing applications and Eclipse SWT (Standard Widget Toolkit) applications. If you would try to build a service of RAP dashboard web application, this library will provide great UX experience and excellent interactive functionality to the service for users.
The newest version!
package org.chaostocosmos.chaosgraph;
import java.util.EventObject;
/**
*
* GraphPressEvent
*
* This event is occurred when mouse is pressed on graph element.
* @author Kooin-Shin
* 2020. 8. 26.
*/
public class GraphPressEvent extends EventObject {
/**
* Graph element
*/
GraphElement ge;
/**
* Constructor
*
* @param source
* @param ge
*/
public GraphPressEvent(Object source, GraphElement ge) {
super(source);
this.ge = ge;
}
/**
* Get graph element
* @return
*/
public GraphElement getGraphElement() {
return ge;
}
/**
* Set graph element
* @param ge
*/
public void setGraphElement(GraphElement ge) {
this.ge = ge;
}
@Override
public String toString() {
return "GraphPressEvent [ge=" + ge + "]";
}
}