Package jadex.gpmn.editor.gui
Class SGuiHelper
- java.lang.Object
- 
- jadex.gpmn.editor.gui.SGuiHelper
 
- 
 public class SGuiHelper extends java.lang.ObjectHelper methods for the GUI.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected static classSGuiHelper.ModulateCompositeComposite for modulation.
 - 
Constructor SummaryConstructors Constructor Description SGuiHelper()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidapplyOrganicLayout(ModelContainer modelcontainer)Applies a circle layout to the model.static com.mxgraph.util.mxPointgetCenter(com.mxgraph.util.mxPoint[] points)Gets the center of the rectangle described by the two points.static com.mxgraph.util.mxPointgetCenter(com.mxgraph.util.mxPoint min, com.mxgraph.util.mxPoint max, com.mxgraph.util.mxPoint[] additional)Gets the center of the rectangle described by the two points.static javax.swing.AbstractButtongetSelectedButton(javax.swing.ButtonGroup group)Gets the selected button in a button group.static java.lang.StringgetText(javax.swing.text.Document doc)Text extraction from the Java "Document" class is braindead, throws non-RuntimeException: Bloat, bloat, bloat.static voidrefreshCellView(com.mxgraph.view.mxGraph graph, com.mxgraph.model.mxCell cell)Refreshes the view for a cell.
 
- 
- 
- 
Method Detail- 
getTextpublic static final java.lang.String getText(javax.swing.text.Document doc) Text extraction from the Java "Document" class is braindead, throws non-RuntimeException: Bloat, bloat, bloat.- Parameters:
- doc- The document.
- Returns:
- The extracted String.
 
 - 
refreshCellViewpublic static final void refreshCellView(com.mxgraph.view.mxGraph graph, com.mxgraph.model.mxCell cell)Refreshes the view for a cell.- Parameters:
- cell- The cell.
 
 - 
getCenterpublic static final com.mxgraph.util.mxPoint getCenter(com.mxgraph.util.mxPoint[] points) Gets the center of the rectangle described by the two points.- Parameters:
- points- Points to be included in the calculation.
- Returns:
- The center.
 
 - 
getCenterpublic static final com.mxgraph.util.mxPoint getCenter(com.mxgraph.util.mxPoint min, com.mxgraph.util.mxPoint max, com.mxgraph.util.mxPoint[] additional)Gets the center of the rectangle described by the two points.- Parameters:
- min- Minimum coordinates of the rectangle.
- max- Maximum coordinates of the rectangle.
- addition- Additional points to be included in the calculation.
- Returns:
- The center.
 
 - 
getSelectedButtonpublic static final javax.swing.AbstractButton getSelectedButton(javax.swing.ButtonGroup group) Gets the selected button in a button group.- Parameters:
- group- The button group.
- Returns:
- The selected button.
 
 - 
applyOrganicLayoutpublic static final void applyOrganicLayout(ModelContainer modelcontainer) Applies a circle layout to the model.- Parameters:
- modelcontainer- The model container.
 
 
- 
 
-