本文整理了Java中com.ait.lienzo.client.core.shape.Attributes.getDragConstraint()
方法的一些代码示例,展示了Attributes.getDragConstraint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attributes.getDragConstraint()
方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Attributes
类名称:Attributes
方法名:getDragConstraint
暂无
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
/**
* Gets this group's {@link DragConstraint}
*
* @return DragConstraint
*/
@Override
public DragConstraint getDragConstraint()
{
return getAttributes().getDragConstraint();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Gets this shape's {@link DragConstraint}
*
* @return DragConstraint
*/
@Override
public DragConstraint getDragConstraint()
{
return getAttributes().getDragConstraint();
}
代码示例来源:origin: com.ahome-it/lienzo-core
/**
* Gets this group's {@link DragConstraint}
*
* @return DragConstraint
*/
@Override
public DragConstraint getDragConstraint()
{
return getAttributes().getDragConstraint();
}
代码示例来源:origin: com.ahome-it/lienzo-core
/**
* Gets this shape's {@link DragConstraint}
*
* @return DragConstraint
*/
@Override
public DragConstraint getDragConstraint()
{
return getAttributes().getDragConstraint();
}
代码示例来源:origin: com.ahome-it/lienzo-core
/**
* Gets this group's {@link DragConstraint}
*
* @return DragConstraint
*/
@Override
public DragConstraint getDragConstraint()
{
return getAttributes().getDragConstraint();
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
/**
* Gets this shape's {@link DragConstraint}
*
* @return DragConstraint
*/
@Override
public DragConstraint getDragConstraint()
{
return getAttributes().getDragConstraint();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Gets this group's {@link DragConstraint}
*
* @return DragConstraint
*/
@Override
public DragConstraint getDragConstraint()
{
return getAttributes().getDragConstraint();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Gets this group's {@link DragConstraint}
*
* @return DragConstraint
*/
@Override
public DragConstraint getDragConstraint()
{
return getAttributes().getDragConstraint();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Gets this shape's {@link DragConstraint}
*
* @return DragConstraint
*/
@Override
public DragConstraint getDragConstraint()
{
return getAttributes().getDragConstraint();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Gets this group's {@link DragConstraint}
*
* @return DragConstraint
*/
@Override
public DragConstraint getDragConstraint()
{
return getAttributes().getDragConstraint();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Gets this group's {@link DragConstraint}
*
* @return DragConstraint
*/
@Override
public DragConstraint getDragConstraint()
{
return getAttributes().getDragConstraint();
}
代码示例来源:origin: com.ahome-it/lienzo-core
@Override
public final void startDrag(final DragContext dragContext)
{
final Attributes attr = dragContext.getNode().asNode().getAttributes();
m_constraint = attr.getDragConstraint();
m_bounds = attr.getDragBounds();
if (null != m_bounds)
{
final double x = attr.getX();
final double y = attr.getY();
if (m_bounds.isX1())
{
m_dx1 = m_bounds.getX1() - x;
}
if (m_bounds.isX2())
{
m_dx2 = m_bounds.getX2() - x;
}
if (m_bounds.isY1())
{
m_dy1 = m_bounds.getY1() - y;
}
if (m_bounds.isY2())
{
m_dy2 = m_bounds.getY2() - y;
}
}
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
@Override
public final void startDrag(final DragContext dragContext)
{
final Attributes attr = dragContext.getNode().asNode().getAttributes();
m_constraint = attr.getDragConstraint();
m_bounds = attr.getDragBounds();
if (null != m_bounds)
{
final double x = attr.getX();
final double y = attr.getY();
if (m_bounds.isX1())
{
m_dx1 = m_bounds.getX1() - x;
}
if (m_bounds.isX2())
{
m_dx2 = m_bounds.getX2() - x;
}
if (m_bounds.isY1())
{
m_dy1 = m_bounds.getY1() - y;
}
if (m_bounds.isY2())
{
m_dy2 = m_bounds.getY2() - y;
}
}
}
代码示例来源:origin: ahome-it/lienzo-core
@Override
public final void startDrag(final DragContext dragContext)
{
final Attributes attr = dragContext.getNode().asNode().getAttributes();
m_constraint = attr.getDragConstraint();
m_bounds = attr.getDragBounds();
if (null != m_bounds)
{
final double x = attr.getX();
final double y = attr.getY();
if (m_bounds.isX1())
{
m_dx1 = m_bounds.getX1() - x;
}
if (m_bounds.isX2())
{
m_dx2 = m_bounds.getX2() - x;
}
if (m_bounds.isY1())
{
m_dy1 = m_bounds.getY1() - y;
}
if (m_bounds.isY2())
{
m_dy2 = m_bounds.getY2() - y;
}
}
}
代码示例来源:origin: ahome-it/lienzo-core
@Override
public final void startDrag(final DragContext dragContext)
{
final Attributes attr = dragContext.getNode().asNode().getAttributes();
m_constraint = attr.getDragConstraint();
m_bounds = attr.getDragBounds();
if (null != m_bounds)
{
final double x = attr.getX();
final double y = attr.getY();
if (m_bounds.isX1())
{
m_dx1 = m_bounds.getX1() - x;
}
if (m_bounds.isX2())
{
m_dx2 = m_bounds.getX2() - x;
}
if (m_bounds.isY1())
{
m_dy1 = m_bounds.getY1() - y;
}
if (m_bounds.isY2())
{
m_dy2 = m_bounds.getY2() - y;
}
}
}
内容来源于网络,如有侵权,请联系作者删除!