package com.horstmann.violet.product.diagram.classes.edge; import com.horstmann.violet.product.diagram.classes.ClassDiagramConstant; import com.horstmann.violet.product.diagram.property.ArrowheadChoiceList; import com.horstmann.violet.product.diagram.property.LineStyleChoiceList; import com.horstmann.violet.product.diagram.common.edge.LabeledLineEdge; /** * TODO javadoc * This ... * * @author Adrian Bobrowski <adrian071993@gmail.com> * @date 23.02.2016 */ public class DependencyEdge extends LabeledLineEdge { public DependencyEdge() { super(); setStartArrowhead(ArrowheadChoiceList.NONE); setEndArrowhead(ArrowheadChoiceList.V); setLineStyle(LineStyleChoiceList.DOTTED); } protected DependencyEdge(DependencyEdge cloned) { super(cloned); } @Override protected void beforeReconstruction() { super.beforeReconstruction(); setStartArrowhead(ArrowheadChoiceList.NONE); setEndArrowhead(ArrowheadChoiceList.V); setLineStyle(LineStyleChoiceList.DOTTED); } @Override protected DependencyEdge copy() throws CloneNotSupportedException { return new DependencyEdge(this); } @Override public String getToolTip() { return ClassDiagramConstant.CLASS_DIAGRAM_RESOURCE.getString("tooltip.dependency_edge"); } }