Top Inners Fields Constructors Methods
com.sun.glass.ui

public abstract Class View

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.glass.ui.gtk.GtkView, com.sun.glass.ui.ios.IosView, com.sun.glass.ui.mac.MacView, com.sun.glass.ui.monocle.MonocleView, com.sun.glass.ui.win.WinView
Imports
com.sun.glass.events.MouseEvent, .ViewEvent, com.sun.javafx.tk.HeaderAreaType, java.lang.annotation.Native, java.lang.ref.WeakReference, java.util.Map, java.util.function.Supplier

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
pack-priv static final boolean
private static int
private static boolean
private ClipboardAssistance
pack-priv ClipboardAssistance
private View.EventHandler
public static final double
public static final int
private int
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
private boolean
private boolean
private boolean
private static int
private static long
private static WeakReference<View>
private static int
private static int
private volatile long
private int
private Window

Constructor Summary

AccessConstructor and Description
protected
View()

Method Summary

Modifier and TypeMethod and Description
protected abstract void
_begin(long ptr)

protected abstract boolean
_close(long ptr)

protected abstract long
_create(Map<K, V> capabilities)

protected abstract void
_enableInputMethodEvents(long ptr, boolean enable)

protected abstract void
_end(long ptr)

protected abstract boolean
_enterFullscreen(long ptr, boolean animate, boolean keepRatio, boolean hideCursor)

protected abstract void
_exitFullscreen(long ptr, boolean animate)

protected void
protected abstract int
protected abstract long
_getNativeView(long ptr)

protected abstract int
_getX(long ptr)

protected abstract int
_getY(long ptr)

protected abstract void
_scheduleRepaint(long ptr)

protected abstract void
_setParent(long ptr, long parentPtr)

protected abstract void
_uploadPixels(long ptr, Pixels pixels)

private void
public void
public void
enableInputMethodEvents(boolean enable)

public boolean
enterFullscreen(boolean animate, boolean keepRatio, boolean hideCursor)

public void
exitFullscreen(boolean animate)

public void
pack-priv long
getAccessible()

Returns the accessible object for the view.

public View.EventHandler
public int
private double[]
public static int
public static int
public static long
public int
getNativeFrameBuffer()

Called on the renderer thread and must be between lock and unlock

public long
getNativeView()

On Windows ptr is a pointer to a native structure.

public int
public Window
public int
getX()

X coordinate relative to the host (window).

public int
getY()

Y coordinate relative to the host (window).

public void
handleBeginTouchEvent(View view, long time, int modifiers, boolean isDirect, int touchEventCount)

private int
handleDragDrop(int x, int y, int xAbs, int yAbs, int recommendedDropAction, ClipboardAssistance dropTargetAssistant)

private void
handleDragEnd(int performedAction)

private int
handleDragEnter(int x, int y, int xAbs, int yAbs, int recommendedDropAction, ClipboardAssistance dropTargetAssistant)

private void
handleDragLeave(ClipboardAssistance dropTargetAssistant)

private int
handleDragOver(int x, int y, int xAbs, int yAbs, int recommendedDropAction, ClipboardAssistance dropTargetAssistant)

private void
handleDragStart(int button, int x, int y, int xAbs, int yAbs, ClipboardAssistance dropSourceAssistant)

public void
handleEndTouchEvent(View view, long time)

private void
handleInputMethodEvent(long time, String text, int[] clauseBoundary, int[] attrBoundary, byte[] attrValue, int commitCount, int cursorPos)

private boolean
handleKeyEvent(long time, int action, int keyCode, char[] keyChars, int modifiers)

protected boolean
handleMenuEvent(int x, int y, int xAbs, int yAbs, boolean isKeyboardTrigger)

protected void
handleMouseEvent(long time, int type, int button, int x, int y, int xAbs, int yAbs, int modifiers, boolean isPopupTrigger, boolean isSynthesized)

public void
handleNextTouchEvent(View view, long time, int type, long touchId, int x, int y, int xAbs, int yAbs)

protected boolean
handleNonClientMouseEvent(long time, int type, int button, int x, int y, int xAbs, int yAbs, int modifiers, int clickCount)

public void
handleRotateGestureEvent(View view, long time, int type, int modifiers, boolean isDirect, boolean isInertia, int originx, int originy, int originxAbs, int originyAbs, double dangle, double totalangle)

public void
handleScrollGestureEvent(View view, long time, int type, int modifiers, boolean isDirect, boolean isInertia, int touchCount, int x, int y, int xAbs, int yAbs, double dx, double dy, double totaldx, double totaldy, double multiplierX, double multiplierY)

public void
handleSwipeGestureEvent(View view, long time, int type, int modifiers, boolean isDirect, boolean isInertia, int touchCount, int dir, int originx, int originy, int originxAbs, int originyAbs)

private void
handleViewEvent(long time, int type)

public void
handleZoomGestureEvent(View view, long time, int type, int modifiers, boolean isDirect, boolean isInertia, int originx, int originy, int originxAbs, int originyAbs, double scale, double expansion, double totalscale, double totalexpansion)

public boolean
public boolean
public void
lock()

prepares to painting by locking native surface Called on the render thread

public void
notifyBeginTouchEvent(int modifiers, boolean isDirect, int touchEventCount)

protected int
notifyDragDrop(int x, int y, int xAbs, int yAbs, int recommendedDropAction)

protected void
notifyDragEnd(int performedAction)

protected int
notifyDragEnter(int x, int y, int xAbs, int yAbs, int recommendedDropAction)

protected void
protected int
notifyDragOver(int x, int y, int xAbs, int yAbs, int recommendedDropAction)

protected void
notifyDragStart(int button, int x, int y, int xAbs, int yAbs)

public void
protected void
notifyInputMethod(String text, int[] clauseBoundary, int[] attrBoundary, byte[] attrValue, int committedTextLength, int caretPos, int visiblePos)

protected double[]
protected void
notifyKey(int type, int keyCode, char[] keyChars, int modifiers)

protected boolean
notifyKeyAndReturnConsumed(int type, int keyCode, char[] keyChars, int modifiers)

protected void
notifyMenu(int x, int y, int xAbs, int yAbs, boolean isKeyboardTrigger)

protected void
notifyMouse(int type, int button, int x, int y, int xAbs, int yAbs, int modifiers, boolean isPopupTrigger, boolean isSynthesized)

public void
notifyNextTouchEvent(int type, long touchId, int x, int y, int xAbs, int yAbs)

protected void
notifyRepaint(int x, int y, int width, int height)

protected void
notifyResize(int width, int height)

public void
notifyRotateGestureEvent(int type, int modifiers, boolean isDirect, boolean isInertia, int originx, int originy, int originxAbs, int originyAbs, double dangle, double totalangle)

protected void
notifyScroll(int x, int y, int xAbs, int yAbs, double deltaX, double deltaY, int modifiers, int lines, int chars, int defaultLines, int defaultChars, double xMultiplier, double yMultiplier)

public void
notifyScrollGestureEvent(int type, int modifiers, boolean isDirect, boolean isInertia, int touchCount, int x, int y, int xAbs, int yAbs, double dx, double dy, double totaldx, double totaldy, double multiplierX, double multiplierY)

public void
notifySwipeGestureEvent(int type, int modifiers, boolean isDirect, boolean isInertia, int touchCount, int dir, int originx, int originy, int originxAbs, int originyAbs)

protected void
notifyView(int type)

public void
notifyZoomGestureEvent(int type, int modifiers, boolean isDirect, boolean isInertia, int originx, int originy, int originxAbs, int originyAbs, double scale, double expansion, double totalscale, double totalexpansion)

public void
scheduleRepaint()

marks native surface dirty, so the system itself will create repaint event

public void
pack-priv void
setVisible(boolean visible)

pack-priv void
setWindow(Window window)

protected boolean
public boolean
toggleFullscreen(boolean animate, boolean keepRatio, boolean hideCursor)

public void
unlock()

ends painting by unlocking native surface and flushing flushes surface (if flush == true) or discard it (flush == false) Called on the render thread

public void
public void
uploadPixels(Pixels pixels)

This method dumps the pixels on to the view.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait