/** * Creates a connection widget with a specific color scheme. * @param scene the scene * @param scheme the color scheme */ public VMDConnectionWidget (Scene scene, VMDColorScheme scheme) { super (scene); assert scheme != null; this.scheme = scheme; scheme.installUI (this); setState (ObjectState.createNormal ()); }
/** * Creates a connection widget with a specific color scheme. * @param scene the scene * @param scheme the color scheme */ public VMDConnectionWidget (Scene scene, VMDColorScheme scheme) { super (scene); assert scheme != null; this.scheme = scheme; scheme.installUI (this); setState (ObjectState.createNormal ()); }
/** * Creates a pin widget with a specific color scheme. * @param scene the scene * @param scheme the color scheme */ public VMDPinWidget (Scene scene, VMDColorScheme scheme) { super (scene); assert scheme != null; this.scheme = scheme; setLayout (LayoutFactory.createHorizontalFlowLayout (LayoutFactory.SerialAlignment.CENTER, 8)); addChild (nameWidget = new LabelWidget (scene)); addChild (glyphsWidget = new VMDGlyphSetWidget (scene)); scheme.installUI (this); notifyStateChanged (ObjectState.createNormal (), ObjectState.createNormal ()); }
/** * Creates a pin widget with a specific color scheme. * @param scene the scene * @param scheme the color scheme */ public VMDPinWidget (Scene scene, VMDColorScheme scheme) { super (scene); assert scheme != null; this.scheme = scheme; setLayout (LayoutFactory.createHorizontalFlowLayout (LayoutFactory.SerialAlignment.CENTER, 8)); addChild (nameWidget = new LabelWidget (scene)); addChild (glyphsWidget = new VMDGlyphSetWidget (scene)); scheme.installUI (this); notifyStateChanged (ObjectState.createNormal (), ObjectState.createNormal ()); }
stateModel.addListener (this); scheme.installUI (this); notifyStateChanged (ObjectState.createNormal (), ObjectState.createNormal ());
stateModel.addListener (this); scheme.installUI (this); notifyStateChanged (ObjectState.createNormal (), ObjectState.createNormal ());