本文整理了Java中com.google.gwt.event.dom.client.MouseEvent.getRelativeElement()
方法的一些代码示例,展示了MouseEvent.getRelativeElement()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MouseEvent.getRelativeElement()
方法的具体详情如下:
包路径:com.google.gwt.event.dom.client.MouseEvent
类名称:MouseEvent
方法名:getRelativeElement
暂无
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Gets the mouse x-position relative to the event's current target element.
*
* @return the relative x-position
*/
public int getX() {
Element relativeElem = getRelativeElement();
if (relativeElem != null) {
return getRelativeX(relativeElem);
}
return getClientX();
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Gets the mouse y-position relative to the event's current target element.
*
* @return the relative y-position
*/
public int getY() {
Element relativeElem = getRelativeElement();
if (relativeElem != null) {
return getRelativeY(relativeElem);
}
return getClientY();
}
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
protected AbstractNodeMouseEvent(final T event)
{
super(event);
m_x = event.getRelativeX(event.getRelativeElement());
m_y = event.getRelativeY(event.getRelativeElement());
}
代码示例来源:origin: ahome-it/lienzo-core
protected AbstractNodeMouseEvent(final T event)
{
super(event);
m_x = event.getRelativeX(event.getRelativeElement());
m_y = event.getRelativeY(event.getRelativeElement());
}
代码示例来源:origin: com.ahome-it/lienzo-core
protected AbstractNodeMouseEvent(final T event)
{
super(event);
m_x = event.getRelativeX(event.getRelativeElement());
m_y = event.getRelativeY(event.getRelativeElement());
}
代码示例来源:origin: ahome-it/lienzo-core
protected AbstractNodeMouseEvent(final T event)
{
super(event);
m_x = event.getRelativeX(event.getRelativeElement());
m_y = event.getRelativeY(event.getRelativeElement());
}
代码示例来源:origin: com.rht-emitrom/lienzo-core
protected AbstractNodeMouseEvent(T event)
{
m_x = event.getRelativeX(event.getRelativeElement());
m_y = event.getRelativeY(event.getRelativeElement());
m_event = event;
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Gets the mouse x-position relative to the event's current target element.
*
* @return the relative x-position
*/
public int getX() {
Element relativeElem = getRelativeElement();
if (relativeElem != null) {
return getRelativeX(relativeElem);
}
return getClientX();
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Gets the mouse y-position relative to the event's current target element.
*
* @return the relative y-position
*/
public int getY() {
Element relativeElem = getRelativeElement();
if (relativeElem != null) {
return getRelativeY(relativeElem);
}
return getClientY();
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Gets the mouse x-position relative to the event's current target element.
*
* @return the relative x-position
*/
public int getX() {
Element relativeElem = getRelativeElement();
if (relativeElem != null) {
return getRelativeX(relativeElem);
}
return getClientX();
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Gets the mouse y-position relative to the event's current target element.
*
* @return the relative y-position
*/
public int getY() {
Element relativeElem = getRelativeElement();
if (relativeElem != null) {
return getRelativeY(relativeElem);
}
return getClientY();
}
}
代码示例来源:origin: com.ahome-it/lienzo-core
final int x = event.getRelativeX(event.getRelativeElement());
final int y = event.getRelativeY(event.getRelativeElement());
final Layer layer = getSelectionShape().getLayer(); // this is in the drag layer, so also redraw there
if ((x != m_start.getX()) && (y != m_start.getY()))
代码示例来源:origin: ahome-it/lienzo-core
final int x = event.getRelativeX(event.getRelativeElement());
final int y = event.getRelativeY(event.getRelativeElement());
final Layer layer = getSelectionShape().getLayer(); // this is in the drag layer, so also redraw there
if ((x != m_start.getX()) && (y != m_start.getY()))
代码示例来源:origin: ahome-it/lienzo-core
final int x = event.getRelativeX(event.getRelativeElement());
final int y = event.getRelativeY(event.getRelativeElement());
final Layer layer = getSelectionShape().getLayer(); // this is in the drag layer, so also redraw there
if ((x != m_start.getX()) && (y != m_start.getY()))
内容来源于网络,如有侵权,请联系作者删除!