Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to set Edge Name (Label) and Tooltip Text (Title). #4

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
public final class Edge {
private String from;
private String to;
private String title;
private String label;
private Style style = Style.line;
private String color = "";
private int length;
Expand Down Expand Up @@ -137,6 +139,42 @@ public void setLength(final int length) {
this.length = length;
}

/**
* Returns the title of the edge. (Tooltip Text seen on mouseover)
*
* @return title
*/
public String getTitle() {
return title;
}

/**
* Set the title of the edge. (Tooltip Text seen on mouseover)
*
* @param title
*/
public void setTitle(final String title) {
this.title = title;
}

/**
* Returns the label of the edge.
*
* @return label
*/
public String getLabel() {
return label;
}

/**
* Set the label of the edge.
*
* @param label
*/
public void setLabel(final String label) {
this.label = label;
}

public static enum Style {
line("line"), arrow("arrow"), arrowCenter("arrow-center"), dashLine("dash-line");

Expand Down