com.ait.lienzo.client.core.shape.Attributes.getDragConstraint()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(79)

本文整理了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

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;
    }
  }
}

相关文章

微信公众号

最新文章

更多

Attributes类方法