您好,欢迎访问三七文档
astah*BasicOperationGuideastah*professionalastah*UMLastah*communityOctober19,2009ChangeVision,Inc.Preface•astah*isalight-weightUMLeditorintegratedwithERD,DFD,CRUDandMindMappingfeaturesforsoftwaredevelopers.•Thisguideintroducesyouthebasicoperationsinastah*.•Contents–ScreenLayout3–ModelandViewElements5–HowtocreateaDiagram/Model8–Diagrams10–ViewOperations22–EditDiagrams/Models25–astah*informationandContact472ScreenLayout(1)3DiagramEditorPropertyViewProjectViewManagementViewScreenLayout(2)•ManagementView•Tooperateastah*withthemainmenuandthetoolbar.•ProjectView•StructureTree:Todisplaythestructureofmodels.•InheritanceTree:Todisplaytheinheritancestructureofclasses.•MapView:TodisplayanentireDiagramEditor.•DiagramView:Todisplayalistofdiagramsintheproject.•PropertyView•Toeditpropertiesofmodels.•DiagramEditor•Toeditdiagrams4ModelandViewElements(1)5Amodelisrepresentedinmultipleviewelements.Position,Size,ColorModelandViewElements(2)•Conceptofmodelandviewelements–ElementsofaprojectsuchasClassorUseCasearecalled“model”–Elementsondiagramsarecalled“viewelements”–Amodelcanberepresentedinmorethanonediagramasviewelements–Colorandsizecanbesetdifferentlytoeachviewelement6ModelandViewElements(3)•“DeletefromDiagram”and“DeletefromModel”–“DeletefromDiagram”removesselectedviewelementsfromthediagramaskeepingthemodelsintheproject.–“DeletefromModel”deletesselectedmodelsandtheviewelementsfromtheprojectcompletely.•CopyandPaste–IntheClassDiagramandUseCaseDiagram,viewelementsarecreatedbycopyandpaste,butthemodelsaresharedwiththeoriginalelements.–Inotherdiagrams,viewelementsandmodelsarecreated(cloned)bycopyandpaste.7Howtocreateadiagram/model(1)•Creatinganewproject–Goto[File]–[New]inthemainmenu,orselect[CreateNewProject]buttononthetoolbar.•Creatinganewprojectwithatemplate–Goto[File]–[NewbyTemplate],andselectatemplatefile.8Howtocreateadiagram/model(2)•CreatingDiagrams–AlldiagramscanbecreatedunderPackages.–Thetypeofthecreatingdiagramsarespecifieddependingontheparentmodel(e.g.Class,UseCase,Operation)1.Goto[Diagram]inthemainmenu2.Goto[CreateDiagram]popupmenuinthestructuretree•SwitchingDiagrams–SelectatabintheDiagramEditors–Selectadiagraminthestructuretree–SelectadiagramintheDiagramView9CreatingaDiagram10Createadiagramfrom[Diagram]inthemainmenuCreateadiagramfrom[CreateDiagram]inthestructuretreeDiagramsDiagramastah*communityastah*UMLastah*professionalUML2.1(ClassDiagram,UseCaseDiagram,StatemachineDiagram,ActivityDiagram,SequenceDiagram,CommunicationDiagram,ComponentDiagram,DeploymentDiagram,CompositeStructureDiagram)YesYesYesFlowchart**YesDataFlowDiagram(DFD)**YesERDiagram**YesCRUD**YesMindMap*YesYesRequirementTable**Yes11Yes:Create,Reference*:ReferenceOnly1.ClassDiagram122.UseCaseDiagram133.StatemachineDiagram144.ActivityDiagram155.SequenceDiagram166.CommunicationDiagram177.ComponentDiagram188.DeploymentDiagram199.CompositeStructureDiagram2010.OtherDiagrams•astah*UML–MindMap•astah*professional–Flowchart–DataFlowDiagram(DFD)–ERDiagram–CRUD–MindMap–RequirementTable21ViewOperation22FitinWindowDisplaythewholediagramZoomoutPressbuttontozoomoutZoominPressbuttontozoominZoomtoDefault(100%)Scroll・Right-MouseDragtoscrollwholediagram・Mousewheeltoscrollup/down・Shift+MousewheeltoscrollinsidewaysZoom・Ctrl+Right-MouseDrag・Ctrl+MouseWheelMapView•TheMapViewdisplaystheentirecontentsofanactivediagramthatiscurrentlyopenedintheDiagramEditor.23Right-MouseDragonMapViewSpecifythesizeofthedisplayareaintheDiagramEditorLeft-MouseDragonMapViewMovethelocationofthedisplayareaintheDiagramEditorPropertyView•ThePropertyViewdisplaysthedetailedinformationoftheselectedmodel.•ItemsinthePropertyViewarevarieddependingonmodels.24CreateModelsinDiagramEditor•CreatingmodelsonDiagramEditor•Creatingmodelscontinuously–ClickonthediagrameditorwithShiftkey.–Setthemodelockon.25(1)Selectabutton(2)ClickonthediagramModeLockCreatemodelsinatree•Howtocreatemodelsfromstructuretree–Right-clickonamodelinthestructuretreeandselectapopupmenu.26Selectamenufrom[CreateModel]popupmenuinthestructuretreeDrag&DropamodeltothediagramCopy&Paste•Copy&Paste:ViewElements–Select[Copy]/[Paste]inthepopupmenuoftheviewelementonthediagram–Copy:Ctrl+C–Paste:Ctrl+V•Copy&Paste:Style–Select[CopyStyle]/[PasteStyle]inthepopupmenuoftheviewelementonthediagram–Style:backgroundcolor,linestyle,fontcolor,etc.27Select/Unselectviewelements•Selectmorethanoneelement–SelectviewelementsbyusingtheLeft-Mousedrag–SelectviewelementswithShift/Ctrl+Left-Click–SelectAll:Ctrl+A•Unselectelements–Left-clickontheselectedviewelementwithShift/Ctrlkey28Direct-EditViewElements•PressF2ordouble-clickontheselectedtext•Direct-EditAttributes/Operations–ChangetheorderofAttributes/Operations,ormovethemtootherClassesbydrag&drop29MoveViewElements•MoveviewelementsbyLeft-dragorarrowkeys30Left-mousedragwithShiftkeytomovevertically/horizontallyLeft-mousedragwithCtrlkeytomovebygridEditViewInformation•Viewinformationistheinformationofviewelements.–VisibilityofAttribute/Operation,resize,color,etc.•Visibilityon/off–Switchthevisibilityon/offfromthepopupmenu.–Setthedefaultvisibil
本文标题:astah--指南
链接地址:https://www.777doc.com/doc-4296635 .html