Overview
Attribute Summary
name | type | description |
---|---|---|
Public | ||
canAcceptDrop | function(:CanvasDropEvent):boolean |
|
content | Node[] | |
dropType | Class |
Optional filter for the types of objects that may be dropped into this canvas. |
focusedNode | Node | |
jsgpanel | JSGPanel | |
onDragEnter | function(:CanvasDropEvent):Void | |
onDragExit | function(:CanvasDropEvent):Void | |
onDrop | function(:CanvasDropEvent):Void |
Optional handler called when the user drops an object into this canvas. |
scale1ToFit | Boolean | |
scaleToFitList | Node[] | |
sizeToFitList | SizeableCanvasElement[] | |
viewport | CanvasViewport | |
Protected | ||
focusBounds | Rectangle2D | |
focusRect | Rect | |
root | SGGroup |
Inherited Attributes
javafx.ui.Widget
public | name | type |
---|---|---|
alignmentX | Number |
Returns the alignment along the x axis. |
alignmentY | Number |
Returns the alignment along the y axis. |
awtBackground | Color | |
awtFont | Font | |
awtForeground | Color | |
background | Color |
Sets the background color of this component. |
border | Border |
Sets the border of this component. |
component | JComponent | |
componentOrientation | ComponentOrientation |
Sets the language-sensitive orientation that is to be used to order the elements or text within this component. |
cursor | Cursor |
Sets the cursor image to the specified cursor. |
doubleBuffered | Boolean |
Sets whether the this component should use a buffer to paint. |
enabled | Boolean |
True when the object is enabled. |
focusable | Boolean |
Sets the focusable state of this Widget to the specified value. |
focused | Boolean | |
focusTraversalKeysEnabled | Boolean | |
font | Font |
Sets the |
foreground | Color |
Sets the foreground color of this component. |
height | Number |
Sets the height of this component. |
keyboardAction | KeyboardAction[] | |
keyListener | KeyListener | |
maximumSize | Dimension |
Sets the maximum size of this component to a constant value. |
minimumSize | Dimension |
Sets the minimum size of this component to a constant value. |
mouseListener | MouseListener | |
mouseMotionListener | MouseMotionListener | |
mouseWheelListener | MouseWheelListener | |
name | String | |
onKeyDown | function(:KeyEvent):Void |
|
onKeyTyped | function(:KeyEvent):Void |
|
onKeyUp | function(:KeyEvent):Void |
|
onMouseClicked | function(:MouseEvent):Void |
|
onMouseDragged | function(:MouseEvent):Void |
|
onMouseEntered | function(:MouseEvent):Void |
|
onMouseExited | function(:MouseEvent):Void |
|
onMouseMoved | function(:MouseEvent):Void |
|
onMousePressed | function(:MouseEvent):Void |
|
onMouseReleased | function(:MouseEvent):Void |
|
onMouseWheelMoved | function(:MouseWheelEvent):Void |
|
opaque | Boolean |
If true the component paints every pixel within its bounds. |
preferredSize | Dimension | |
size | Dimension |
Resizes this component to the specified dimensions. |
sizeToFitColumn | Boolean |
Hint to GroupLayout to make this component's width equal to others in the same column |
sizeToFitRow | Boolean |
Hint to GroupLayout to make this component's height equal to others in the same row |
toolTipText | String |
Registers the text to display in a tool tip. |
visible | Boolean |
True when the object is visible. |
width | Number |
Sets width of this component. |
x | Number |
Sets the x coordinate of this component within its parent. |
y | Number |
Sets the y coordinate of this component within its parent. |
javafx.ui.GroupElement
public | name | type |
---|---|---|
column | Column |
The column this element is contained in within a GroupLayout. |
horizontal | Spring |
Optional horizontal spring that determines the horizontal resizing behavior of this element when contained in a GroupLayout. |
row | Row |
The row this element is contained in within a GroupLayout. |
vertical | Spring |
Optional vertical spring that determines the vertical resizing behavior of this element when contained in a GroupLayout. |
javafx.ui.UIElement
public | name | type |
---|---|---|
context | UIContext | |
lookAndFeel | String |
javafx.ui.canvas.CanvasElement
public | name | type |
---|---|---|
parentCanvasElement | CanvasElement |
The containing element of this element. |
Function Summary
- public createComponent() : JComponent
- public doExportAsDrag(e: CanvasDragEvent, ) : Object
- public getCanvas() : Canvas
- protected getFX(obj: SGNode, ) : Node
- protected lowerNode(n: Node, ) : Void
- protected moveNodeToBack(n: Node, ) : Void
- protected moveNodeToFront(n: Node, ) : Void
- public pick(x: Integer, y: Integer, w: Integer, h: Integer, ) : <any>[]
- public print() : Void
- protected raiseNode(n: Node, ) : Void
Inherited Functions
javafx.ui.Widget
- protected abstract createComponent() : JComponent
-
factory method to create the underlying Swing component
- public getComponent() : JComponent
- public getJComponent() : JComponent
- public getMaximumSize() : Dimension
-
Returns the current maximum size of this component
- public getMinimumSize() : Dimension
-
Returns the current minimum size of this component
- public getNonScrollPaneComponent() : JComponent
- public getPreferredSize() : Dimension
-
Returns the current preferred size of this component
- public getSize() : Dimension
- public bound getWindow() : Window
- protected installMouseListener() : Void
- protected installMouseMotionListener() : Void
- protected installMouseWheelListener() : Void
- protected onSetOpaque(value: Boolean, ) : Void
- public requestFocus() : Void
javafx.ui.UIElement
- public static __EASE(a: Object, t: Number, f: Function1, interpolate: Function3, ) : Object
- public static __EASEBOTH(t: Number, ) : Number
- public static __EASEIN(t: Number, ) : Number
- public static __EASEOUT(t: Number, ) : Number
- public static __INTERPOLATE_NUM(value1: Number, value2: Number, t: Number, ) : Number
- public static cmToPixel(cm: Number, ) : Number
- public static DISCRETE(a: Number, t: Number, ) : Number
- public static EASEBOTH(a: Number, t: Number, ) : Number
- public static EASEIN(a: Number, t: Number, ) : Number
- public static EASEOUT(a: Number, t: Number, ) : Number
- public static getScreenResolution() : Integer
- public static getUIContext() : UIContext
- public bound getWindow() : Window
- public static inchToPixel(inch: Number, ) : Number
- public static LINEAR(a: Number, t: Number, ) : Number
- public static mmToPixel(mm: Number, ) : Number
- public static pointToPixel(pt: Integer, ) : Number
javafx.ui.canvas.CanvasElement
- public getCanvas() : Canvas
-
Convenience method to obtain the containing canvas.
- public bound getContainer() : Container
-
Returns the canvas element that contains this element
- public bound hasParent() : Boolean
- public lower() : Void
-
raise this element below its previous sibling
- protected onSetCanvas(canvas: Canvas, ) : Void
- public raise() : Void
-
raise this element above its next sibling
- public toBack() : Void
-
move this element before all of its previous siblings
- public toFront() : Void
-
move this element after all of its following siblings
javafx.ui.canvas.Container
Attributes
public canAcceptDrop: function(:CanvasDropEvent):boolean
attribute acceptDrop: function(e:CanvasDropEvent): Boolean
Optional handler called when the user drops an object into this canvas.
If it returns false, the drop is rejected.
public dropType: Class
Optional filter for the types of objects that may be dropped into this canvas.
public onDrop: function(:CanvasDropEvent):Void
Optional handler called when the user drops an object into this canvas.