plantuml/src/net/sourceforge/plantuml/style/PName.java

72 lines
1.9 KiB
Java
Raw Normal View History

2019-07-14 20:09:26 +00:00
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
2022-03-07 19:33:46 +00:00
* (C) Copyright 2009-2023, Arnaud Roques
2019-07-14 20:09:26 +00:00
*
* Project Info: http://plantuml.com
*
* 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
*
* 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.style;
public enum PName {
Shadowing, //
FontName, //
FontColor, //
FontSize, //
FontStyle, //
BackGroundColor, //
RoundCorner, //
LineThickness, //
DiagonalCorner, //
HyperLinkColor, //
2022-10-05 20:32:57 +00:00
HyperlinkUnderlineStyle, //
HyperlinkUnderlineThickness, //
2022-06-22 07:30:15 +00:00
HeadColor, //
2019-07-14 20:09:26 +00:00
LineColor, //
2019-08-26 17:07:21 +00:00
LineStyle, //
2019-07-14 20:09:26 +00:00
Padding, //
Margin, //
2019-08-26 17:07:21 +00:00
MaximumWidth, //
MinimumWidth, //
2019-07-14 20:09:26 +00:00
ExportedName, //
Image, //
HorizontalAlignment, //
2020-03-03 22:29:34 +00:00
ShowStereotype, //
2019-07-14 20:09:26 +00:00
ImagePosition;
2022-01-28 21:45:34 +00:00
public static PName getFromName(String name, StyleScheme scheme) {
2022-02-10 18:16:18 +00:00
for (PName prop : values())
if (prop.name().equalsIgnoreCase(name))
2019-07-14 20:09:26 +00:00
return prop;
2022-02-10 18:16:18 +00:00
return null;
2022-01-28 21:45:34 +00:00
}
2019-07-14 20:09:26 +00:00
}