/[debian]/libjgraph-java/trunk/doc/api/org/jgraph/graph/DefaultGraphCellEditor.html
ViewVC logotype

Contents of /libjgraph-java/trunk/doc/api/org/jgraph/graph/DefaultGraphCellEditor.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 816 - (show annotations)
Fri Aug 3 13:14:15 2007 UTC (13 years, 10 months ago) by gregoa
File MIME type: text/html
File size: 49897 byte(s)
* New upstream release.
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.4.2_11) on Mon Jul 30 10:14:31 BST 2007 -->
6 <TITLE>
7 DefaultGraphCellEditor (JGraph v5.10.1.4 API Specification)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="org.jgraph.graph.DefaultGraphCellEditor class">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 parent.document.title="DefaultGraphCellEditor (JGraph v5.10.1.4 API Specification)";
18 }
19 </SCRIPT>
20
21 </HEAD>
22
23 <BODY BGCOLOR="white" onload="windowTitle();">
24
25
26 <!-- ========= START OF TOP NAVBAR ======= -->
27 <A NAME="navbar_top"><!-- --></A>
28 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30 <TR>
31 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32 <A NAME="navbar_top_firstrow"><!-- --></A>
33 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DefaultGraphCellEditor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
43 </TR>
44 </TABLE>
45 </TD>
46 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
47 <p><b>JGraph</b><br>v5.10.1.4</p></EM>
48 </TD>
49 </TR>
50
51 <TR>
52 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
53 &nbsp;<A HREF="../../../org/jgraph/graph/DefaultGraphCell.html" title="class in org.jgraph.graph"><B>PREV CLASS</B></A>&nbsp;
54 &nbsp;<A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.DefaultTextField.html" title="class in org.jgraph.graph"><B>NEXT CLASS</B></A></FONT></TD>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
57 &nbsp;<A HREF="DefaultGraphCellEditor.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
58 &nbsp;<SCRIPT type="text/javascript">
59 <!--
60 if(window==top) {
61 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
62 }
63 //-->
64 </SCRIPT>
65 <NOSCRIPT>
66 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
67 </NOSCRIPT>
68
69 </FONT></TD>
70 </TR>
71 <TR>
72 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
73 SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
76 </TR>
77 </TABLE>
78 <A NAME="skip-navbar_top"></A>
79 <!-- ========= END OF TOP NAVBAR ========= -->
80
81 <HR>
82 <!-- ======== START OF CLASS DATA ======== -->
83 <H2>
84 <FONT SIZE="-1">
85 org.jgraph.graph</FONT>
86 <BR>
87 Class DefaultGraphCellEditor</H2>
88 <PRE>
89 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
90 <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.jgraph.graph.DefaultGraphCellEditor</B>
91 </PRE>
92 <DL>
93 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/event/ActionListener.html" title="class or interface in java.awt.event">ActionListener</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/CellEditor.html" title="class or interface in javax.swing">CellEditor</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventListener.html" title="class or interface in java.util">EventListener</A>, <A HREF="../../../org/jgraph/graph/GraphCellEditor.html" title="interface in org.jgraph.graph">GraphCellEditor</A>, <A HREF="../../../org/jgraph/event/GraphSelectionListener.html" title="interface in org.jgraph.event">GraphSelectionListener</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DD>
94 </DL>
95 <HR>
96 <DL>
97 <DT>public class <B>DefaultGraphCellEditor</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A><DT>implements <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/event/ActionListener.html" title="class or interface in java.awt.event">ActionListener</A>, <A HREF="../../../org/jgraph/graph/GraphCellEditor.html" title="interface in org.jgraph.graph">GraphCellEditor</A>, <A HREF="../../../org/jgraph/event/GraphSelectionListener.html" title="interface in org.jgraph.event">GraphSelectionListener</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DL>
98
99 <P>
100 <DL>
101 <DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#org.jgraph.graph.DefaultGraphCellEditor">Serialized Form</A></DL>
102 <HR>
103
104 <P>
105 <!-- ======== NESTED CLASS SUMMARY ======== -->
106
107 <A NAME="nested_class_summary"><!-- --></A>
108 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
109 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
110 <TD COLSPAN=2><FONT SIZE="+2">
111 <B>Nested Class Summary</B></FONT></TD>
112 </TR>
113 <TR BGCOLOR="white" CLASS="TableRowColor">
114 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
115 <CODE>&nbsp;class</CODE></FONT></TD>
116 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.DefaultTextField.html" title="class in org.jgraph.graph">DefaultGraphCellEditor.DefaultTextField</A></B></CODE>
117
118 <BR>
119 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TextField used when no editor is supplied.</TD>
120 </TR>
121 <TR BGCOLOR="white" CLASS="TableRowColor">
122 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
123 <CODE>&nbsp;class</CODE></FONT></TD>
124 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.EditorContainer.html" title="class in org.jgraph.graph">DefaultGraphCellEditor.EditorContainer</A></B></CODE>
125
126 <BR>
127 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Container responsible for placing the editingComponent.</TD>
128 </TR>
129 </TABLE>
130 &nbsp;
131 <!-- =========== FIELD SUMMARY =========== -->
132
133 <A NAME="field_summary"><!-- --></A>
134 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
135 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
136 <TD COLSPAN=2><FONT SIZE="+2">
137 <B>Field Summary</B></FONT></TD>
138 </TR>
139 <TR BGCOLOR="white" CLASS="TableRowColor">
140 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html" title="class or interface in java.awt">Color</A></CODE></FONT></TD>
142 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#borderSelectionColor">borderSelectionColor</A></B></CODE>
143
144 <BR>
145 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;True if the border selection color should be drawn.</TD>
146 </TR>
147 <TR BGCOLOR="white" CLASS="TableRowColor">
148 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149 <CODE>protected &nbsp;boolean</CODE></FONT></TD>
150 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#canEdit">canEdit</A></B></CODE>
151
152 <BR>
153 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Internal Note, maybe isCellEditable return true.</TD>
154 </TR>
155 <TR BGCOLOR="white" CLASS="TableRowColor">
156 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A></CODE></FONT></TD>
158 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#editingComponent">editingComponent</A></B></CODE>
159
160 <BR>
161 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Component used in editing, obtained from the editingContainer.</TD>
162 </TR>
163 <TR BGCOLOR="white" CLASS="TableRowColor">
164 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Container.html" title="class or interface in java.awt">Container</A></CODE></FONT></TD>
166 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#editingContainer">editingContainer</A></B></CODE>
167
168 <BR>
169 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Editing container, will contain the editorComponent.</TD>
170 </TR>
171 <TR BGCOLOR="white" CLASS="TableRowColor">
172 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/Icon.html" title="class or interface in javax.swing">Icon</A></CODE></FONT></TD>
174 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#editingIcon">editingIcon</A></B></CODE>
175
176 <BR>
177 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Icon to use when editing.</TD>
178 </TR>
179 <TR BGCOLOR="white" CLASS="TableRowColor">
180 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
182 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#font">font</A></B></CODE>
183
184 <BR>
185 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Font to paint with, null indicates font of renderer is to be used.</TD>
186 </TR>
187 <TR BGCOLOR="white" CLASS="TableRowColor">
188 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189 <CODE>protected &nbsp;<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A></CODE></FONT></TD>
190 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#graph">graph</A></B></CODE>
191
192 <BR>
193 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JTree instance listening too.</TD>
194 </TR>
195 <TR BGCOLOR="white" CLASS="TableRowColor">
196 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
197 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
198 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#lastCell">lastCell</A></B></CODE>
199
200 <BR>
201 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;last path that was selected.</TD>
202 </TR>
203 <TR BGCOLOR="white" CLASS="TableRowColor">
204 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205 <CODE>protected &nbsp;int</CODE></FONT></TD>
206 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#offsetX">offsetX</A></B></CODE>
207
208 <BR>
209 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Used in editing.</TD>
210 </TR>
211 <TR BGCOLOR="white" CLASS="TableRowColor">
212 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
213 <CODE>protected &nbsp;int</CODE></FONT></TD>
214 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#offsetY">offsetY</A></B></CODE>
215
216 <BR>
217 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
218 </TR>
219 <TR BGCOLOR="white" CLASS="TableRowColor">
220 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
221 <CODE>protected &nbsp;<A HREF="../../../org/jgraph/graph/GraphCellEditor.html" title="interface in org.jgraph.graph">GraphCellEditor</A></CODE></FONT></TD>
222 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#realEditor">realEditor</A></B></CODE>
223
224 <BR>
225 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Editor handling the editing.</TD>
226 </TR>
227 </TABLE>
228 &nbsp;
229 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
230
231 <A NAME="constructor_summary"><!-- --></A>
232 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
233 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
234 <TD COLSPAN=2><FONT SIZE="+2">
235 <B>Constructor Summary</B></FONT></TD>
236 </TR>
237 <TR BGCOLOR="white" CLASS="TableRowColor">
238 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#DefaultGraphCellEditor()">DefaultGraphCellEditor</A></B>()</CODE>
239
240 <BR>
241 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a DefaultTreeCellEditor object for a JGraph using the
242 specified renderer and a default editor.</TD>
243 </TR>
244 <TR BGCOLOR="white" CLASS="TableRowColor">
245 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#DefaultGraphCellEditor(org.jgraph.graph.GraphCellEditor)">DefaultGraphCellEditor</A></B>(<A HREF="../../../org/jgraph/graph/GraphCellEditor.html" title="interface in org.jgraph.graph">GraphCellEditor</A>&nbsp;editor)</CODE>
246
247 <BR>
248 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a DefaultTreeCellEditor object for a JTree using the
249 specified renderer and the specified editor.</TD>
250 </TR>
251 </TABLE>
252 &nbsp;
253 <!-- ========== METHOD SUMMARY =========== -->
254
255 <A NAME="method_summary"><!-- --></A>
256 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
257 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
258 <TD COLSPAN=2><FONT SIZE="+2">
259 <B>Method Summary</B></FONT></TD>
260 </TR>
261 <TR BGCOLOR="white" CLASS="TableRowColor">
262 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
263 <CODE>&nbsp;void</CODE></FONT></TD>
264 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#actionPerformed(java.awt.event.ActionEvent)">actionPerformed</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/event/ActionEvent.html" title="class or interface in java.awt.event">ActionEvent</A>&nbsp;e)</CODE>
265
266 <BR>
267 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Messaged when the timer fires, this will start the editing
268 session.</TD>
269 </TR>
270 <TR BGCOLOR="white" CLASS="TableRowColor">
271 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
272 <CODE>&nbsp;void</CODE></FONT></TD>
273 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#addCellEditorListener(javax.swing.event.CellEditorListener)">addCellEditorListener</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/event/CellEditorListener.html" title="class or interface in javax.swing.event">CellEditorListener</A>&nbsp;l)</CODE>
274
275 <BR>
276 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds the CellEditorListener.</TD>
277 </TR>
278 <TR BGCOLOR="white" CLASS="TableRowColor">
279 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
280 <CODE>&nbsp;void</CODE></FONT></TD>
281 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#cancelCellEditing()">cancelCellEditing</A></B>()</CODE>
282
283 <BR>
284 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Messages cancelCellEditing to the realEditor and removes it from this
285 instance.</TD>
286 </TR>
287 <TR BGCOLOR="white" CLASS="TableRowColor">
288 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
289 <CODE>protected &nbsp;boolean</CODE></FONT></TD>
290 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#canEditImmediately(java.util.EventObject)">canEditImmediately</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventObject.html" title="class or interface in java.util">EventObject</A>&nbsp;event)</CODE>
291
292 <BR>
293 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if <code>event</code> is null, or it is a MouseEvent
294 with a click count > 2 and inHitRegion returns true.</TD>
295 </TR>
296 <TR BGCOLOR="white" CLASS="TableRowColor">
297 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
298 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Container.html" title="class or interface in java.awt">Container</A></CODE></FONT></TD>
299 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#createContainer()">createContainer</A></B>()</CODE>
300
301 <BR>
302 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates the container to manage placement of editingComponent.</TD>
303 </TR>
304 <TR BGCOLOR="white" CLASS="TableRowColor">
305 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
306 <CODE>protected &nbsp;<A HREF="../../../org/jgraph/graph/GraphCellEditor.html" title="interface in org.jgraph.graph">GraphCellEditor</A></CODE></FONT></TD>
307 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#createGraphCellEditor()">createGraphCellEditor</A></B>()</CODE>
308
309 <BR>
310 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is invoked if a TreeCellEditor is not supplied in the constructor.</TD>
311 </TR>
312 <TR BGCOLOR="white" CLASS="TableRowColor">
313 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
314 <CODE>protected &nbsp;void</CODE></FONT></TD>
315 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#determineOffset(org.jgraph.JGraph, java.lang.Object, boolean)">determineOffset</A></B>(<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A>&nbsp;graph,
316 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;value,
317 boolean&nbsp;isSelected)</CODE>
318
319 <BR>
320 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
321 </TR>
322 <TR BGCOLOR="white" CLASS="TableRowColor">
323 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
324 <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html" title="class or interface in java.awt">Color</A></CODE></FONT></TD>
325 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#getBorderSelectionColor()">getBorderSelectionColor</A></B>()</CODE>
326
327 <BR>
328 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the color the border is drawn.</TD>
329 </TR>
330 <TR BGCOLOR="white" CLASS="TableRowColor">
331 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
332 <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
333 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#getCellEditorValue()">getCellEditorValue</A></B>()</CODE>
334
335 <BR>
336 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value currently being edited.</TD>
337 </TR>
338 <TR BGCOLOR="white" CLASS="TableRowColor">
339 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
340 <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
341 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#getFont()">getFont</A></B>()</CODE>
342
343 <BR>
344 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the font used for editing.</TD>
345 </TR>
346 <TR BGCOLOR="white" CLASS="TableRowColor">
347 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
348 <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A></CODE></FONT></TD>
349 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#getGraphCellEditorComponent(org.jgraph.JGraph, java.lang.Object, boolean)">getGraphCellEditorComponent</A></B>(<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A>&nbsp;graph,
350 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell,
351 boolean&nbsp;isSelected)</CODE>
352
353 <BR>
354 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configures the editor.</TD>
355 </TR>
356 <TR BGCOLOR="white" CLASS="TableRowColor">
357 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
358 <CODE>protected &nbsp;boolean</CODE></FONT></TD>
359 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#inHitRegion(double, double)">inHitRegion</A></B>(double&nbsp;x,
360 double&nbsp;y)</CODE>
361
362 <BR>
363 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Should return true if the passed in location is a valid mouse location
364 to start editing from.</TD>
365 </TR>
366 <TR BGCOLOR="white" CLASS="TableRowColor">
367 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
368 <CODE>&nbsp;boolean</CODE></FONT></TD>
369 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#isCellEditable(java.util.EventObject)">isCellEditable</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventObject.html" title="class or interface in java.util">EventObject</A>&nbsp;event)</CODE>
370
371 <BR>
372 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If the realEditor returns true to this message, prepareForEditing
373 is messaged and true is returned.</TD>
374 </TR>
375 <TR BGCOLOR="white" CLASS="TableRowColor">
376 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
377 <CODE>protected &nbsp;void</CODE></FONT></TD>
378 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#prepareForEditing()">prepareForEditing</A></B>()</CODE>
379
380 <BR>
381 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invoked just before editing is to start.</TD>
382 </TR>
383 <TR BGCOLOR="white" CLASS="TableRowColor">
384 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
385 <CODE>&nbsp;void</CODE></FONT></TD>
386 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#removeCellEditorListener(javax.swing.event.CellEditorListener)">removeCellEditorListener</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/event/CellEditorListener.html" title="class or interface in javax.swing.event">CellEditorListener</A>&nbsp;l)</CODE>
387
388 <BR>
389 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the previously added CellEditorListener l.</TD>
390 </TR>
391 <TR BGCOLOR="white" CLASS="TableRowColor">
392 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
393 <CODE>&nbsp;void</CODE></FONT></TD>
394 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#setBorderSelectionColor(java.awt.Color)">setBorderSelectionColor</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html" title="class or interface in java.awt">Color</A>&nbsp;newColor)</CODE>
395
396 <BR>
397 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the color to use for the border.</TD>
398 </TR>
399 <TR BGCOLOR="white" CLASS="TableRowColor">
400 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
401 <CODE>&nbsp;void</CODE></FONT></TD>
402 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#setFont(java.awt.Font)">setFont</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A>&nbsp;font)</CODE>
403
404 <BR>
405 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the font to edit with.</TD>
406 </TR>
407 <TR BGCOLOR="white" CLASS="TableRowColor">
408 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
409 <CODE>protected &nbsp;void</CODE></FONT></TD>
410 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#setGraph(org.jgraph.JGraph)">setGraph</A></B>(<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A>&nbsp;newGraph)</CODE>
411
412 <BR>
413 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the tree currently editing for.</TD>
414 </TR>
415 <TR BGCOLOR="white" CLASS="TableRowColor">
416 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
417 <CODE>&nbsp;boolean</CODE></FONT></TD>
418 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#shouldSelectCell(java.util.EventObject)">shouldSelectCell</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventObject.html" title="class or interface in java.util">EventObject</A>&nbsp;event)</CODE>
419
420 <BR>
421 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Messages the realEditor for the return value.</TD>
422 </TR>
423 <TR BGCOLOR="white" CLASS="TableRowColor">
424 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
425 <CODE>protected &nbsp;boolean</CODE></FONT></TD>
426 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#shouldStartEditingTimer(java.util.EventObject)">shouldStartEditingTimer</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventObject.html" title="class or interface in java.util">EventObject</A>&nbsp;event)</CODE>
427
428 <BR>
429 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if <code>event</code> is a MouseEvent and the click
430 count is 1.</TD>
431 </TR>
432 <TR BGCOLOR="white" CLASS="TableRowColor">
433 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
434 <CODE>&nbsp;boolean</CODE></FONT></TD>
435 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#stopCellEditing()">stopCellEditing</A></B>()</CODE>
436
437 <BR>
438 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If the realEditor will allow editing to stop, the realEditor is
439 removed and true is returned, otherwise false is returned.</TD>
440 </TR>
441 <TR BGCOLOR="white" CLASS="TableRowColor">
442 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
443 <CODE>&nbsp;void</CODE></FONT></TD>
444 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#valueChanged(org.jgraph.event.GraphSelectionEvent)">valueChanged</A></B>(<A HREF="../../../org/jgraph/event/GraphSelectionEvent.html" title="class in org.jgraph.event">GraphSelectionEvent</A>&nbsp;e)</CODE>
445
446 <BR>
447 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets lastPath.</TD>
448 </TR>
449 </TABLE>
450 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
451 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
452 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
453 <TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD>
454 </TR>
455 <TR BGCOLOR="white" CLASS="TableRowColor">
456 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
457 </TR>
458 </TABLE>
459 &nbsp;
460 <P>
461
462 <!-- ============ FIELD DETAIL =========== -->
463
464 <A NAME="field_detail"><!-- --></A>
465 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
466 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
467 <TD COLSPAN=1><FONT SIZE="+2">
468 <B>Field Detail</B></FONT></TD>
469 </TR>
470 </TABLE>
471
472 <A NAME="realEditor"><!-- --></A><H3>
473 realEditor</H3>
474 <PRE>
475 protected <A HREF="../../../org/jgraph/graph/GraphCellEditor.html" title="interface in org.jgraph.graph">GraphCellEditor</A> <B>realEditor</B></PRE>
476 <DL>
477 <DD>Editor handling the editing.
478 <P>
479 <DL>
480 </DL>
481 </DL>
482 <HR>
483
484 <A NAME="editingContainer"><!-- --></A><H3>
485 editingContainer</H3>
486 <PRE>
487 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Container.html" title="class or interface in java.awt">Container</A> <B>editingContainer</B></PRE>
488 <DL>
489 <DD>Editing container, will contain the editorComponent.
490 <P>
491 <DL>
492 </DL>
493 </DL>
494 <HR>
495
496 <A NAME="editingComponent"><!-- --></A><H3>
497 editingComponent</H3>
498 <PRE>
499 protected transient <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A> <B>editingComponent</B></PRE>
500 <DL>
501 <DD>Component used in editing, obtained from the editingContainer.
502 <P>
503 <DL>
504 </DL>
505 </DL>
506 <HR>
507
508 <A NAME="canEdit"><!-- --></A><H3>
509 canEdit</H3>
510 <PRE>
511 protected boolean <B>canEdit</B></PRE>
512 <DL>
513 <DD>Internal Note, maybe isCellEditable return true.
514 This is set in configure based on the path being edited and the
515 selected selected path.
516 <P>
517 <DL>
518 </DL>
519 </DL>
520 <HR>
521
522 <A NAME="offsetX"><!-- --></A><H3>
523 offsetX</H3>
524 <PRE>
525 protected transient int <B>offsetX</B></PRE>
526 <DL>
527 <DD>Used in editing. Indicates position to place editingComponent.
528 <P>
529 <DL>
530 </DL>
531 </DL>
532 <HR>
533
534 <A NAME="offsetY"><!-- --></A><H3>
535 offsetY</H3>
536 <PRE>
537 protected transient int <B>offsetY</B></PRE>
538 <DL>
539 <DL>
540 </DL>
541 </DL>
542 <HR>
543
544 <A NAME="graph"><!-- --></A><H3>
545 graph</H3>
546 <PRE>
547 protected transient <A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A> <B>graph</B></PRE>
548 <DL>
549 <DD>JTree instance listening too.
550 <P>
551 <DL>
552 </DL>
553 </DL>
554 <HR>
555
556 <A NAME="lastCell"><!-- --></A><H3>
557 lastCell</H3>
558 <PRE>
559 protected transient <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>lastCell</B></PRE>
560 <DL>
561 <DD>last path that was selected.
562 <P>
563 <DL>
564 </DL>
565 </DL>
566 <HR>
567
568 <A NAME="borderSelectionColor"><!-- --></A><H3>
569 borderSelectionColor</H3>
570 <PRE>
571 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html" title="class or interface in java.awt">Color</A> <B>borderSelectionColor</B></PRE>
572 <DL>
573 <DD>True if the border selection color should be drawn.
574 <P>
575 <DL>
576 </DL>
577 </DL>
578 <HR>
579
580 <A NAME="editingIcon"><!-- --></A><H3>
581 editingIcon</H3>
582 <PRE>
583 protected transient <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/Icon.html" title="class or interface in javax.swing">Icon</A> <B>editingIcon</B></PRE>
584 <DL>
585 <DD>Icon to use when editing.
586 <P>
587 <DL>
588 </DL>
589 </DL>
590 <HR>
591
592 <A NAME="font"><!-- --></A><H3>
593 font</H3>
594 <PRE>
595 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>font</B></PRE>
596 <DL>
597 <DD>Font to paint with, null indicates font of renderer is to be used.
598 <P>
599 <DL>
600 </DL>
601 </DL>
602
603 <!-- ========= CONSTRUCTOR DETAIL ======== -->
604
605 <A NAME="constructor_detail"><!-- --></A>
606 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
607 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
608 <TD COLSPAN=1><FONT SIZE="+2">
609 <B>Constructor Detail</B></FONT></TD>
610 </TR>
611 </TABLE>
612
613 <A NAME="DefaultGraphCellEditor()"><!-- --></A><H3>
614 DefaultGraphCellEditor</H3>
615 <PRE>
616 public <B>DefaultGraphCellEditor</B>()</PRE>
617 <DL>
618 <DD>Constructs a DefaultTreeCellEditor object for a JGraph using the
619 specified renderer and a default editor. (Use this constructor
620 for normal editing.)
621 <P>
622 </DL>
623 <HR>
624
625 <A NAME="DefaultGraphCellEditor(org.jgraph.graph.GraphCellEditor)"><!-- --></A><H3>
626 DefaultGraphCellEditor</H3>
627 <PRE>
628 public <B>DefaultGraphCellEditor</B>(<A HREF="../../../org/jgraph/graph/GraphCellEditor.html" title="interface in org.jgraph.graph">GraphCellEditor</A>&nbsp;editor)</PRE>
629 <DL>
630 <DD>Constructs a DefaultTreeCellEditor object for a JTree using the
631 specified renderer and the specified editor. (Use this constructor
632 for specialized editing.)
633 <P>
634 <DT><B>Parameters:</B><DD><CODE>editor</CODE> - a TreeCellEditor object</DL>
635
636 <!-- ============ METHOD DETAIL ========== -->
637
638 <A NAME="method_detail"><!-- --></A>
639 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
640 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
641 <TD COLSPAN=1><FONT SIZE="+2">
642 <B>Method Detail</B></FONT></TD>
643 </TR>
644 </TABLE>
645
646 <A NAME="setBorderSelectionColor(java.awt.Color)"><!-- --></A><H3>
647 setBorderSelectionColor</H3>
648 <PRE>
649 public void <B>setBorderSelectionColor</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html" title="class or interface in java.awt">Color</A>&nbsp;newColor)</PRE>
650 <DL>
651 <DD>Sets the color to use for the border.
652 <P>
653 <DD><DL>
654 </DL>
655 </DD>
656 <DD><DL>
657 </DL>
658 </DD>
659 </DL>
660 <HR>
661
662 <A NAME="getBorderSelectionColor()"><!-- --></A><H3>
663 getBorderSelectionColor</H3>
664 <PRE>
665 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html" title="class or interface in java.awt">Color</A> <B>getBorderSelectionColor</B>()</PRE>
666 <DL>
667 <DD>Returns the color the border is drawn.
668 <P>
669 <DD><DL>
670 </DL>
671 </DD>
672 <DD><DL>
673 </DL>
674 </DD>
675 </DL>
676 <HR>
677
678 <A NAME="setFont(java.awt.Font)"><!-- --></A><H3>
679 setFont</H3>
680 <PRE>
681 public void <B>setFont</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A>&nbsp;font)</PRE>
682 <DL>
683 <DD>Sets the font to edit with. <code>null</code> indicates the renderers
684 font should be used. This will NOT override any font you have set in
685 the editor the receiver was instantied with. If null for an editor was
686 passed in a default editor will be created that will pick up this font.
687 <P>
688 <DD><DL>
689 </DL>
690 </DD>
691 <DD><DL>
692 <DT><B>Parameters:</B><DD><CODE>font</CODE> - the editing Font<DT><B>See Also:</B><DD><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#getFont()"><CODE>getFont()</CODE></A></DL>
693 </DD>
694 </DL>
695 <HR>
696
697 <A NAME="getFont()"><!-- --></A><H3>
698 getFont</H3>
699 <PRE>
700 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>getFont</B>()</PRE>
701 <DL>
702 <DD>Gets the font used for editing.
703 <P>
704 <DD><DL>
705 </DL>
706 </DD>
707 <DD><DL>
708
709 <DT><B>Returns:</B><DD>the editing Font<DT><B>See Also:</B><DD><A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.html#setFont(java.awt.Font)"><CODE>setFont(java.awt.Font)</CODE></A></DL>
710 </DD>
711 </DL>
712 <HR>
713
714 <A NAME="getGraphCellEditorComponent(org.jgraph.JGraph, java.lang.Object, boolean)"><!-- --></A><H3>
715 getGraphCellEditorComponent</H3>
716 <PRE>
717 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A> <B>getGraphCellEditorComponent</B>(<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A>&nbsp;graph,
718 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell,
719 boolean&nbsp;isSelected)</PRE>
720 <DL>
721 <DD>Configures the editor. Passed onto the realEditor.
722 <P>
723 <DD><DL>
724 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphCellEditor.html#getGraphCellEditorComponent(org.jgraph.JGraph, java.lang.Object, boolean)">getGraphCellEditorComponent</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphCellEditor.html" title="interface in org.jgraph.graph">GraphCellEditor</A></CODE></DL>
725 </DD>
726 <DD><DL>
727 <DT><B>Parameters:</B><DD><CODE>graph</CODE> - the JGraph that is asking the editor to edit
728 This parameter can be null.<DD><CODE>cell</CODE> - the value of the cell to be edited.<DD><CODE>isSelected</CODE> - true if the cell is to be rendered with
729 selection highlighting
730 <DT><B>Returns:</B><DD>the component for editing</DL>
731 </DD>
732 </DL>
733 <HR>
734
735 <A NAME="getCellEditorValue()"><!-- --></A><H3>
736 getCellEditorValue</H3>
737 <PRE>
738 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getCellEditorValue</B>()</PRE>
739 <DL>
740 <DD>Returns the value currently being edited.
741 <P>
742 <DD><DL>
743 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/CellEditor.html#getCellEditorValue()" title="class or interface in javax.swing">getCellEditorValue</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/CellEditor.html" title="class or interface in javax.swing">CellEditor</A></CODE></DL>
744 </DD>
745 <DD><DL>
746 </DL>
747 </DD>
748 </DL>
749 <HR>
750
751 <A NAME="isCellEditable(java.util.EventObject)"><!-- --></A><H3>
752 isCellEditable</H3>
753 <PRE>
754 public boolean <B>isCellEditable</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventObject.html" title="class or interface in java.util">EventObject</A>&nbsp;event)</PRE>
755 <DL>
756 <DD>If the realEditor returns true to this message, prepareForEditing
757 is messaged and true is returned.
758 <P>
759 <DD><DL>
760 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/CellEditor.html#isCellEditable(java.util.EventObject)" title="class or interface in javax.swing">isCellEditable</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/CellEditor.html" title="class or interface in javax.swing">CellEditor</A></CODE></DL>
761 </DD>
762 <DD><DL>
763 </DL>
764 </DD>
765 </DL>
766 <HR>
767
768 <A NAME="shouldSelectCell(java.util.EventObject)"><!-- --></A><H3>
769 shouldSelectCell</H3>
770 <PRE>
771 public boolean <B>shouldSelectCell</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventObject.html" title="class or interface in java.util">EventObject</A>&nbsp;event)</PRE>
772 <DL>
773 <DD>Messages the realEditor for the return value.
774 <P>
775 <DD><DL>
776 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/CellEditor.html#shouldSelectCell(java.util.EventObject)" title="class or interface in javax.swing">shouldSelectCell</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/CellEditor.html" title="class or interface in javax.swing">CellEditor</A></CODE></DL>
777 </DD>
778 <DD><DL>
779 </DL>
780 </DD>
781 </DL>
782 <HR>
783
784 <A NAME="stopCellEditing()"><!-- --></A><H3>
785 stopCellEditing</H3>
786 <PRE>
787 public boolean <B>stopCellEditing</B>()</PRE>
788 <DL>
789 <DD>If the realEditor will allow editing to stop, the realEditor is
790 removed and true is returned, otherwise false is returned.
791 <P>
792 <DD><DL>
793 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/CellEditor.html#stopCellEditing()" title="class or interface in javax.swing">stopCellEditing</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/CellEditor.html" title="class or interface in javax.swing">CellEditor</A></CODE></DL>
794 </DD>
795 <DD><DL>
796 </DL>
797 </DD>
798 </DL>
799 <HR>
800
801 <A NAME="cancelCellEditing()"><!-- --></A><H3>
802 cancelCellEditing</H3>
803 <PRE>
804 public void <B>cancelCellEditing</B>()</PRE>
805 <DL>
806 <DD>Messages cancelCellEditing to the realEditor and removes it from this
807 instance.
808 <P>
809 <DD><DL>
810 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/CellEditor.html#cancelCellEditing()" title="class or interface in javax.swing">cancelCellEditing</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/CellEditor.html" title="class or interface in javax.swing">CellEditor</A></CODE></DL>
811 </DD>
812 <DD><DL>
813 </DL>
814 </DD>
815 </DL>
816 <HR>
817
818 <A NAME="addCellEditorListener(javax.swing.event.CellEditorListener)"><!-- --></A><H3>
819 addCellEditorListener</H3>
820 <PRE>
821 public void <B>addCellEditorListener</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/event/CellEditorListener.html" title="class or interface in javax.swing.event">CellEditorListener</A>&nbsp;l)</PRE>
822 <DL>
823 <DD>Adds the CellEditorListener.
824 <P>
825 <DD><DL>
826 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/CellEditor.html#addCellEditorListener(javax.swing.event.CellEditorListener)" title="class or interface in javax.swing">addCellEditorListener</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/CellEditor.html" title="class or interface in javax.swing">CellEditor</A></CODE></DL>
827 </DD>
828 <DD><DL>
829 </DL>
830 </DD>
831 </DL>
832 <HR>
833
834 <A NAME="removeCellEditorListener(javax.swing.event.CellEditorListener)"><!-- --></A><H3>
835 removeCellEditorListener</H3>
836 <PRE>
837 public void <B>removeCellEditorListener</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/event/CellEditorListener.html" title="class or interface in javax.swing.event">CellEditorListener</A>&nbsp;l)</PRE>
838 <DL>
839 <DD>Removes the previously added CellEditorListener l.
840 <P>
841 <DD><DL>
842 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/CellEditor.html#removeCellEditorListener(javax.swing.event.CellEditorListener)" title="class or interface in javax.swing">removeCellEditorListener</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/CellEditor.html" title="class or interface in javax.swing">CellEditor</A></CODE></DL>
843 </DD>
844 <DD><DL>
845 </DL>
846 </DD>
847 </DL>
848 <HR>
849
850 <A NAME="valueChanged(org.jgraph.event.GraphSelectionEvent)"><!-- --></A><H3>
851 valueChanged</H3>
852 <PRE>
853 public void <B>valueChanged</B>(<A HREF="../../../org/jgraph/event/GraphSelectionEvent.html" title="class in org.jgraph.event">GraphSelectionEvent</A>&nbsp;e)</PRE>
854 <DL>
855 <DD>Resets lastPath.
856 <P>
857 <DD><DL>
858 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/event/GraphSelectionListener.html#valueChanged(org.jgraph.event.GraphSelectionEvent)">valueChanged</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/event/GraphSelectionListener.html" title="interface in org.jgraph.event">GraphSelectionListener</A></CODE></DL>
859 </DD>
860 <DD><DL>
861 <DT><B>Parameters:</B><DD><CODE>e</CODE> - the event that characterizes the change.</DL>
862 </DD>
863 </DL>
864 <HR>
865
866 <A NAME="actionPerformed(java.awt.event.ActionEvent)"><!-- --></A><H3>
867 actionPerformed</H3>
868 <PRE>
869 public void <B>actionPerformed</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/event/ActionEvent.html" title="class or interface in java.awt.event">ActionEvent</A>&nbsp;e)</PRE>
870 <DL>
871 <DD>Messaged when the timer fires, this will start the editing
872 session.
873 <P>
874 <DD><DL>
875 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/event/ActionListener.html#actionPerformed(java.awt.event.ActionEvent)" title="class or interface in java.awt.event">actionPerformed</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/event/ActionListener.html" title="class or interface in java.awt.event">ActionListener</A></CODE></DL>
876 </DD>
877 <DD><DL>
878 </DL>
879 </DD>
880 </DL>
881 <HR>
882
883 <A NAME="setGraph(org.jgraph.JGraph)"><!-- --></A><H3>
884 setGraph</H3>
885 <PRE>
886 protected void <B>setGraph</B>(<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A>&nbsp;newGraph)</PRE>
887 <DL>
888 <DD>Sets the tree currently editing for. This is needed to add
889 a selection listener.
890 <P>
891 <DD><DL>
892 </DL>
893 </DD>
894 <DD><DL>
895 </DL>
896 </DD>
897 </DL>
898 <HR>
899
900 <A NAME="shouldStartEditingTimer(java.util.EventObject)"><!-- --></A><H3>
901 shouldStartEditingTimer</H3>
902 <PRE>
903 protected boolean <B>shouldStartEditingTimer</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventObject.html" title="class or interface in java.util">EventObject</A>&nbsp;event)</PRE>
904 <DL>
905 <DD>Returns true if <code>event</code> is a MouseEvent and the click
906 count is 1.
907 <P>
908 <DD><DL>
909 </DL>
910 </DD>
911 <DD><DL>
912 </DL>
913 </DD>
914 </DL>
915 <HR>
916
917 <A NAME="canEditImmediately(java.util.EventObject)"><!-- --></A><H3>
918 canEditImmediately</H3>
919 <PRE>
920 protected boolean <B>canEditImmediately</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventObject.html" title="class or interface in java.util">EventObject</A>&nbsp;event)</PRE>
921 <DL>
922 <DD>Returns true if <code>event</code> is null, or it is a MouseEvent
923 with a click count > 2 and inHitRegion returns true.
924 <P>
925 <DD><DL>
926 </DL>
927 </DD>
928 <DD><DL>
929 </DL>
930 </DD>
931 </DL>
932 <HR>
933
934 <A NAME="inHitRegion(double, double)"><!-- --></A><H3>
935 inHitRegion</H3>
936 <PRE>
937 protected boolean <B>inHitRegion</B>(double&nbsp;x,
938 double&nbsp;y)</PRE>
939 <DL>
940 <DD>Should return true if the passed in location is a valid mouse location
941 to start editing from. This is implemented to return false if
942 <code>x</code> is <= the width of the icon and icon gap displayed
943 by the renderer. In other words this returns true if the user
944 clicks over the text part displayed by the renderer, and false
945 otherwise.
946 <P>
947 <DD><DL>
948 </DL>
949 </DD>
950 <DD><DL>
951 </DL>
952 </DD>
953 </DL>
954 <HR>
955
956 <A NAME="determineOffset(org.jgraph.JGraph, java.lang.Object, boolean)"><!-- --></A><H3>
957 determineOffset</H3>
958 <PRE>
959 protected void <B>determineOffset</B>(<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A>&nbsp;graph,
960 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;value,
961 boolean&nbsp;isSelected)</PRE>
962 <DL>
963 <DD><DL>
964 </DL>
965 </DD>
966 <DD><DL>
967 </DL>
968 </DD>
969 </DL>
970 <HR>
971
972 <A NAME="prepareForEditing()"><!-- --></A><H3>
973 prepareForEditing</H3>
974 <PRE>
975 protected void <B>prepareForEditing</B>()</PRE>
976 <DL>
977 <DD>Invoked just before editing is to start. Will add the
978 <code>editingComponent</code> to the
979 <code>editingContainer</code>.
980 <P>
981 <DD><DL>
982 </DL>
983 </DD>
984 <DD><DL>
985 </DL>
986 </DD>
987 </DL>
988 <HR>
989
990 <A NAME="createContainer()"><!-- --></A><H3>
991 createContainer</H3>
992 <PRE>
993 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Container.html" title="class or interface in java.awt">Container</A> <B>createContainer</B>()</PRE>
994 <DL>
995 <DD>Creates the container to manage placement of editingComponent.
996 <P>
997 <DD><DL>
998 </DL>
999 </DD>
1000 <DD><DL>
1001 </DL>
1002 </DD>
1003 </DL>
1004 <HR>
1005
1006 <A NAME="createGraphCellEditor()"><!-- --></A><H3>
1007 createGraphCellEditor</H3>
1008 <PRE>
1009 protected <A HREF="../../../org/jgraph/graph/GraphCellEditor.html" title="interface in org.jgraph.graph">GraphCellEditor</A> <B>createGraphCellEditor</B>()</PRE>
1010 <DL>
1011 <DD>This is invoked if a TreeCellEditor is not supplied in the constructor.
1012 It returns a TextField editor.
1013 <P>
1014 <DD><DL>
1015 </DL>
1016 </DD>
1017 <DD><DL>
1018 </DL>
1019 </DD>
1020 </DL>
1021 <!-- ========= END OF CLASS DATA ========= -->
1022 <HR>
1023
1024
1025 <!-- ======= START OF BOTTOM NAVBAR ====== -->
1026 <A NAME="navbar_bottom"><!-- --></A>
1027 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
1028 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
1029 <TR>
1030 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
1031 <A NAME="navbar_bottom_firstrow"><!-- --></A>
1032 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
1033 <TR ALIGN="center" VALIGN="top">
1034 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
1035 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
1036 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
1037 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DefaultGraphCellEditor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
1038 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
1039 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
1040 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
1041 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
1042 </TR>
1043 </TABLE>
1044 </TD>
1045 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
1046 <p><b>JGraph</b><br>v5.10.1.4</p></EM>
1047 </TD>
1048 </TR>
1049
1050 <TR>
1051 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1052 &nbsp;<A HREF="../../../org/jgraph/graph/DefaultGraphCell.html" title="class in org.jgraph.graph"><B>PREV CLASS</B></A>&nbsp;
1053 &nbsp;<A HREF="../../../org/jgraph/graph/DefaultGraphCellEditor.DefaultTextField.html" title="class in org.jgraph.graph"><B>NEXT CLASS</B></A></FONT></TD>
1054 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1055 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
1056 &nbsp;<A HREF="DefaultGraphCellEditor.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
1057 &nbsp;<SCRIPT type="text/javascript">
1058 <!--
1059 if(window==top) {
1060 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
1061 }
1062 //-->
1063 </SCRIPT>
1064 <NOSCRIPT>
1065 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
1066 </NOSCRIPT>
1067
1068 </FONT></TD>
1069 </TR>
1070 <TR>
1071 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1072 SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
1073 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1074 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
1075 </TR>
1076 </TABLE>
1077 <A NAME="skip-navbar_bottom"></A>
1078 <!-- ======== END OF BOTTOM NAVBAR ======= -->
1079
1080 <HR>
1081 <font size=1>Copyright (C) 2001-2006 <a href="http://www.jgraph.com/"
1082 target="_blank">Gaudenz Alder</a>. All rights reserved.</font>
1083 </BODY>
1084 </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26