public void actionPerformed(ActionEvent e) { stylesheet = coreseFrame.getDefaultStylesheet(); textPaneStyleGraph.setText(stylesheet); graph.addAttribute("ui.stylesheet", stylesheet); } };
public void actionPerformed(ActionEvent e) { stylesheet = coreseFrame.getDefaultStylesheet(); textPaneStyleGraph.setText(stylesheet); graph.addAttribute("ui.stylesheet", stylesheet); } };
public void actionPerformed(ActionEvent e) { String style = textPaneStyleGraph.getText(); JTextArea areaException = new JTextArea(); StyleSheet sh = new StyleSheet(); try { sh.parseFromString(style); areaException.setText(""); excepCatch = false; } catch (Exception e1) { areaException.setText(e1.getMessage()); areaException.setEditable(false); areaException.setForeground(Color.red); JOptionPane.showMessageDialog(null, areaException, "Error Syntax", JOptionPane.WARNING_MESSAGE); excepCatch = true; } /*catch (TokenMgrError e1) { areaException.setText(e1.getMessage()); areaException.setEditable(false); areaException.setForeground(Color.red); JOptionPane.showMessageDialog(null, areaException, "Error Syntax", JOptionPane.WARNING_MESSAGE); excepCatch = true; }*/ if (!excepCatch) { graph.addAttribute("ui.stylesheet", style); textPaneStyleGraph.setText(style); stylesheet = style; } } };
public void actionPerformed(ActionEvent e) { String style = textPaneStyleGraph.getText(); JTextArea areaException = new JTextArea(); StyleSheet sh = new StyleSheet(); try { sh.parseFromString(style); areaException.setText(""); excepCatch = false; } catch (Exception e1) { areaException.setText(e1.getMessage()); areaException.setEditable(false); areaException.setForeground(Color.red); JOptionPane.showMessageDialog(null, areaException, "Error Syntax", JOptionPane.WARNING_MESSAGE); excepCatch = true; } /*catch (TokenMgrError e1) { areaException.setText(e1.getMessage()); areaException.setEditable(false); areaException.setForeground(Color.red); JOptionPane.showMessageDialog(null, areaException, "Error Syntax", JOptionPane.WARNING_MESSAGE); excepCatch = true; }*/ if (!excepCatch) { graph.addAttribute("ui.stylesheet", style); textPaneStyleGraph.setText(style); stylesheet = style; } } };
void displayGraph(fr.inria.corese.core.Graph g, NSManager nsm) { graph = create(g, nsm); graph.addAttribute("ui.stylesheet", stylesheet); graph.addAttribute("ui.antialias"); textPaneStyleGraph.setText(stylesheet);
void displayGraph(fr.inria.edelweiss.kgraph.core.Graph g, NSManager nsm) { graph = create(g, nsm); graph.addAttribute("ui.stylesheet", stylesheet); graph.addAttribute("ui.antialias"); textPaneStyleGraph.setText(stylesheet);