Examples of RelativeDockablePosition


Examples of com.vlsolutions.swing.docking.RelativeDockablePosition

      out.println("</Border>");
    }
  }
 
  private void xmlWriteBorderDockable(HiddenNode node, PrintWriter out) {
    RelativeDockablePosition position = node.position;
    SingleDockableNode child = node.node;
    boolean isCompound = child instanceof CompoundDockableNode;
    if (isCompound){
      out.println("<Dockable compound=\"true\">");
    } else {
      out.println("<Dockable>");
    }
    WSDockKey key = child.key;
    out.println("<Key dockName=\"" + key.getKey() + "\"/>");
    out.println("<RelativePosition x=\"" + position.getX()
    + "\" y=\"" + position.getY()
    + "\" w=\"" + position.getWidth()
    + "\" h=\"" + position.getHeight()
    + "\" />");
    if (isCompound){
      CompoundDockableNode d = (CompoundDockableNode)child;
      if (d.nestedNode != null){
        // compound panels cannont have more than one child (split/tab/single)
View Full Code Here

Examples of com.vlsolutions.swing.docking.RelativeDockablePosition

    Element hideElt = (Element)dockableElt.getElementsByTagName("RelativePosition").item(0);
    float x = Float.parseFloat(hideElt.getAttribute("x"));
    float y = Float.parseFloat(hideElt.getAttribute("y"));
    float w = Float.parseFloat(hideElt.getAttribute("w"));
    float h = Float.parseFloat(hideElt.getAttribute("h"));
    RelativeDockablePosition position = new RelativeDockablePosition(x, y, w, h);
   
    SingleDockableNode dockable = xmlGetDockable(dockableElt);
    borders[zone].add(new HiddenNode(dockable, position));
   
    if (dockable instanceof CompoundDockableNode){
View Full Code Here

Examples of com.vlsolutions.swing.docking.RelativeDockablePosition

      float x = Float.parseFloat(hideElt.getAttribute("x"));
      float y = Float.parseFloat(hideElt.getAttribute("y"));
      float w = Float.parseFloat(hideElt.getAttribute("w"));
      float h = Float.parseFloat(hideElt.getAttribute("h"));
     
      RelativeDockablePosition position = new RelativeDockablePosition(x, y, w, h);
     
      SingleDockableNode dockable = xmlGetDockable(dockableElt);
      if (i == 0){
        baseDockable = dockable;
        floating = new FloatingNode(baseDockable, rectangle, position);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.