1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-06-02 08:30:49 +00:00
plantuml/src/net/sourceforge/plantuml/activitydiagram3/PositionedNote.java

91 lines
2.6 KiB
Java
Raw Normal View History

2016-07-04 19:06:50 +00:00
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
2022-03-07 19:33:46 +00:00
* (C) Copyright 2009-2023, Arnaud Roques
2016-07-04 19:06:50 +00:00
*
* Project Info: http://plantuml.com
*
2017-03-15 19:13:31 +00:00
* If you like this project or if you find it useful, you can support us at:
*
* http://plantuml.com/patreon (only 1$ per month!)
* http://plantuml.com/paypal
*
2016-07-04 19:06:50 +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
*
*
*/
package net.sourceforge.plantuml.activitydiagram3;
2017-05-10 19:51:15 +00:00
import net.sourceforge.plantuml.activitydiagram3.ftile.Swimlane;
2016-07-04 19:06:50 +00:00
import net.sourceforge.plantuml.cucadiagram.Display;
import net.sourceforge.plantuml.graphic.color.Colors;
import net.sourceforge.plantuml.sequencediagram.NotePosition;
import net.sourceforge.plantuml.sequencediagram.NoteType;
public class PositionedNote {
private final Display display;
private final NotePosition notePosition;
private final NoteType type;
private final Colors colors;
2017-05-10 19:51:15 +00:00
private final Swimlane swimlaneNote;
2016-07-04 19:06:50 +00:00
2022-03-19 12:48:23 +00:00
public PositionedNote(Display display, NotePosition position, NoteType type, Swimlane swimlaneNote, Colors colors) {
2016-07-04 19:06:50 +00:00
this.display = display;
this.notePosition = position;
this.type = type;
this.colors = colors;
2017-05-10 19:51:15 +00:00
this.swimlaneNote = swimlaneNote;
2016-07-04 19:06:50 +00:00
}
2023-02-02 17:59:43 +00:00
2022-03-19 12:48:23 +00:00
public PositionedNote(Display note, NotePosition position, NoteType type, Swimlane swimlaneNote) {
this(note, position, type, swimlaneNote, null);
}
2016-09-29 19:51:18 +00:00
@Override
public String toString() {
return "type=" + type + " notePosition=" + notePosition + " " + display;
}
2016-07-04 19:06:50 +00:00
public Display getDisplay() {
return display;
}
public NotePosition getNotePosition() {
return notePosition;
}
public NoteType getType() {
return type;
}
public Colors getColors() {
return colors;
}
2017-05-10 19:51:15 +00:00
public final Swimlane getSwimlaneNote() {
return swimlaneNote;
}
2016-07-04 19:06:50 +00:00
}