行健网络

?找回密码
?立即注册
查看: 1934|回复: 0
打印 上一主题 下一主题

[其它] com.mxgraphx.view.mxCellState类best365官方_best365还可以买足彩吗_best365最快几天到账

[复制链接]
跳转到指定楼层
楼主
发表于 2016-6-1 09:34:32 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

best365还可以买足彩吗mxCellState反映的是mxCell(我们称它为图元,可以代表图中的顶点与边,但不仅仅此)状态,可以看作是单个mxCell的视图(而mxGraphView则可以看作整个图的视图)它有如下属性:

[Java] syntaxhighlighter_viewsource syntaxhighlighter_copycode
    /**
         * Reference to the enclosing graph view.
         */
        protected mxGraphView view;

        /**
         * Reference to the cell that is represented by this state.
         */
        protected Object cell;

        /**
         * Holds the current label value, including newlines which result from
         * word wrapping.
         */
        protected String label;

        /**
         * Contains an array of key, value pairs that represent the style of the
         * cell.
         */
        protected Map style;

        /**
         * Holds the origin for all child cells.
         */
        protected mxPoint origin = new mxPoint();

        /**
         * List of mxPoints that represent the absolute points of an edge.
         */
        protected List absolutePoints;

        /**
         * Holds the absolute offset. For edges, this is the absolute coordinates
         * of the label position. For vertices, this is the offset of the label
         * relative to the top, left corner of the vertex.
         */
        protected mxPoint absoluteOffset = new mxPoint();

        /**
         * Caches the distance between the end points and the length of an edge.
         */
        protected double terminalDistance, length;

        /**
         * Array of numbers that represent the cached length of each segment of the
         * edge.
         */
        protected double[] segments;

        /**
         * Holds the rectangle which contains the label.
         */
        protected mxRectangle labelBounds;

        /**
         * Holds the largest rectangle which contains all rendering for this cell.
         */
        protected mxRectangle boundingBox;

        /**
         * Specifies if the state is invalid. Default is true.
         */
        protected boolean invalid = true;

        /**
         * Caches the visible source and target terminal states.
         */
        protected mxCellState visibleSourceState, visibleTargetState;

cell、view、style这个三个属性分别是指该状态所代表的mxCell、所属视图以及样式。该类的构造函数也需要传入这样的三个相对应类型的参数

[Java] syntaxhighlighter_viewsource syntaxhighlighter_copycode
public mxCellState(mxGraphView view, Object cell, Map style)
        {
                setView(view);
                setCell(cell);
                setStyle(style);
        }
protected String label:标签,它表示顶点与边的值

protected mxPoint origin = new mxPoint():子mxCell的坐标原点

protected List absolutePoints:该属性储存边的源点与目标点

protected mxPoint absoluteOffset = new mxPoint():如果是边则代表label的绝对坐标;如果是顶点则代表label相对应该顶点左上角的偏移

protected double terminalDistance, length:如果是顶点则代表与终点之间的距离;如果是边则代表边的长度

protected double[] segments

protected mxRectangle labelBounds:标签边界矩形

protected mxRectangle boundingBox:mxCell边界矩形

protected boolean invalid = true:状态是否有效

protected mxCellState visibleSourceState, visibleTargetState

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|网站地图|行健网络

GMT+8, 2019-10-16 11:14 , Processed in 0.066746 second(s), 14 queries .

Powered by Discuz! X3.2

? 2001-2013 Comsenz Inc.

快速回复 返回顶部 best365还可以买足彩吗