/** * Sets all pin properties at once. * @param name the pin name * @param glyphs the pin glyphs */ public void setProperties (String name, List<Image> glyphs) { setPinName (name); glyphsWidget.setGlyphs (glyphs); }
/** * Creates a connection widget with a specific router. * @param scene the scene * @param router the router */ public VMDConnectionWidget (Scene scene, Router router) { this (scene, VMDFactory.getOriginalScheme ()); if (router != null) setRouter (router); }
/** * Creates a pin widget. * @param scene the scene */ public VMDPinWidget (Scene scene) { this (scene, VMDFactory.getOriginalScheme ()); }
public void installUI (VMDNodeWidget widget) { widget.setBorder (VMDFactory.createVMDNodeBorder ()); widget.setOpaque (false); Widget header = widget.getHeader (); header.setBorder (BORDER_PIN); header.setBackground (COLOR_SELECTED); header.setOpaque (false); Widget minimize = widget.getMinimizeButton (); minimize.setBorder (BORDER_MINIMIZE); Widget pinsSeparator = widget.getPinsSeparator (); pinsSeparator.setForeground (BORDER_CATEGORY_BACKGROUND); }
public void installUI (VMDConnectionWidget widget) { widget.setSourceAnchorShape (AnchorShape.NONE); widget.setTargetAnchorShape (AnchorShape.TRIANGLE_FILLED); widget.setPaintControlPoints (true); }
public Widget createPinCategoryWidget (VMDNodeWidget widget, String categoryDisplayName) { return VMDFactory.getOriginalScheme ().createPinCategoryWidget (widget, categoryDisplayName); }
/** * 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 ()); }
/** * Sets pin glyphs. * @param glyphs the list of images */ public void setGlyphs (List<Image> glyphs) { glyphsWidget.setGlyphs (glyphs); }
/** * Called to notify about the change of the widget state. * @param previousState the previous state * @param state the new state */ protected void notifyStateChanged (ObjectState previousState, ObjectState state) { scheme.updateUI (this, previousState, state); }
/** * Creates a horizontally oriented anchor similar to VMDNodeWidget.createAnchorPin * @return the anchor */ public Anchor createAnchor () { if (anchor == null) anchor = new VMDNodeAnchor (this, false); return anchor; }
public void installUI (VMDConnectionWidget widget) { widget.setSourceAnchorShape (AnchorShape.NONE); widget.setTargetAnchorShape (AnchorShape.TRIANGLE_FILLED); widget.setPaintControlPoints (true); }
/** * Creates a connection widget with a specific router. * @param scene the scene * @param router the router */ public VMDConnectionWidget (Scene scene, Router router) { this (scene, VMDFactory.getOriginalScheme ()); if (router != null) setRouter (router); }
/** * Creates a node widget. * @param scene the scene */ public VMDNodeWidget (Scene scene) { this (scene, VMDFactory.getOriginalScheme ()); }
/** * Sets all pin properties at once. * @param name the pin name * @param glyphs the pin glyphs */ public void setProperties (String name, List<Image> glyphs) { setPinName (name); glyphsWidget.setGlyphs (glyphs); }
/** * Sets pin glyphs. * @param glyphs the list of images */ public void setGlyphs (List<Image> glyphs) { glyphsWidget.setGlyphs (glyphs); }
/** * Creates a pin widget. * @param scene the scene */ public VMDPinWidget (Scene scene) { this (scene, VMDFactory.getOriginalScheme ()); }
/** * Sets node glyphs. * @param glyphs the list of images */ public void setGlyphs (List<Image> glyphs) { glyphSetWidget.setGlyphs (glyphs); }
/** * Creates a VMD graph scene. */ public VMDGraphScene () { this (VMDFactory.getOriginalScheme ()); }
/** * Creates a node anchor. * @param widget the node widget where the anchor is attached to * @param vertical if true, then anchors are placed vertically; if false, then anchors are placed horizontally */ public VMDNodeAnchor (Widget widget, boolean vertical) { this (widget, vertical, VMDFactory.getOriginalScheme ()); }
/** * Creates a VMD graph scene. */ public VMDGraphScene () { this (VMDFactory.getOriginalScheme ()); }