| Line | Hits | Source |
|---|---|---|
| 1 | /******************************************************************************* | |
| 2 | ||
| 3 | * Demetrix process modelling system | |
| 4 | ||
| 5 | * | |
| 6 | ||
| 7 | * Copyright (c) 2003, 2004 Dimitri A. Pissarenko | |
| 8 | ||
| 9 | * | |
| 10 | ||
| 11 | * This file is part of Demetrix. | |
| 12 | ||
| 13 | * | |
| 14 | ||
| 15 | * Demetrix is free software; you can redistribute it and/or modify | |
| 16 | ||
| 17 | * it under the terms of the GNU General Public License as published by | |
| 18 | ||
| 19 | * the Free Software Foundation; either version 2.1 of the License, or | |
| 20 | ||
| 21 | * (at your option) any later version. | |
| 22 | ||
| 23 | * | |
| 24 | ||
| 25 | * Demetrix is distributed in the hope that it will be useful, | |
| 26 | ||
| 27 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 28 | ||
| 29 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 30 | ||
| 31 | * GNU General Public License for more details. | |
| 32 | ||
| 33 | * | |
| 34 | ||
| 35 | * You should have received a copy of the GNU General Public License | |
| 36 | ||
| 37 | * along with Demetrix; if not, write to the Free Software | |
| 38 | ||
| 39 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 40 | ||
| 41 | * | |
| 42 | ||
| 43 | * For further information you may | |
| 44 | ||
| 45 | * | |
| 46 | ||
| 47 | * - send an e-mail in Russian, German or English to dimitri.pissarenko@gmx.net | |
| 48 | ||
| 49 | * - look at http://sourceforge.net/projects/demetrix/ | |
| 50 | ||
| 51 | * - look at http://demetrix.sourceforge.net/ | |
| 52 | ||
| 53 | * - look at http://members.inode.at/d.pissarenko/ | |
| 54 | ||
| 55 | * | |
| 56 | ||
| 57 | *****************************************************************************/ | |
| 58 | ||
| 59 | ||
| 60 | ||
| 61 | package net.sourceforge.demetrix.graph; | |
| 62 | ||
| 63 | ||
| 64 | ||
| 65 | import java.awt.Color; | |
| 66 | ||
| 67 | import java.awt.Font; | |
| 68 | ||
| 69 | import java.awt.Rectangle; | |
| 70 | ||
| 71 | import java.util.Map; | |
| 72 | ||
| 73 | ||
| 74 | ||
| 75 | import org.jgraph.JGraph; | |
| 76 | ||
| 77 | import org.jgraph.graph.CellMapper; | |
| 78 | ||
| 79 | import org.jgraph.graph.DefaultPort; | |
| 80 | ||
| 81 | import org.jgraph.graph.GraphCell; | |
| 82 | ||
| 83 | import org.jgraph.graph.GraphConstants; | |
| 84 | ||
| 85 | import org.jgraph.graph.VertexView; | |
| 86 | ||
| 87 | ||
| 88 | ||
| 89 | /** | |
| 90 | ||
| 91 | * @author Dimitri Pissarenko | |
| 92 | ||
| 93 | * | |
| 94 | ||
| 95 | */ | |
| 96 | ||
| 97 | public class TaskCellView extends VertexView { | |
| 98 | ||
| 99 | ||
| 100 | ||
| 101 | public TaskCellView(GraphCell cell, JGraph graph, CellMapper mapper) | |
| 102 | ||
| 103 | { | |
| 104 | ||
| 105 | 12 | super(cell, graph, mapper); |
| 106 | ||
| 107 | ||
| 108 | ||
| 109 | 12 | Map map = null; |
| 110 | ||
| 111 | 12 | Rectangle bounds = null; |
| 112 | ||
| 113 | 12 | DefaultPort port = null; |
| 114 | ||
| 115 | ||
| 116 | ||
| 117 | ||
| 118 | ||
| 119 | ||
| 120 | ||
| 121 | ||
| 122 | ||
| 123 | 12 | map = GraphConstants.createMap(); |
| 124 | ||
| 125 | ||
| 126 | ||
| 127 | 12 | map.put(GraphConstants.BORDERCOLOR, Color.BLACK); |
| 128 | ||
| 129 | 12 | map.put(GraphConstants.FONT, new Font("Arial", Font.BOLD, 12)); |
| 130 | ||
| 131 | ||
| 132 | ||
| 133 | 12 | cell.changeAttributes(map); |
| 134 | ||
| 135 | 12 | } |
| 136 | ||
| 137 | } | |
| 138 |
|
this report was generated by version 1.0.5 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |