1 19 20 package org.netbeans.modules.form.layoutdesign; 21 22 import java.awt.Dimension ; 23 import java.awt.Rectangle ; 24 25 public interface VisualMapper { 26 27 int PADDING_RELATED = 0; 28 int PADDING_UNRELATED = 1; 29 int INDENT = 2; 30 31 33 41 Rectangle getComponentBounds(String componentId); 42 43 53 Rectangle getContainerInterior(String componentId); 54 55 Dimension getComponentMinimumSize(String componentId); 56 Dimension getComponentPreferredSize(String componentId); 57 58 boolean hasExplicitPreferredSize(String componentId); 59 60 71 int getPreferredPadding(String component1Id, 72 String component2Id, 73 int dimension, 74 int comp2Alignment, 75 int paddingType); 76 77 89 int getPreferredPaddingInParent(String parentId, 90 String componentId, 91 int dimension, 92 int compAlignment); 93 94 int getBaselinePosition(String componentId, int width, int height); 95 96 boolean[] getComponentResizability(String compId, boolean[] resizability); 97 98 102 void rebuildLayout(String containerId); 103 } 104 | Popular Tags |