|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Size | |
---|---|
twaver | |
twaver.core.model | |
twaver.layout | |
twaver.model | |
twaver.model.attachment | |
twaver.network | |
twaver.shader |
Uses of Size in twaver |
---|
Subclasses of Size in twaver | |
---|---|
class |
Rect
矩形,继承于Size,增加了x,y两个位置参数 |
class |
RoundRect
圆角矩形,继承于Rect,增加了radius参数,用来表示圆角半径 |
Fields in twaver declared as Size | |
---|---|
static Size |
Defaults.GROUP_MIN_SIZE
分组展开最小尺寸 |
static Size |
Defaults.SHAPE_SIZE
图形大小 |
Methods in twaver that return Size | |
---|---|
Size |
Size.clone()
|
Methods in twaver with parameters of type Size | |
---|---|
void |
Rect.set(Point location,
Size size)
设置矩形参数 |
Constructors in twaver with parameters of type Size | |
---|---|
Rect(Point location,
Size size)
构造函数 |
|
Size(Size size)
|
Uses of Size in twaver.core.model |
---|
Methods in twaver.core.model that return Size | |
---|---|
Size |
INode.getSize()
|
Uses of Size in twaver.layout |
---|
Method parameters in twaver.layout with type arguments of type Size | |
---|---|
void |
AutoLayouter.setElementSizeGenerator(Generator<Node,Size> elementSizeGenerator)
设置网元大小生成器,默认取网元UI大小,网元UI不存在时,取网元的计算大小 Node.getCalculateSize() |
Constructor parameters in twaver.layout with type arguments of type Size | |
---|---|
AutoLayouter(Network network,
int layoutType,
java.lang.Runnable callback,
int xOffset,
int yOffset,
Generator<Node,Size> elementSizeGenerator)
构造函数,自动布局,twaver默认实现了几种布局算法,支持树形布局,圆形布局,星形布局,层次布局 |
Uses of Size in twaver.model |
---|
Fields in twaver.model declared as Size | |
---|---|
protected Size |
Node.calculateSize
网元计算大小,网元计算大小不一定等于 Node.size ,默认网元大小为空,网元计算大小则为网元图片的宽高
此外网元计算大小也不一定等于网元的显示大小,网元的显示大小由一系列样式决定 |
protected Size |
Group.groupMinSize
分组展开时的最小大小 |
protected Size |
Node.size
网元大小,网元大小不一定等于网元计算大小 Node.calculateSize ,默认网元大小为空,网元计算大小则为网元图片的宽高 |
Methods in twaver.model that return Size | |
---|---|
Size |
Node.getCalculateSize()
网元计算大小, Node.calculateSize |
Size |
Group.getGroupMinSize()
展开时的最小大小, Group.groupMinSize |
Size |
Node.getSize()
获取网元大小,@see Node.size |
Size |
Node.getSize(boolean calculate)
获取网元大小,如果calculate参数为true,返回网元计算大小 Node.calculateSize ,否则返回网元大小Node.size |
Methods in twaver.model with parameters of type Size | |
---|---|
boolean |
Group.setGroupMinSize(Size groupSize)
设置分组展开时的最小大小 |
boolean |
Node.setSize(Size size)
设置网元大小 |
Uses of Size in twaver.model.attachment |
---|
Fields in twaver.model.attachment declared as Size | |
---|---|
protected Size |
Attachment.size
附件大小 |
Methods in twaver.model.attachment that return Size | |
---|---|
Size |
Attachment.getSize()
附件大小 |
Methods in twaver.model.attachment with parameters of type Size | |
---|---|
boolean |
Attachment.setSize(Size size)
设置附件大小 |
Uses of Size in twaver.network |
---|
Subclasses of Size in twaver.network | |
---|---|
class |
UIBounds
UI元素范围,继承于矩形,为UI主体部分的范围大小,主体之外还可设置padding, selection border和outline,共同构成UI的范围信息 UI范围分四种,从小到大分别为:body,fill bounds, content bounds, view bounds fill bounds = body + padding content bounds = fill bounds + outline view bounds = content bounds + selection border |
Methods in twaver.network that return Size | |
---|---|
Size |
ImageUI.getSize()
获取图片尺寸 当size的width或者height为-1时,twaver会保持等比例缩放 如果图片原始宽高为32*16,比如下面的代码,可设置网元宽度为40,高度保持等比例为20 |
Methods in twaver.network with parameters of type Size | |
---|---|
boolean |
ShapeUI.setSize(Size size)
设置图形的尺寸,准确地说是缩放比例,因为twaver默认图形都是限定在1X1的范围内,所以等同于图形的尺寸 |
boolean |
ImageUI.setSize(Size size)
设置图片尺寸 当size的width或者height为-1时,twaver会保持等比例缩放 如果图片原始宽高为32*16,比如下面的代码,可设置网元宽度为40,高度保持等比例为20 |
Uses of Size in twaver.shader |
---|
Methods in twaver.shader with parameters of type Size | |
---|---|
Shader |
IShader.getShader(float tx,
float ty,
Size size)
生成指定偏移量和大小区域的着色器 |
Shader |
Gradient.getShader(float tx,
float ty,
Size size)
|
Shader |
IShader.getShader(Size size)
生成指定大小区域的着色器,比如渐变的作用范围 |
Shader |
Gradient.getShader(Size size)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |