Package engine.graphics.synthesis.texture

Examples of engine.graphics.synthesis.texture.Channel


  }

  private CreateMenuItem createMenuItem_CreateFilter(String name, Class<?> c, boolean genIcon, boolean replace) {
    CreateMenuItem ret;
    if (genIcon) {
      Channel chan = null;
      try {
        chan = (Channel) c.newInstance();
      } catch (InstantiationException e) {
        e.printStackTrace();
      } catch (IllegalAccessException e) {
View Full Code Here


    if (e.getSource().getClass() == CreateMenuItem.class) { // this was one menu item from the create new channel menu
      CreateMenuItem mi = (CreateMenuItem)e.getSource();

      try {
        if (!mi.isAReplaceCall) { // insert a new Node
          Channel chan = (Channel) mi.classType.newInstance();
          addTextureNode(new TextureGraphNode(chan), mousePosition.x - desktopX, mousePosition.y - desktopY);
          repaint();
        } else { // try to replace an existing node as good as possible
          TextureGraphNode node = graph.selectedNodes.get(0);
          if (node != null) {
View Full Code Here

    void loadPresets() {
      try {
        Scanner s = new Scanner(NTEPresetString);
        int numNodes = s.nextInt();
        for (int i = 0; i < numNodes; i++) {
          Channel c = Channel.loadChannel(s);
          if (c instanceof Pattern) {
            addPatternPreset((Pattern) c);
          } else {
            Logger.logError(this, "Preset file contained non-Patterns; ignoring them.");
          }
View Full Code Here

   
    scrollPaneContent.removeAll();
    node = n;
    if (n != null) {
      node.getChannel().addChannelChangeListener(this);
      Channel c = n.getChannel();
      Vector<AbstractParam> params = c.getParameters();
      int x = 8;
      int y = 8;
      JLabel title = new JLabel(" Type: " + c.getClass().getSimpleName());
      title.setBorder(BorderFactory.createEtchedBorder());
      title.setBounds(x, y, 240, 24);
      y += 30;
      scrollPaneContent.add(title);
View Full Code Here

TOP

Related Classes of engine.graphics.synthesis.texture.Channel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.