1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-05-30 23:20:48 +00:00
plantuml/src/net/sourceforge/plantuml/project/core/AbstractTask.java

85 lines
2.1 KiB
Java
Raw Normal View History

2017-02-01 18:55:51 +00:00
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
2023-02-22 18:43:48 +00:00
* (C) Copyright 2009-2024, Arnaud Roques
2017-02-01 18:55:51 +00:00
*
2023-02-22 18:43:48 +00:00
* Project Info: https://plantuml.com
2017-02-01 18:55:51 +00:00
*
2017-03-15 19:13:31 +00:00
* If you like this project or if you find it useful, you can support us at:
*
2023-02-22 18:43:48 +00:00
* https://plantuml.com/patreon (only 1$ per month!)
* https://plantuml.com/paypal
2017-03-15 19:13:31 +00:00
*
2017-02-01 18:55:51 +00:00
* This file is part of PlantUML.
*
* PlantUML is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PlantUML distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
* License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*
*
* Original Author: Arnaud Roques
*
*
*/
2020-02-18 21:24:31 +00:00
package net.sourceforge.plantuml.project.core;
2017-02-01 18:55:51 +00:00
2021-04-07 18:02:23 +00:00
import net.sourceforge.plantuml.style.StyleBuilder;
2020-03-18 10:50:02 +00:00
public abstract class AbstractTask implements Task {
2017-02-01 18:55:51 +00:00
2021-04-07 18:02:23 +00:00
private final TaskCode code;
private final StyleBuilder styleBuilder;
2020-08-25 17:24:17 +00:00
private Task row;
2023-11-27 17:41:15 +00:00
private String displayString;
2017-02-01 18:55:51 +00:00
2021-04-07 18:02:23 +00:00
protected AbstractTask(StyleBuilder styleBuilder, TaskCode code) {
this.styleBuilder = styleBuilder;
2020-03-18 10:50:02 +00:00
this.code = code;
2017-02-01 18:55:51 +00:00
}
2023-11-27 17:41:15 +00:00
@Override
2022-08-24 16:46:33 +00:00
final public void putInSameRowAs(Task row) {
if (this != row)
this.row = row;
2017-02-01 18:55:51 +00:00
}
2023-11-27 17:41:15 +00:00
@Override
2020-08-25 17:24:17 +00:00
public final Task getRow() {
return row;
2017-02-01 18:55:51 +00:00
}
2023-11-27 17:41:15 +00:00
@Override
2021-04-07 18:02:23 +00:00
public final TaskCode getCode() {
return code;
}
2023-11-27 17:41:15 +00:00
@Override
2021-04-07 18:02:23 +00:00
public final StyleBuilder getStyleBuilder() {
return styleBuilder;
}
2023-11-27 17:41:15 +00:00
@Override
public void setDisplay(String displayString) {
this.displayString = displayString;
}
@Override
public String getDisplayString() {
return this.displayString;
}
2017-02-01 18:55:51 +00:00
}