Index

A

AbsoluteBendpoint 81–82

Absolute coordinates 102

AbstractBorder 46

AbstractConnectionAnchor 72–73, 75

AbstractConnectionEditPart 194

AbstractGraphicalEditPart 189–191

AbstractLayoutAlgorithm 167, 169–170

Accessibility 217

Action 182, 248

ActionBarContributor 202

ActionFactory 248

Actions 180, 182

add() 11–12, 15, 28, 30, 33, 36, 43–44, 47, 51, 55–56, 66, 70–72, 76, 86–88, 93–94, 99, 120–122, 192

addAncestorListener() 28

addChild() 75–76, 79, 94, 122, 220, 226

addCoordinateListener() 28

addDirtyRegion() 18, 23

addDisposeListener() 32

addDragSourceListener() 252

addDropTargetListener() 253

addFigureListener() 28, 124

addFocusListener() 27

addGenealogyGraphListener() 219

addKeyListener() 27

addLayoutListener() 28

addMouseListener() 17, 27

addMouseMotionListener() 17, 27

addNote() 229–231

addNotify() 222–223

addOffspring() 114

addParent() 75–76, 79, 94, 122

addPerson() 227, 232

addPersonListener() 119, 222

addPoint() 14, 31, 34, 78–80

addPrimaryFigure() 125

addRetargetAction() 248

addSelectionChangedListener() 212

addSelectionListener() 106, 125, 127, 151, 159

addSmallPolygonArrowheads() 77

addSmallPolylineArrowhead() 77

addSourceConnection() 224

addTargetConnection() 224

AlignmentAction 182

AncestorListener 28

anchor point 23

Anchors

Common 70

Custom 72

appendSelection() 215

applyLayout() 157, 159

applyLayoutInternal() 167–168, 171

ARROW 211

ArrowButton 32

ARROWHEAD 79, 195, 198, 243

Arrow Keys 217

B

BAR 105, 158

BasicAnchors 70

BasicBorders 43

BasicDecorations 77

BasicFigures 30

BasicRouters 80

Bendpoint 81

Absolute 82

Interface 82

Relative 82

Bendpoint 81

BendpointConnectionRouter 81–82

BendpointLocator 86–88

birthYearChanged() 116, 120, 222

Border 28

BorderLayout 57

Borders 37, 42

bounding box 22

bounds 37

Bucknell xxv

buildActions() 202, 248

Button 32

ByteArrayInputStream 206

C

Canvas 10, 13, 15, 23, 34–35, 51, 65, 76, 93–94, 97

CASCADE 105, 125, 158

category 16

CenterAnchor 72

chain() 232, 245–246

chained 232

ChangeBoundsRequest 235, 238

Checkbox 32

ChopboxAnchor 15, 23, 69–70, 72–73, 75, 79, 195, 242, 246–247

Click 250

Clickable 29

Clickables 29, 32

client area 37, 40

Clipping 40

CodePro xxv–xxvi

Color 28, 142–143, 152

ColorConstants 10, 12, 14, 30–34, 41, 47–49, 78–79, 97, 100, 141–142, 148, 154, 186, 195, 198, 208, 243

CombinedTemplateCreationEntry 249, 251

com.ibm.icu.text 186–187

Command

Composite 232

Create 227

Delete 231

Move and Resize 228

Reorder 229

Reparent 230

Stack 226

Command 227–232, 234–235, 237, 239–242, 245–246, 248

Commands 180, 183, 219, 226

commandStackChanged() 227

COMPONENT_ROLE 240, 248

ComponentEditPolicy 240, 247

Components

Creating 233

Creation Tools 251

Deleting 240

Moving and Resizing 235

Reordering 236

Reparenting 238

composed figures 22

Composite 10–11, 34–35, 51, 65, 76, 93–94, 97, 99–100, 105, 122, 132, 150, 169, 172, 186

CompositeCommand 232

Composite Commands 232

CompositeLayoutAlgorithm 160–163, 167, 169, 172

CompoundBorder 43–44, 47, 50, 208

com.qualityeclipse.genealogy.editor 201

com.qualityeclipse.genealogy.parts 188–189

com.qualityeclipse.genealogy.view 186

configureGraphicalViewer() 203, 212, 214, 217

configurePaletteViewer() 252

connect 23

connect() 14–15, 76

Connection 15, 69–72, 121–122, 135–136, 146, 155, 243

ConnectionAnchor 84, 103, 196, 199, 242, 246–247

ConnectionCreationToolEntry 249, 252

ConnectionDragCreationTool 182, 244

ConnectionEditPart 198–199, 224–225, 242

ConnectionEditPolicy 247–248

ConnectionEndpointEditPolicy 210

ConnectionEndpointLocator 86, 88

ConnectionLayer 92–94, 100

ConnectionLocator 86, 88

ConnectionRouter 84–85

Connections 29, 69, 193–200

Anchors 70

Creating 240

Creation Tools 252

Decorations 76

Default Color 154

Default Width 154

Deleting 247

Fan Router 84

Labels 86

Manhattan Router 85

Modifying 244

Null Router 85

Routing 80

Shortest Path Router 85

Toolips 154

Undirected 153

Updating 223

CONNECTIONS_DASH 154

CONNECTIONS_DIRECTED 154

Constraints 55

consume() 18–19

Containers 29

containsAncestor() 216

containsPoint() 28, 86, 95–96

contributeToToolBar() 248

Control 131–132, 150, 169, 172

Controller 177

CoordinateListener 28

Coordinates 101

createAddCommand() 234, 238–239

createChangeConstraintCommand() 223, 233–235

createChild() 220

createChildEditPolicy() 236

Create Command 227

CreateConnectionCommand 225, 228, 241–242, 245–247

createConnectionCommand() 241

CreateConnectionRequest 241–242

createControl() 186

createDeleteCommand() 240

createDiagram() 10–15, 34–36, 51, 64–65, 76, 93–94, 97, 99–100, 105, 122, 124, 130–133, 138, 143, 150, 169, 172, 186

createDummyConnection() 243

createEditPart() 195

createEditPolicies() 188–189, 194, 209–210, 233–240, 247–248

createElementsDrawer() 250–251

createFigure() 189–190, 195, 197–198, 243

createFilterMenuItem() 158

createFixedZoomMenuItem() 105

createHandle() 211

createMarriage() 19

CreateMarriageCommand() 234

createMarriageFigure() 13–14, 19, 34

createMenuBar() 105, 118, 125, 127, 131, 158, 187

createMoveChildCommand() 235–237

CreateNoteCommand 234

CreateNoteCommand() 234

createOpenFileMenuItem() 125, 127, 187

createOrFindConnection() 224–225

createPalette() 250

createPaletteViewerProvider() 252

createPartControl() 124, 130, 186–188

createPerson() 19

CreatePersonCommand 221, 227

CreatePersonCommand() 234

createPersonFigure() 11–12, 19, 33

CreateRequest 234

createRotatedImageOfString() 29, 32

createSaveFileMenuItem() 127, 187

createScaleToFitMenuItem() 105–106

createSelectionHandles() 211, 236, 244

CreateSpouseConnectionCommand 245

CreateSpouseConnectionCommand() 241

createToolsGroup() 250–251

createView() 104

Creating Components 233

Creating Connections 240

Creation Drag and Drop 252

CreationRequest 233

CreationTool 181

CreationToolEntry 249

Creation tools 251

crop() 46

CustomFigureHighlightAdapter 150–151

Custom Figures 33

D

Dan Rubel xxv

deathYearChanged() 116, 120, 222

declareGlobalActionKeys() 202

Decorations 76

Custom 78

Default 77

Rotatable 77

DefaultEditDomain 180, 203

DefaultHandler 117

DelegatingLayout 58, 86–88

DeleteAction 182

Delete Command 231

DeleteGenealogyConnectionCommand 245–246, 248

DeletePersonCommand 231–232, 240

DeleteRetargetAction 248

Deleting Components 240

Dimension 18, 51–52, 81, 83, 108–109

DirectedGraphLayoutAlgorithm 161–163, 167, 169–170, 172

DirectedGraphLayoutAlgorithm() 161

Display 10, 32, 41, 65, 126, 128, 131

dispose() 120, 130, 133–136, 142

DisposeEvent 32

Domain information 115

doSave() 203, 205–207

doSaveAs() 207

DOUBLE_BUFFERED 23, 97, 100, 122

DragEditPartsTracker 181, 236

DragTracker 211, 236

Draw2D xxiii, 1–2, 7, 118, 175, 177, 195

Application 9

Architecture 21

Basic figures 30

Diagrams 20

Drawing 23

Events 17

Example 7

Figures 53

Graphics 39

Infrastructure 21

Installation 7

Painting 37

Processing Events 24

Project 8

View 15

drawImage() 39

drawLine() 39, 45–47

drawPolygon() 39

drawRectangle() 39

drawRoundRectangle() 39

drawText() 39

DROP_DOWN 105, 125, 158

E

EAST 211

EclipseCon 5–6

Eclipse Foundation xxiii, 6

Eclipse Modeling Framework, see EMF

Eclipse Plug-ins book xxiv, 9, 15

Edit > Delete menu 231, 240, 248

Edit > Redo menu 248

Edit > Undo menu 248

EditDomain 178, 180–181

EditFactory 195

Edit menu 246

EditPart 118, 125, 177, 179–180, 182, 188–191, 193–195, 198, 207–208, 210, 212–216, 219–221, 223, 226, 233–241, 244–247

Adding and Removing 220

Nested 226

EditPartFactory 178–179, 188, 203

EditPartViewer 178–181

EditPolicy 182–183, 188, 207, 209–210, 219, 221, 227, 233–240, 248, 253

Ellipse 30, 84, 86

EllipseAnchor 70–71

EMF 113, 176

EntityConnectionData 138–140

equals() 193

eraseSourceConnectionFeedback() 247

eraseTargetConnectionFeedback() 243, 247

eRCP 5

Eric Clayberg xxvi

ERROR 206

ErrorDialog 206

Event 24

EventDispatcher 22, 24–25

EventManager 22

EventObject 227

execute() 227–229, 231–232

expand() 34

extension 16

F

FanRouter 84

Figure 10, 33, 42, 57, 66, 86, 93, 95–96, 121, 189, 192, 207, 209, 211

FigureCanvas 97–100, 105, 122, 125, 127, 186

FigureListener 28, 124

figureMoved() 124

FigureMover 17, 19, 33–34, 36, 50, 64, 66, 95–96, 125

Figures 27, 177

Borders 42

Bounds 37

Child 28

Clickables 29

Client Area 37

Clipping 40

Common 29

Common Borders 43

Complex 27

Connections 29, 69

Containers 29

Custom 33

Custom Borders 45

Custom Painting 41

Extending Existing 33

Graphics 39

Layered 29

Layout Managers 55

Maximum 56

Minimum 56

Nested 27, 35

Painting 37

Paint Methods 38

Preferred Size 56

Sample Code 30

Shapes 29

Z-Order 27, 40

File 128

File > Save As menu 207

File > Save menu 205

FileDialog 126, 128

FileEditorInput 207

FileInputStream 126

File menu 125

FILL_BOTH 61

FILL_HORIZONTAL 61, 66

FILL_VERTICAL 61

fillPolygon() 39, 47

fillRectangle() 39, 41, 49

fillRoundRectangle() 39

fillText() 39

Filter menu 158–159

Filters 157

findConnection() 224–225

findFigureAt() 28, 95

firePropertyChange() 207, 227

fireSelectionChanged() 208

fish-eye effect 149

fisheyeNode() 148–149

Flow 3

FlowLayout 59–60, 62

FocusListener 25, 27

Font 28, 32

FrameBorder 43

FreeformFigure 98–100

FreeformFigures 179

FreeformGraphicalRootEditPart 179

FreeformLayer 99–100, 189

FreeformLayeredPane 100, 104

FreeformLayout 189

FreeformViewport 100, 107, 179

G

GC 39

GEF xxiii, 1–2, 7, 128, 183

Adding and Removing EditParts 220

Commands and Tools 219

Editor 201, 219

Examples 2

Flow 3

Logic 4

Shapes 2

Text 4

WindowBuilder 5

XMind 5

Listening for Model Changes 219

Models 113

Model-View separation 113

Overview 1

plug-in 185

Plug-in Overview 175

Standalone View 187

View 185

Viewer 186

Gender 158

genealogy 118

GenealogyConnection 193–198, 225, 232

GenealogyConnection() 225

GenealogyConnectionEditPart 194–195, 197–198, 210, 243, 245–247

GenealogyEditPartFactory 188, 195, 203

GenealogyElement 114–115, 124, 135, 189–190, 228, 235

GenealogyElementAdapter 119, 121, 124

GenealogyElementEditPart 190, 222, 225

GenealogyElementListener 116, 124, 222

genealogyElementRemoved() 220

genealogy.gg 205

GenealogyGraph 114–117, 119, 123, 127, 132–137, 187–189, 203, 219, 227, 231–232, 234, 240, 249, 251, 253

GenealogyGraphAdapter 119, 123, 125

GenealogyGraphEditor 201–203, 205, 207, 210, 217, 219, 226, 231, 233, 248, 252

GenealogyGraphEditorActionBarContributor 202, 248

GenealogyGraphEditorPaletteFactory 250

GenealogyGraphEditPart 188–190, 219–220, 233, 235–236, 238, 248

GenealogyGraphListener 119, 219, 221

GenealogyGraphReader 116–118, 126, 204

GenealogyGraphWriter 126–128, 206

Genealogy Model 113

GenealogyView 9, 16, 19, 33–36, 41, 48, 50–51, 63–66, 75–76, 79–80, 85, 93, 95, 97, 100, 102, 104–105, 107, 113, 116–118, 123–125, 131, 187

Genealogy view 16

GenealogyViewGEF 186

genealogy.xml 118, 123–124, 130–131, 187

GenealogyZestContentProvider1 133–134, 137, 156

GenealogyZestContentProvider2 134

GenealogyZestContentProvider3 135

GenealogyZestFilter 158–159

GenealogyZestLabelProvider 138, 141, 143–144, 146, 154, 156

GenealogyZestView 129–131, 137, 139, 145, 150, 159, 162, 169, 172–173

getAction() 248

getActiveShell() 126, 128

getBackground() 141, 143, 148

getBackgroundColor() 28, 39, 148, 152

getBackgroundColour() 148

getBirthYear() 138, 190, 222

getBorder() 28

getBorderColor() 148

getBorderHighlightColor() 148

getBorderWidth() 148

getBottom() 14, 34

getBounds() 18, 28, 45, 72, 75, 103, 110, 124, 238

getCenter() 72, 75, 103, 110

getCenterX() 172

getCenterY() 172

getChildren() 28, 237–238

getClientArea() 28, 107

getColor() 154

getCommand() 233, 240

getCommandStack() 206

getConnectedTo() 133–134

getConnectionCompleteCommand() 241

getConnectionCreateCommand() 241

getConnectionEditPart() 245–247

getConnectionFigure() 146, 155

getConnectionLayer() 122

getConnectionName() 228, 245

getConnectionStyle() 154

getConstraintFor() 234

getContentPane() 191

getContents() 180, 215

getControl() 132, 150, 186, 213

getCopy() 18

getCreateCommand() 221, 233–235

getCurrentLayoutStep() 169

getCurrentX() 167–168

getCurrentY() 167–168

getDeathYear() 120, 138, 190, 222

getDefault() 126, 128

getDeleteCommand() 240, 248

getDestination() 136, 146, 155, 171

getDifference() 18

getDisplay() 10, 213

getEditDomain() 252

getEditorInput() 206–207

getEditPartRegistry() 220, 225–226

getElementName() 228

getElements() 133–135

getFigure() 119–120, 122, 144, 190–191, 196, 199, 208, 222, 238, 242, 246

getFile() 204, 206–207

getFont() 10, 28, 51, 93, 100, 105

getForegoundColor() 39

getForeground() 141, 148

getForegroundColor() 28, 148

getFreeformExtent() 107

getGender() 119, 139, 158, 190

getGraphAdapter() 122

getGraphControl() 143, 151

getGraphicalViewer() 203, 253

getHeight() 124, 229, 231

getHighlightColor() 152, 154

getHost() 236

getHusband() 194

getImage() 119, 139

getInsertionReference() 235, 237–238

getInsets() 45

getLayoutEntity() 172

getLayoutManager() 18

getLeft() 14, 34

getLineStyle() 39

getLineWidth() 39

getLocation() 18, 72–75, 103, 108, 110–111, 238

getMarriage() 134, 136, 232

getMarriages() 133, 189

getMaximumSize() 56

getMinimumSize() 56

getModel() 180, 189–190, 198, 222, 224, 234, 237–240, 242–243, 245–248

getModelChildren() 189–190

getModelSourceConnections() 193–194, 198

getModelTargetConnections() 193–194, 198

getName() 190, 207

getNewObject() 234, 251

getNewObjectType() 234

getNodeFigure() 146, 155

getNodeHighlightColor() 148

getNotes() 148, 156, 189–190, 229–231

getNotesContainer() 191–192

getOffspring() 134, 197–198

getOwner() 72, 75, 103, 108, 110–111

getPaletteRoot() 203, 250

getPaletteViewer() 252

getParent() 18, 28, 86, 107, 122, 190, 213, 238–240

getParentsMarriage() 136, 198, 232

getPeople() 133, 136, 189

getPersonFigure() 122, 222

getPreferredSize() 11–13, 30–31, 51–52, 56, 144

getReconnectSourceCommand() 244–245

getReconnectTargetCommand() 245–246

getRelationships() 134

getResourceAsStream() 65, 118, 124, 130–131

getRight() 14, 34

getRoot() 207

getRootEditPart() 213

getSelected() 208

getSelection() 151, 213, 215

getSelectionSynchronizer() 217

getShell() 206–207

getSite() 206–207

getSize() 34

getSource() 136, 146, 155, 171

getSourceAnchor() 84

getSourceConnectionAnchor() 198–199, 242, 246–247

getStart() 31

getStartCommand() 241–242

getTarget() 196

getTargetAnchor() 84

getTargetConnectionAnchor() 196, 198–199, 242–243, 247

getText() 138, 156

getToolTip() 28

getTooltip() 148–149, 154

getTop() 14, 34

getTopRight() 72

getTotalNumberOfLayoutSteps() 169

getUpdateManager() 18

getViewer() 220, 225–226

getWidth() 124, 229, 231

getWidthInLayout() 172

getWife() 194

getWorkspace() 207

getX() 229, 231

getY() 229, 231

getYearMarried() 138, 144

Global Edit Menu Actions 248

Google xxiii, xxv–xxvi, 6

Google Plug-in for Eclipse, seeGPE

Google Web Toolkit, seeGWT 5

GPE xxiii

gradient 41

Graph 143, 150–151

GraphConnection 146, 155

GRAPHICAL_NODE_ROLE 240

Graphical Editing Framework GEF SDK 7

Graphical Editing Framework, seeGEF

Graphical Editing Framework Zest Visualization Toolkit SDK feature 129

GraphicalEditor 202, 217

GraphicalEditorWithFlyoutPalette 202–203, 250

GraphicalEditorWithPalette 202, 250, 252

GraphicalEditPart 190, 211

GraphicalNodeEditPolicy 225, 241, 243–245, 247

GraphicalViewer 203, 207, 213–214

GraphicalViewerImpl 179

GraphicalViewerKeyHandler 217

Graphics

Drawing 39

Property access 39

Saving state 39

Graphics 38–39, 41, 44–46, 49, 53

GraphLabel 150

GraphNode 152, 172

GraphViewer 131–132, 137–138, 143, 151, 157–158

GridData 10, 60–61, 105, 131

GridLayout 10, 60–61, 66, 131

GridLayoutAlgorithm 162

GroupBoxBorder 43–44

GroupRequest 240, 248

GWT xxvi, 5

GWT Designer xxiii

H

Handle 211, 236

handleException() 206

hasChildren() 136, 156

hasFocus() 28

hashCode() 193

heavyweight 22

Highlight 151–152

highlight() 152

Hit Testing 95

HorizontalLayoutAlgorithm 164

HorizontalShift 160–163, 167, 169–170, 172

HorizontalTreeLayoutAlgorithm 164

husbandChanged() 121, 224

I

IColorProvider 137, 141, 143, 146, 148

IConnectionStyleProvider 137, 153–154

IEditorInput 204

IEditorPart 180, 227

IEntityConnectionStyleProvider 137, 153–154

IEntityStyleProvider 137, 148–149

IFigure 11–15, 17, 27–29, 33–36, 38, 46, 51, 56, 58, 64–66, 75, 77, 79, 86, 101, 104, 124, 144, 146, 148, 152, 155, 189–192, 195, 198, 243

IFigureProvider 137, 144

IFile 204, 206–207

IFileEditorInput 204, 206–207

IGraphContentProvider 132, 135

IGraphEntityContentProvider 132–134

IGraphEntityRelationshipContentProvider 132, 134

ILabelProvider 137

Image 32, 65, 119, 121, 139

ImageFigure 29, 32, 66

ImageUtilities 29, 32

indexOf() 229–231, 237

Indigo 7

INestedContentProvider 132, 136, 156

initializeGraphicalViewer() 203, 252

initializePaletteViewer() 252

inputChanged() 133–135

InputStream 131

Insets 45–46

installEditPolicy() 210, 234–240, 248

Install New Software menu 185

Instantiations xxii–xxiii, xxvi

InternalNode 167–168, 171–172

InternalRelationship 167–168, 171–172

InvalidLayoutConfiguration 168

INVERTED_TRIANGLE_TIP 77

IPath 207

IProgressMonitor 206

isAncestor() 216

isCoordinateSystem() 28

isDisposed() 10

ISelection 214

ISelectionChangedListener 213

ISelfStyle 146

ISelfStyleProvider 137, 146

isOffspringConnection() 197–198, 243, 245

isOpaque() 28

isSaveAsAllowed() 206

IStructuredContentProvider 132

IStructuredSelection 213–215

isValidConfiguration() 168

isValidSource() 228, 245–246

isValidTarget() 228, 242, 246–247

isVisible() 28

IToolBarManager 248

J

Jaime Wren xxvi

JFace 131–132, 157, 179, 182

K

Keyboard 217

KeyListener 25, 27

L

Label 10, 12, 22, 29, 32–33, 36, 43–45, 47–48, 50, 56–57, 61, 64, 71, 87–88, 96, 121, 155

LabelAnchor 71

LabelProvider 138

LabelRetargetAction 248

Layer 29, 92–93, 95, 99

Layered 29

LayeredPane 29, 93, 98, 100, 104

Layers 91–95

LAYOUT_ROLE 233–239

LayoutAlgorithm 163, 167, 169, 172

Layout Algorithms 160

Composite 161

Custom 167

Directed Graph 162

Graph 162

Horizontal 164

Horizontal Shift 163

Horizontal Tree 164

Radial 164

Spring 165

Tree 166

Vertical 166

LayoutEntity 172

LayoutListener 28

LayoutManager 18, 55

Layout Managers 10, 55

Common 57

Constraints 55

Using 63

LayoutStyles 140, 161–165, 169, 172

lightweight 22

Lightweight Drawing System 22

LightweightSystem 10, 22–24

LINE_DASH 44

LINE_DOT 47

LineBorder 32, 44–45, 47, 50, 66, 208

Listener 24

Listeners 115

Listening for Model Changes 219

locationChanged() 116, 222–223

Locator 58

Logic 4

M

main() 9, 11, 13–14, 17, 131, 137, 187

ManhattanConnectionRouter 85

MANIFEST.MF 185–186

MarginBorder 43–44, 47, 50, 66, 189, 208

markSaveLocation() 206

MarqueeToolEntry 249, 251

Marriage 114–116, 119–120, 133–134, 138, 144, 172, 188, 193–194, 198, 220–221, 224–225, 227–228, 232–234, 240–241, 244, 249, 252

MarriageAdapter 119–121, 124

marriageAdded() 220

MarriageAnchor 74–75, 79, 103, 107–109, 111–112, 146, 155, 195–196, 199

marriageChanged() 116, 120, 223–224

MarriageEditPart 188, 190–191, 194, 196, 198, 209–211, 222, 225, 235–236, 240–243, 247

MarriageFigure 33–35, 63–64, 69, 74–76, 79, 91, 95–96, 102–104, 107, 109–110, 112, 125, 144, 146, 155, 195, 209, 211

MarriageFigure’ 108

MarriageFigures 121

MarriageGraphicalNodeEditPolicy 241, 243–245

MarriageLayoutAlgorithm 170, 172

MarriageListener 119, 121, 221–222, 224

marriageRemoved() 220

Math 75, 107, 110

Menu 105–106, 125, 127, 158

MenuItem 105–106, 125, 127, 158

MessageDialog 128

MidpointLocator 86

Models

Dsiplaying 203

GEF 113

Hooking Diagram to Model 124

Hooking model to a diagram 118

Listeners and Adapters 119

POJO 113

Populating the Diagram 116

Reading 116

Reading from a File 125

Saving 205

Serializing model information 126

State Changes 177

Storing the Diagram 126

Types 176

Writing to a File 127

Model-View-Controller, see MVC

ModifiedSelectionManager 214

mouse button 18

mouseDragged() 18

MouseEvent 18–19

MouseListener 17, 25, 27

mouse listener 25

MouseMotionListener 17, 25, 27

mousePressed() 17–18

mouseReleased() 19

Move and Resize Command 228

MoveAndResizeGenealogyElementCommand 223, 228

MoveAndResizeGenealogyElementCommand() 235

MoveHandle 211

moveHandle() 211

Moving and Resizing Components 235

MVC 113, 176

MyCreateCommand 232

MyDeleteCommand 232

MyOtherCommand 232

N

nameChanged() 116, 120, 222

Nested Content 156

nested figures 22, 35

newConnection() 84, 86

newFigure() 84, 86

newFigureAndConnection() 77, 79, 81, 85, 88

newSAXParser() 117

NO_LAYOUT_NODE_RESIZING 140, 161–165, 169, 172

NodeEditPart 198, 242

NONE 132

NonResizableEditPolicy 210–211

NonResizableMarriageEditPolicy 210–211, 236, 244

NORMAL 32

NORTH 211

Note 114–115, 119–120, 148, 156, 188, 220–221, 226–230, 232–236, 238–239

NoteAdapter 119–121, 124

noteAdded() 116, 120, 220, 226

NoteBorder 46–49

NoteContainer 114–115, 229–231, 238–239

NoteContainerListener 116

NoteEditPart 188, 190–191, 209–210, 216, 222, 226, 235, 238, 240

NoteFigure 48–52, 148, 209, 212, 237

NoteListener 119, 221–222

noteRemoved() 116, 120, 220, 226

Notes 114

NULL 106, 125, 127

NullConnectionRouter 85

O

ObjectShare xxvi

Object Technology International xxi

offspringAdded() 122

offspringRemoved() 122

OPEN 126

open() 10, 126

openError() 206

openFile() 125–126, 187

Open menu 125

openQuestion() 128

OrderedLayoutEditPolicy 234, 236–239

OrderedLayoutEditPolicy() 239

org.eclipse.core.resources 201

org.eclipse.core.runtime 9

org.eclipse.draw2d 9

org.eclipse.gef 175, 185

org.eclipse.ui 9

org.eclipse.ui.editors 202

org.eclipse.ui.ide 201

org.eclipse.zest.core 130

org.eclipse.zest.layouts 130

OTI xxi–xxii

P

paint() 37–38, 46

paintBorder() 38, 45

paintChildren() 38

paintClientArea() 38

paintFigure() 38, 41–42, 49

Palette 221, 225, 249

Palette Creation 250

PaletteDrawer 251

PaletteDrawers 249

PaletteEntry 251

PaletteRoot 203, 250–251

PaletteToolbar 250–251

PaletteToolbars 249

PaletteViewer 252

PaletteViewerProvider 252

Panel 29

PanningSelectionToolEntry 249–251

parentChanged() 122

parentsMarriageChanged() 116, 223–224

Pattern 41

PeopleFigures 121

Person 114–115, 119–122, 133–134, 138–139, 148, 156, 158, 188–190, 193–194, 198, 220–236, 238–241, 251–252

PersonAdapter 119, 121, 124

personAdded() 220–221

PersonEditPart 188–191, 194, 198, 210, 221–226, 234–236, 239–240, 242–243, 246–247

PersonFigure 33–36, 41–42, 44–48, 50–51, 63–66, 69, 73, 91, 94, 102, 119–121, 125, 139, 190–192, 208, 212, 222, 237

PersonGraphicalNodeEditPolicy 240–241, 243–245

PersonListener 116, 119, 221–224

personRemoved() 220

Plain Old Java Objects, see POJO

Plugin-in Dependencies 185

plugin.xml 15, 186

Point 11–13, 18, 28, 30–31, 52, 70–72, 75–76, 103, 108–111, 124

Point() 222

PointList 78–80

POJO 113, 176

Polygon 29, 31

PolygonDecoration 77–78, 198, 243

PolygonShape 13–14, 19, 34

Polyline 29, 31

PolylineConnection 15, 23, 29, 69–72, 75–79, 81, 84–86, 88, 122, 195, 198, 243

PolylineDecoration 77–79

popState() 39

PositionConstants 32, 87–88

postLayoutAlgorithm() 168

PrecisionDimension 109–111

PrecisionPoint 109–111

preLayoutAlgorithm() 167, 170

Presentation information 115

PrintAction 182

println() 127

PrintWriter 126–128, 206

PROP_DIRTY 206, 227

PROP_INPUT 207

pushState() 39

Q

QualityEclipse Book Samples view 20

R

RadialLayoutAlgorithm 164–165

RADIUS 108, 110–111

RCP 9, 17

RCP Developer xxv

readAndClose() 117–118, 124, 126, 130–131, 187, 203–204

readAndDispatch() 10

ReconnectRequest 245–247

recreateCommand() 245–247

Rectangle 11–14, 18, 28, 30–32, 34, 41, 44–46, 49, 51–52, 55–56, 58, 63, 76, 107, 124, 227–231, 234–235

RectangleFigure 12, 19, 22, 31, 33–34, 42

REDO 248

RedoRetargetAction 248

refreshVisuals() 190

Relationships, see Connections

RelativeBendpoint 81–83

Relative coordinates 102

relocate() 58

remove() 120

removeChild() 220

removeNote() 231

removeNote() 229–231

removeNotify() 222–223

removePerson() 227, 232

removePersonListener() 120, 222

removeSourceConnection() 224

removeTargetConnection() 224

Reorder Command 229

reordered 236

Reordering Components 236

ReorderNoteCommand 229, 237

Reparent Command 230

reparented 230

Reparenting Components 238

ReparentNoteCommand 230, 238–239

Request 199, 235, 238, 242–243, 246–247

Requests 180, 182

ResizeHandle 211

resolveRelationships() 117

ResourcesPlugin 207

restoreState() 39

RootComponentEditPolicy 248

RootEditPart 178–179, 203

root figure 10

RotatableDecoration 76–77

RoundedRectangle 31

run() 9–10, 105, 107, 117–118, 131, 187

S

Sample Code

Book 20

Borders 43

Clickables 32

Shapes 30

SAVE 128

SaveAsDialog 207

saveFile() 127–128, 187

Save menu 127

SAX Parser 116

SAXParserFactory 117

ScalableFigure 104

ScalableFreeformLayeredPane 104–105

ScalableFreeformRootEditPart 179, 186, 203

scaleToFit() 106–107

Scaling 104

Dimensions 107

Figures 104

Zoom menu 105

Scrolling 96

ScrollingGraphicalViewer 179, 186

ScrollPane 29

SELECT_ALL 248

SelectAllAction 182

SELECTED 208

SELECTED_NONE 208

SELECTED_PRIMARY 208

SelectEditPartTracker 211, 236

Selection 207

Accessibility 217

Change Listener 212

Edit Policy 209

Keyboard Actions 217

Making Visible 207

Manager 214

Multiple Editors 217

Synchronizing 217

Tools 250

SELECTION_FEEDBACK_ROLE 209–210, 235

selectionChanged() 213

SelectionChangedEvent 213

SelectionChangedListener 214

SelectionChangeListener 212

SelectionEvent 106, 125, 127, 151, 159

SelectionListener 106, 125, 127, 151, 159

SelectionManager 214

SelectionModificationChangeListener 212–213

SelectionSynchronizer 217

SelectionTool 181

SelectionToolEntry 249

selfStyleConnection() 146, 154–155

selfStyleNode() 146

setAfterNote() 229–230, 237, 239

setBackground() 97, 100

setBackgroundColor() 12, 14, 28, 30–31, 33–34, 42, 47–49, 78–79, 152, 195, 198, 243

setBackgroundPattern() 41

setBirthAndDeathYear() 120–121, 222

setBirthYear() 251

setBorder() 28, 43–44, 48, 50, 66, 189, 208, 211

setBounds() 28, 58, 230, 238

setColor() 208

setConnectionRouter() 81, 84–86, 94

setConstraint() 11–12, 18, 55, 57–58, 63, 81

setContentProvider() 133–135

setContents(() 100

setContents() 10, 93, 97, 178, 180, 187–188, 203

setCornerDimensions() 31

setCursor() 211

setDefaultEntry() 251

setDragAllowed() 210

setDragTracker() 211

setEditDomain() 203

setEditPartFactory() 203

setEnd() 14, 34

setFill() 14, 31, 34

setFilters() 157, 159

setFocus() 130

setFont() 10, 28, 51–52, 93, 100, 105

setForegroundColor() 28

setGap() 88

setHorizontalSpacing() 57

setInput() 132, 204

setKeyHandler() 217

setLabel() 246

setLabelProvider() 138

setLayout() 10, 131

setLayoutAlgorithm() 161–165, 169, 172

setLayoutArea() 169

setLayoutConstraint() 190

setLayoutData 131

setLayoutData() 10

setLayoutManager() 10, 12, 33, 44, 50, 55–57, 59–64, 66, 87–88, 93, 99, 189, 192, 208

setLineStyle() 47

setLineWidth() 46

setLocation() 124, 222, 227, 229, 231

setMajorAlignment() 60

setMajorSpacing() 60

setMarriage() 232

setMaximumSize() 56

setMenu() 125, 158

setMenuBar() 105, 158

setMinimumSize() 56

setMinorAlignment() 60

setMinorSpacing() 60

setModel() 117, 122–124, 130–132, 187, 189–190, 194, 219

setName() 120–121, 222, 251

setNextRouter() 84

setOldContainer() 230, 238–239

setOpaque 28

setOpaque() 48–49

setOriginalFile() 207

setParentsMarriage() 114

setPartName() 204, 207

setPreferredSize() 12, 14, 30, 33–34, 44, 50, 56, 66, 208

setRelativeDimensions() 81, 83

setRelativePosition() 87–88

setRootEditPart() 186, 203

setScale() 106–107

setSelected() 207–208

setSelection() 214

setSize() 10, 124, 131, 222, 227, 229, 231

setSource() 228, 245

setSourceAnchor() 15, 70–72, 75, 79, 146, 155

setSourceDecoration() 77

setSpacing() 50, 63, 66, 192, 208

setStart() 14, 34

setStartCommand() 241

setTarget() 228, 242, 245–246

setTargetAnchor() 15, 70–72, 75, 79

setTargetDecoration() 77–79, 195, 198, 243

setTemplate() 77–79, 195, 198, 243

setText() 10, 105–106, 121, 125–128, 131, 158

setToolTip() 155

setUDistance() 88

setVDistance() 88

setVerticalSpacing() 57

setViewport() 100

setWeight() 81, 83

setWidth() 208

Shape 29

Shapes 2, 29–30

Shell 10, 105, 125–128, 131, 158

ShiftDiagramLayoutAlgorithm 167, 169, 172

ShortestPathConnectionRouter 85–86, 91–93

showSourceConnectionFeedback() 247

showTargetConnectionFeedback() 243, 247

SimpleEtchedBorder 44

SimpleFactory 251

SimpleLoweredBorder 44

SimpleRaisedBorder 44

SimpleRootEditPart 179

sizeChanged() 116, 222

sleep() 10

Smalltalk xxi

source 224, 240, 252

SOUTH 211, 244

SpringLayoutAlgorithm 165, 169

StackLayout 61, 64, 179

Standard Widget Toolkit, seeSWT

Status 206

StringBuilder 138, 148, 156

StructuredSelection 213–214

Swing 5

Swing Designer xxiii

SWT 1, 5, 9, 21

SWT.BAR 105, 158

SWT.CASCADE 105, 125, 158

SWT Designer xxiii

SWT.DOUBLE_BUFFERED 23, 97, 100, 122

SWT.DROP_DOWN 105, 125, 158

SWTEventDispatcher 24

SWT.LINE_DOT 47

SWT.NONE 132

SWT.NORMAL 32

SWT.NULL 106, 125, 127

SWT.OPEN 126

SWT.SAVE 128

T

target 224, 240, 252

TemplateTransferDragSourceListener 252

TemplateTransferDropTargetListener 253

Text 4

TitleBarBorder 44

ToolbarLayout 12, 23, 33, 44, 50, 56, 62–63, 66, 192, 208

ToolEntry 251–252

Tools 180–181, 219, 249

Component Creation 251

Connection Creation 252

toString() 138

translate() 18

translateFromParent() 101

translateToAbsolute() 101, 103, 108, 110–111

translateToParent() 101

translateToRelative() 101

TreeLayoutAlgorithm 140, 160, 163–164, 166

TreeViewer 179

Triangle 31

U

uDistance 88

UNDO 248

undo() 227, 229–232

UndoAction 182

UndoRetargetAction 248

unhighlight() 151–152

union() 107

University of Oregon xxvi

UpdateManager 18, 22–23

update site 7

Updating Connections 223

Updating Figures 221

useLocalCoordinates() 28

V

VA Assist xxii, xxv–xxvi

vDistance 88

VerticalLayoutAlgorithm 166

view 16

Viewer 133, 158

ViewerFilter 158–159

View Figures 177

ViewPart 16–17, 130, 186

Viewport 98, 100

Viewports 91, 106

VisualAge for Java xxi

VisualAge Smalltalk xxi

vsetGap() 87

W

WEST 211

widgetDefaultSelected() 106, 125, 127, 151, 159

widgetDisposed() 32

widgetSelected() 106, 125, 127, 151, 159

wifeChanged() 122, 224

WindowBuilder xxiii, xxvi, 5–6

WindowTester xxv

writeMarriages() 127

writeNotes() 127

writePeople() 127

www.qualityeclipse.com 20

X

XMind 5

XML 116, 118, 126, 185, 201

XYAnchor 70–72

XYLayout 10, 12, 23, 55–56, 63, 93

XYLayoutEditPolicy 233–236, 238–239

Z

Zest xxiii, 1–2, 118, 128–129, 136, 142, 145–146, 148, 173, 175

Color 141

Connection Highlight 153

Content Provider 132

Custom Figures 144

Filters 157

Installation 129

Label Provider 138

Layout Algorithms 160

Model-View separation 113

Nested Content 156

Node Size 140

Plug-in Dependencies 130

Presentation 137

Setup 129

Styling 153

Styling and Anchors 146

Subinterfaces 132

Tooltips 153

ZestContentProvider3 135

ZestStyles 154

Zooming, seeScaling

Zoom menu 105

Z-Order 40

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.144.56