public class WAbsoluteLayout extends WSortLayout
限定符和类型 | 类和说明 |
---|---|
static class |
WAbsoluteLayout.BoundsWidget
已过时。
|
限定符和类型 | 字段和说明 |
---|---|
static int |
STATE_FIT |
static int |
STATE_FIXED |
DEFAULT_HEIGHT, DEFAULT_WIDTH, EVENT_AFTERINIT, EVENT_CLICK, MIN_HEIGHT, MIN_WIDTH, widgetList, XML_TAG
compInterval, hgap, vgap
background, borderStyle, margin
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName
构造器和说明 |
---|
WAbsoluteLayout() |
WAbsoluteLayout(java.lang.String widgetName) |
限定符和类型 | 方法和说明 |
---|---|
void |
addConnector(Connector line)
添加对齐线
|
void |
clearLinkLine()
清空对齐线
|
int |
connectorCount()
对齐线数量
|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor visitor)
以JSONObject方式返回绝对布局的配置信息, 并且将绝对布局内所有控件的配置信息以JSONArray形式存放在JSONObject的"items"
字段absoluteCompState 为绝对布局的缩放逻辑:0为适应区域,1为固定大小
|
protected JSONArray |
createJSONItems(Repository repo,
Calculator c,
NodeVisitor toFindChart)
以JSONArray方式返回布局内所有控件的配置信息
|
CRBoundsWidget |
getBoundsWidget(Widget widget)
返回对应的BoundsWidget
|
int |
getCompState()
返回控件在布局中状态
|
Connector[] |
getConnector() |
Connector |
getConnectorIndex(int i) |
Connector[] |
getCoveredConnectors(java.awt.Rectangle re) |
java.awt.Dimension |
getDesigningResolution() |
java.lang.String |
getLayoutToolTip()
获取容器的提示
|
java.awt.Dimension |
getMinDesignSize()
获取容器的设计最小dimension
|
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
boolean |
isHasResize() |
void |
readXML(XMLableReader reader)
读取xml
|
void |
removeConnector(Connector line)
删除对齐线
|
void |
resize(double width,
double height,
double fontScale)
后台容器自适应reize
|
void |
setBounds(Widget data,
java.awt.Rectangle newBounds)
设置控件边界大小
|
void |
setCompState(int value)
设置组件适应区域还是固定大小
|
void |
setDesigningResolution(java.awt.Dimension designingResolution) |
void |
setHasResize(boolean hasResize) |
protected void |
writeScalingAttrXML(XMLPrintWriter writer) |
void |
writeXML(XMLPrintWriter writer)
输出xml
|
addMobileWidget, addMobileWidget, addToMobileList, addToMobileList, adjustOrder, clearMobileWidgetList, createItemIndexList, getMobileWidget, getMobileWidgetIterator, getMobileWidgetListSize, getOrderedMobileWidgetList, isContainsMoibleWidget, isSorted, removeMobileWidget, setSorted, updateSortedMobileWidgetList
addWidget, canCurrentMarginAvailable, clone, createPara4Mobile, equals, getWidget, getWidget, getWidgetCount, getWidgetIndex, hashCode, isEditor, isScrollable, removeAll, removeWidget, replace, setCompVisible, setScrollable, setWidgetIndex, supportedEvents, toImage
getCompInterval, getHgap, getVgap, setCompInterval, setHgap, setVgap
addWidgetAttrMark, clearMargin, getBackground, getBorderStyle, getMargin, getWidgetAttrMark, readExtra, setBackground, setBorderStyle, setBorderStyleNoBackground, setMargin
acceptType, changeOnlyVisibleAuthorityState, changeUsableAuthorityState, changeVisibleAuthorityState, cleanAuthority, dealInvisible, dealWithPresentableValue, getContentHeight, getContentWidth, getDescription, getDisableAction, getEnableAction, getInvisibleAction, getLabelName, getVisibleAction, getWidgetName, getWidgetPrivilegeControl, hasDataOnInit, isChartRelated, isDirtyWidget, isDoneUsableAuthority, isDoneVisibleAuthority, isEnabled, isUsableAuthority, isVisible, isVisibleAuthority, resize, setChartRelated, setDescription, setEnabled, setLabelName, setVisible, setWidgetName, setWidgetPrivilegeControl, supportMobile, toImage, toString, updateChildBounds, value2Config
addListener, clearListeners, createJSONListener, createListeners, dealWithListener4Compatible, getConvertMap, getListener, getListenerSize
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
public static final int STATE_FIT
public static final int STATE_FIXED
public WAbsoluteLayout()
public WAbsoluteLayout(java.lang.String widgetName)
public void setDesigningResolution(java.awt.Dimension designingResolution)
public java.awt.Dimension getDesigningResolution()
public void setBounds(Widget data, java.awt.Rectangle newBounds)
WLayout
public java.lang.String getXType()
Widget
getXType
在类中 AbstractGapWidget
public void addConnector(Connector line)
line
- 线public int connectorCount()
public void removeConnector(Connector line)
line
- 线public void clearLinkLine()
public Connector getConnectorIndex(int i)
public Connector[] getConnector()
public Connector[] getCoveredConnectors(java.awt.Rectangle re)
public java.lang.String getLayoutToolTip()
WLayout
getLayoutToolTip
在类中 WLayout
public CRBoundsWidget getBoundsWidget(Widget widget)
WLayout
getBoundsWidget
在类中 WLayout
widget
- 控件public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor visitor) throws JSONException
createJSONConfig
在类中 WSortLayout
repo
- : see Repository正文c
- : 指定解析器visitor
- 查找JSONException
- json异常protected JSONArray createJSONItems(Repository repo, Calculator c, NodeVisitor toFindChart) throws JSONException
createJSONItems
在类中 WLayout
repo
- : 环境变量c
- : 指定解析器JSONException
public java.awt.Dimension getMinDesignSize()
WLayout
getMinDesignSize
在类中 WLayout
public void readXML(XMLableReader reader)
WLayout
readXML
在接口中 XMLReadable
readXML
在类中 WSortLayout
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
WLayout
writeXML
在接口中 XMLWriter
writeXML
在类中 WSortLayout
writer
- the PrintWriter.protected void writeScalingAttrXML(XMLPrintWriter writer)
public int getCompState()
public void setCompState(int value)
value
- set是否缩放public void resize(double width, double height, double fontScale)
WLayout
public boolean isHasResize()
public void setHasResize(boolean hasResize)