175176177178179180181182183184185
mxGraph graph = graphComponent.getGraph(); boolean enabled = !graph.isGridEnabled(); graph.setGridEnabled(enabled); graphComponent.setGridVisible(enabled); graphComponent.repaint(); setSelected(enabled); } }); } }
22582259226022612262226322642265226622672268
{ graphComponent.setPageBackgroundColor(newColor); } // Forces a repaint of the component graphComponent.repaint(); } } } /**
364365366367368369370371372373374
if (e.getSource() instanceof mxGraphComponent) { mxGraphComponent graphComponent = (mxGraphComponent) e .getSource(); graphComponent.setGridStyle(style); graphComponent.repaint(); } } } /**
391392393394395396397398399400401
graphComponent.getGridColor()); if (newColor != null) { graphComponent.setGridColor(newColor); graphComponent.repaint(); } } } }
10951096109710981099110011011102110311041105
// Repaints the graph component if (e.getSource() instanceof mxGraphComponent) { mxGraphComponent graphComponent = (mxGraphComponent) e .getSource(); graphComponent.repaint(); } } } /**
10881089109010911092109310941095109610971098
169170171172173174175176177178179
358359360361362363364365366367368
385386387388389390391392393394395
22142215221622172218221922202221222222232224