Newer
Older
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="431px" preserveAspectRatio="none" style="width:339px;height:431px;" version="1.1" viewBox="0 0 339 431" width="339px" zoomAndPan="magnify"><defs><filter height="300%" id="fo6x3wtnyfwlg" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><!--cluster java.lang--><polygon fill="#FFFFFF" filter="url(#fo6x3wtnyfwlg)" points="14,16,83,16,90,38.4883,188,38.4883,188,112,14,112,14,16" style="stroke: #000000; stroke-width: 1.5;"/><line style="stroke: #000000; stroke-width: 1.5;" x1="14" x2="90" y1="38.4883" y2="38.4883"/><text fill="#000000" font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="63" x="18" y="31.5352">java.lang</text><!--cluster ohm.softa.a05.model--><polygon fill="#FFFFFF" filter="url(#fo6x3wtnyfwlg)" points="21,137,176,137,183,159.4883,317,159.4883,317,419,21,419,21,137" style="stroke: #000000; stroke-width: 1.5;"/><line style="stroke: #000000; stroke-width: 1.5;" x1="21" x2="183" y1="159.4883" y2="159.4883"/><text fill="#000000" font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="149" x="25" y="152.5352">ohm.softa.a05.model</text><!--class Comparable--><rect fill="#FEFECE" filter="url(#fo6x3wtnyfwlg)" height="60.9551" id="Comparable" style="stroke: #A80036; stroke-width: 1.5;" width="157" x="22.5" y="43"/><ellipse cx="56.4" cy="59" fill="#B4A7E5" rx="11" ry="11" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M52.8277,55.2651 L52.8277,53.1069 L60.2071,53.1069 L60.2071,55.2651 L57.7418,55.2651 L57.7418,63.3418 L60.2071,63.3418 L60.2071,65.5 L52.8277,65.5 L52.8277,63.3418 L55.2931,63.3418 L55.2931,55.2651 Z "/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacingAndGlyphs" textLength="71" x="74.6" y="63.5352">Comparable</text><rect fill="#FFFFFF" height="16.1328" style="stroke: #000000; stroke-width: 1.0; stroke-dasharray: 2.0,2.0;" width="10" x="172.5" y="40"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacingAndGlyphs" textLength="8" x="173.5" y="52.6016">T</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="23.5" x2="178.5" y1="75" y2="75"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="23.5" x2="178.5" y1="83" y2="83"/><ellipse cx="33.5" cy="94.9775" fill="#84BE84" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="131" x="42.5" y="97.6348">compareTo(other: T): int</text><!--class PlantColor--><rect fill="#FEFECE" filter="url(#fo6x3wtnyfwlg)" height="112.7754" id="PlantColor" style="stroke: #A80036; stroke-width: 1.5;" width="101" x="207.5" y="177"/><ellipse cx="222.5" cy="193" fill="#EB937F" rx="11" ry="11" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M226.1143,199.5 L218.3945,199.5 L218.3945,187.1069 L226.1143,187.1069 L226.1143,189.2651 L220.8433,189.2651 L220.8433,191.938 L225.6162,191.938 L225.6162,194.0962 L220.8433,194.0962 L220.8433,197.3418 L226.1143,197.3418 Z "/><ellipse cx="241.5" cy="192.5" fill="#84BE84" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="58" x="247.5" y="197.5352">PlantColor</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="208.5" x2="307.5" y1="209" y2="209"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="38" x="213.5" y="223.6348">GREEN,</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="46" x="213.5" y="236.5898">YELLOW,</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="24" x="213.5" y="249.5449">RED,</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="29" x="213.5" y="262.5">BLUE,</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="46" x="213.5" y="275.4551">ORANGE</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="208.5" x2="307.5" y1="281.7754" y2="281.7754"/><!--class Plant--><rect fill="#FEFECE" filter="url(#fo6x3wtnyfwlg)" height="138.6855" id="Plant" style="stroke: #A80036; stroke-width: 1.5;" width="143" x="29.5" y="164"/><ellipse cx="77.25" cy="180" fill="#A9DCDF" rx="11" ry="11" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M77.3633,175.5981 L76.2095,180.6699 L78.5254,180.6699 Z M75.8691,173.3569 L78.8657,173.3569 L82.2109,185.75 L79.7622,185.75 L78.9985,182.687 L75.7197,182.687 L74.9727,185.75 L72.5239,185.75 Z "/><ellipse cx="102.75" cy="179.5" fill="#84BE84" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacingAndGlyphs" textLength="28" x="108.75" y="184.5352">Plant</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="30.5" x2="171.5" y1="196" y2="196"/><rect fill="none" height="6" style="stroke: #C82930; stroke-width: 1.0;" width="6" x="37.5" y="204.9775"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="77" x="49.5" y="210.6348">height: double</text><rect fill="none" height="6" style="stroke: #C82930; stroke-width: 1.0;" width="6" x="37.5" y="217.9326"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="70" x="49.5" y="223.5898">family: String</text><rect fill="none" height="6" style="stroke: #C82930; stroke-width: 1.0;" width="6" x="37.5" y="230.8877"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="67" x="49.5" y="236.5449">name: String</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="30.5" x2="171.5" y1="242.8652" y2="242.8652"/><ellipse cx="40.5" cy="254.8428" fill="#84BE84" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="103" x="49.5" y="257.5">getHeight(): double</text><ellipse cx="40.5" cy="267.7979" fill="#84BE84" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="97" x="49.5" y="270.4551">getFamily(): String</text><ellipse cx="40.5" cy="280.7529" fill="#84BE84" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="93" x="49.5" y="283.4102">getName(): String</text><ellipse cx="40.5" cy="293.708" fill="#84BE84" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" font-style="italic" lengthAdjust="spacingAndGlyphs" textLength="117" x="49.5" y="296.3652">getColor(): PlantColor</text><!--class Flower--><rect fill="#FEFECE" filter="url(#fo6x3wtnyfwlg)" height="48" id="Flower" style="stroke: #A80036; stroke-width: 1.5;" width="80" x="45" y="363"/><ellipse cx="60" cy="379" fill="#ADD1B2" rx="11" ry="11" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M62.4731,385.1431 Q61.8921,385.4419 61.2529,385.5913 Q60.6138,385.7407 59.9082,385.7407 Q57.4014,385.7407 56.0815,384.0889 Q54.7617,382.437 54.7617,379.3159 Q54.7617,376.1865 56.0815,374.5347 Q57.4014,372.8828 59.9082,372.8828 Q60.6138,372.8828 61.2612,373.0322 Q61.9087,373.1816 62.4731,373.4805 L62.4731,376.2031 Q61.8423,375.6221 61.2488,375.3523 Q60.6553,375.0825 60.0244,375.0825 Q58.6797,375.0825 57.9949,376.1492 Q57.3101,377.2158 57.3101,379.3159 Q57.3101,381.4077 57.9949,382.4744 Q58.6797,383.541 60.0244,383.541 Q60.6553,383.541 61.2488,383.2712 Q61.8423,383.0015 62.4731,382.4204 Z "/><ellipse cx="79" cy="378.5" fill="#84BE84" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="37" x="85" y="383.5352">Flower</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="46" x2="124" y1="395" y2="395"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="46" x2="124" y1="403" y2="403"/><!--class Shrub--><rect fill="#FEFECE" filter="url(#fo6x3wtnyfwlg)" height="48" id="Shrub" style="stroke: #A80036; stroke-width: 1.5;" width="76" x="160" y="363"/><ellipse cx="175" cy="379" fill="#ADD1B2" rx="11" ry="11" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M177.4731,385.1431 Q176.8921,385.4419 176.2529,385.5913 Q175.6138,385.7407 174.9082,385.7407 Q172.4014,385.7407 171.0815,384.0889 Q169.7617,382.437 169.7617,379.3159 Q169.7617,376.1865 171.0815,374.5347 Q172.4014,372.8828 174.9082,372.8828 Q175.6138,372.8828 176.2612,373.0322 Q176.9087,373.1816 177.4731,373.4805 L177.4731,376.2031 Q176.8423,375.6221 176.2488,375.3523 Q175.6553,375.0825 175.0244,375.0825 Q173.6797,375.0825 172.9949,376.1492 Q172.3101,377.2158 172.3101,379.3159 Q172.3101,381.4077 172.9949,382.4744 Q173.6797,383.541 175.0244,383.541 Q175.6553,383.541 176.2488,383.2712 Q176.8423,383.0015 177.4731,382.4204 Z "/><ellipse cx="194" cy="378.5" fill="#84BE84" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="33" x="200" y="383.5352">Shrub</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="161" x2="235" y1="395" y2="395"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="161" x2="235" y1="403" y2="403"/><!--link Comparable to Plant--><path d="M101,124.7201 C101,137.2139 101,150.7882 101,163.9761 " fill="none" id="Comparable-Plant" style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 7.0,7.0;"/><polygon fill="none" points="94.0001,124.3496,101,104.3496,108.0001,124.3496,94.0001,124.3496" style="stroke: #A80036; stroke-width: 1.0;"/><!--link Plant to Flower--><path d="M91.6546,323.1577 C90.1333,337.7526 88.6788,351.7064 87.5198,362.8256 " fill="none" id="Plant-Flower" style="stroke: #A80036; stroke-width: 1.0;"/><polygon fill="none" points="84.7132,322.2305,93.749,303.0641,98.6378,323.682,84.7132,322.2305" style="stroke: #A80036; stroke-width: 1.0;"/><!--link Plant to Shrub--><path d="M155.7649,320.1641 C165.6688,335.8367 175.2182,350.9483 182.7237,362.8256 " fill="none" id="Plant-Shrub" style="stroke: #A80036; stroke-width: 1.0;"/><polygon fill="none" points="149.7256,323.7106,144.959,303.0641,161.5606,316.2318,149.7256,323.7106" style="stroke: #A80036; stroke-width: 1.0;"/><!--
@startuml
package java.lang {
interface Comparable<T> {
+compareTo(other: T): int
}
}
package ohm.softa.a05.model {
+enum PlantColor {
GREEN,
YELLOW,
RED,
BLUE,
ORANGE
}
+abstract class Plant implements Comparable {
-height: double
-family: String
-name: String
+getHeight(): double
+getFamily(): String
+getName(): String
+{abstract} getColor(): PlantColor
}
+class Flower extends Plant {
}
+class Shrub extends Plant{
}
}
@enduml
PlantUML version 1.2019.03(Sun Mar 10 12:04:44 CET 2019)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Java Version: 11.0.2+9
Operating System: Mac OS X
OS Version: 10.14.4