⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arrowheads.xsl

📁 Copyright&copy 2004 Sergiu Dumitriu, Marta G&icirc rdea, C&#259 t&#259 lin Hri&#355 cu Permission is
💻 XSL
字号:
<?xml version="1.0" encoding="UTF-8"?><!--Template: Arrowheads.xslTemplates used for building Arrowhead markers--><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/2000/svg" xmlns:UML="org.omg.xmi.namespace.UML">	<xsl:output media-type="image/svg+xml" method="xml" indent="yes"/>	<!-- Generalization -->	<!-- White triangle -->	<xsl:template name="GeneralizationArrowhead">		<xsl:param name="DiagramID" />		<marker id="GeneralizationArrowhead{$DiagramID}" viewBox="-1 -1 13 12" refX="10.5" refY="5" markerWidth="12" markerHeight="12" orient="auto" fill="white">			<path d="M 0 0 L 10 5 0 10 z"/>		</marker>	</xsl:template>	<!-- Synchronous -->	<!-- Filled triangle -->	<xsl:template name="SynchronousArrowhead">		<xsl:param name="DiagramID" />		<marker id="SynchronousArrowhead{$DiagramID}" viewBox="-1 -1 13 12" refX="10.5" refY="5" markerWidth="12" markerHeight="12" orient="auto" fill="black">			<path d="M 0 0 L 10 5 0 10 z"/>		</marker>	</xsl:template>	<!-- Asynchronous -->	<!-- Simple arrowhead -->	<xsl:template name="AsynchronousArrowhead">		<xsl:param name="DiagramID" />		<marker id="AsynchronousArrowhead{$DiagramID}" viewBox="-1 -1 13 12" refX="10.5" refY="5" markerWidth="12" markerHeight="12" orient="auto" fill="none">			<path d="M 0 0 L 10 5 0 10"/>		</marker>	</xsl:template>	<!-- Link -->	<!-- Simple arrowhead -->	<xsl:template name="LinkArrowhead">		<xsl:param name="DiagramID" />		<marker id="LinkArrowhead{$DiagramID}" viewBox="-1 -1 13 12" refX="0.5" refY="5" markerWidth="12" markerHeight="12" orient="auto" fill="none">			<path d="M 10 0 L 0 5 10 10"/>		</marker>	</xsl:template>	<!-- Dependency -->	<!-- Simple arrowhead -->	<xsl:template name="DependencyArrowhead">		<xsl:param name="DiagramID" />		<marker id="DependencyArrowhead{$DiagramID}" viewBox="-1 -1 13 12" refX="10.5" refY="5" markerWidth="12" markerHeight="12" orient="auto" fill="none">			<path d="M 0 0 L 10 5 0 10"/>		</marker>	</xsl:template>	<!-- Directed Association -->	<!-- Simple arrowhead -->	<xsl:template name="DirectedArrowheadEnd">		<xsl:param name="DiagramID" />		<marker id="DirectedArrowheadEnd{$DiagramID}" viewBox="-1 -1 13 12" refX="10.5" refY="5" markerWidth="12" markerHeight="12" orient="auto" fill="none">			<path d="M 0 0 L 10 5 0 10"/>		</marker>	</xsl:template>	<xsl:template name="DirectedArrowheadStart">		<xsl:param name="DiagramID" />		<marker id="DirectedArrowheadStart{$DiagramID}" viewBox="-10 -1 13 12" refX="-10.5" refY="5" markerWidth="12" markerHeight="12" orient="auto" fill="none">			<path d="M 0 0 L -10 5 L 0 10"/>		</marker>	</xsl:template>	<!-- Aggregation -->	<!-- A white diamond -->	<xsl:template name="AggregationArrowheadEnd">		<xsl:param name="DiagramID" />		<marker id="AggregationArrowheadEnd{$DiagramID}" viewBox="-1 -1 23 12" refX="20.5" refY="5" markerWidth="22" markerHeight="12" orient="auto" fill="white">			<path d="M 0 5 L 10 10 20 5 10 0 z"/>		</marker>	</xsl:template>	<xsl:template name="AggregationArrowheadStart">		<xsl:param name="DiagramID" />		<marker id="AggregationArrowheadStart{$DiagramID}" viewBox="-21 -1 23 12" refX="-20.5" refY="5" markerWidth="22" markerHeight="12" orient="auto" fill="white">			<path d="M0 5 L -10 10 -20 5 -10 0 z"/>		</marker>	</xsl:template>	<!-- Aggregation + Directional -->	<!-- A white diamond preceded by a simple arrowhead -->	<xsl:template name="DirectedAggregationArrowheadEnd">		<xsl:param name="DiagramID" />		<marker id="DirectedAggregationArrowheadEnd{$DiagramID}" viewBox="-1 -1 32 11" refX="30.5" refY="5" markerWidth="32" markerHeight="12" orient="auto" fill="white">			<path fill="none" d="M 0 0 L 10 5 0 10"/>			<path d="M 10 5 L20 10 30 5 20 0 z"/>		</marker>	</xsl:template>	<xsl:template name="DirectedAggregationArrowheadStart">		<xsl:param name="DiagramID" />		<marker id="DirectedAggregationArrowheadStart{$DiagramID}" viewBox="-31 -1 32 11" refX="-30.5" refY="5" markerWidth="32" markerHeight="12" orient="auto" fill="white">			<path fill="none" d="M 0 0 L -10 5 0 10"/>			<path d="M -10 5 L-20 10 -30 5 -20 0 z"/>		</marker>	</xsl:template>	<!-- Composition -->	<!-- A filled diamond -->	<xsl:template name="CompositionArrowheadEnd">		<xsl:param name="DiagramID" />		<marker id="CompositionArrowheadEnd{$DiagramID}" viewBox="-1 -1 23 11" refX="20.5" refY="5" markerWidth="22" markerHeight="12" orient="auto" fill="black">			<path d="M 0 5 L 10 10 20 5 10 0 z"/>		</marker>	</xsl:template>	<xsl:template name="CompositionArrowheadStart">		<xsl:param name="DiagramID" />		<marker id="CompositionArrowheadStart{$DiagramID}" viewBox="-21 -1 23 11" refX="-20.5" refY="5" markerWidth="22" markerHeight="12" orient="auto" fill="black">			<path fill="black" d="M 0 5 L -10 10 -20 5 -10 0 z"/>		</marker>	</xsl:template>	<!-- Composition + Directional -->	<!-- A filled diamond preceded by a simple arrowhead -->	<xsl:template name="DirectedCompositionArrowheadEnd">		<xsl:param name="DiagramID" />		<marker id="DirectedCompositionArrowheadEnd{$DiagramID}" viewBox="-1 -1 32 11" refX="30.5" refY="5" markerWidth="32" markerHeight="12" orient="auto" fill="black">			<path fill="none" d="M 0 0 L 10 5 0 10"/>			<path fill="black" d="M 10 5 L20 10 30 5 20 0 z"/>		</marker>	</xsl:template>	<xsl:template name="DirectedCompositionArrowheadStart">		<xsl:param name="DiagramID" />		<marker id="DirectedCompositionArrowheadStart{$DiagramID}" viewBox="-31 -1 32 12" refX="-30.5" refY="5" markerWidth="12" markerHeight="12" orient="auto" fill="black">			<path fill="none" d="M 0 0 L -10 5 0 10"/>			<path fill="black" d="M -10 5 L-20 10 -30 5 -20 0 z"/>		</marker>	</xsl:template></xsl:stylesheet>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -