Advertisement
Guest User

definitions

a guest
Jul 6th, 2012
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.36 KB | None | 0 0
  1. package javafx {
  2. // type boolean {
  3. //
  4. // },
  5. type t_number {
  6. DOUBLE
  7. },
  8. enumtype unit_symbols {
  9. 'px', 'mm', 'cm', 'in', 'pt','pc','em','ex'
  10. },
  11. enumtype angle_symbols {
  12. 'deg','rad','grad','turn'
  13. },
  14. type size {
  15. <t_number> | <length> | <percentage>
  16. },
  17. type length {
  18. <t_number> [<unit_symbols>]?
  19. },
  20. type percentage {
  21. <t_number> '%'
  22. },
  23. type angle {
  24. <t_number> <angle_symbols>
  25. },
  26. type point {
  27. [ <length> <length> ] | [ <percentage> | <percentage> ]
  28. },
  29. type color_stop {
  30. <color> [ <percentage> | <length>]?
  31. },
  32. type uri {
  33. STRING
  34. // url ( [\"\']? <address> [\"\']? )
  35. },
  36. enumtype blur_type {
  37. 'gaussian','one-pass-box','three-pass-box','two-pass-box'
  38. },
  39. type effect {
  40. <dropshadow> | <innershadow>
  41. },
  42. type dropshadow {
  43. <blur_type>
  44. // dropshadow( <blur_type> ',' <color> ',' <t_number> ',' <t_number> ',' <t_number> ',' <t_number> )
  45. },
  46. type innershadow {
  47. <blur_type>
  48. },
  49. type font_family {
  50. STRING
  51. },
  52. type font_size {
  53. <size>
  54. },
  55. enumtype font_style {
  56. 'normal','italic','oblique'
  57. },
  58. enumtype font_weight {
  59. 'normal','bold','bolder','lighter',
  60. '100','200','300','400','500','600','700','800','900'
  61. },
  62. type font {
  63. [ <font_style> || <font_weight> ]? //<font_size> <font_family>
  64. },
  65. type paint {
  66. <color> | <linear_gradient> | <radial_gradient>
  67. },
  68. type linear_gradient {
  69. STRING
  70. //NOT SUPPORTED linear-gradient( [ [from <point> to <point>] | [ to <side-or-corner>], ]? [ [ repeat | reflect ], ]? <color-stop>[, <color-stop>]+)
  71. },
  72. type radial_gradient {
  73. STRING
  74. //NOT SUPPORTED radial-gradient([ focus-angle <angle>, ]? [ focus-distance <percentage>, ]? [ center <point>, ]? radius [ <length> | <percentage> ] [ [ repeat | reflect ], ]? <color-stop>[, <color-stop>]+)
  75. },
  76. type color {
  77. <named_color> | <looked_up_color> | <rgb_color> | <hsb_color> | <color_function>
  78. },
  79. enumtype named_color {
  80. 'aliceblue', 'antiquewhite' // ....
  81. },
  82. type looked_up_color {
  83. STRING
  84. },
  85. type rgb_color {
  86. STRING
  87. },
  88. type hsb_color {
  89. STRING
  90. },
  91. type color_function {
  92. STRING
  93. }
  94. package stage {
  95. Window {
  96.  
  97. },
  98. PopupWindow extends Window {
  99. }
  100. }
  101. package scene {
  102. enumtype fx_cursor {
  103. 'null',
  104. 'crosshair',
  105. 'default',
  106. 'hand',
  107. 'move',
  108. 'e-resize',
  109. 'h-resize',
  110. 'ne-resize',
  111. 'nw-resize',
  112. 'n-resize',
  113. 'se-resize',
  114. 'sw-resize','s-resize',
  115. 'w-resize',
  116. 'v-resize',
  117. 'text',
  118. 'wait'
  119. }
  120.  
  121. /#
  122. # All attributes that can be applied to Nodes
  123. #/
  124. Node {
  125. /#
  126. # Some blurb about the blend mode
  127. #/
  128. enum '-fx-blend-mode' default 'null' {
  129. /#
  130. # blurb about add
  131. #/
  132. 'add',
  133. 'blue', 'color-burn',
  134. 'color-dodge', 'darken', 'difference',
  135. 'exclusion', 'green', 'hard-light',
  136. 'lighten', 'multiply', 'overlay',
  137. 'red', 'screen', 'soft-light',
  138. 'src-atop', 'src-in', 'src-out',
  139. 'src-over'
  140. },
  141. '-fx-cursor' default 'null' {
  142. <fx_cursor> | <uri>
  143. },
  144. boolean '-fx-focus-traversable' default false,
  145. /#
  146. # Opacity can be thought of conceptually as a postprocessing operation.
  147. # Conceptually, after the node (including its descendants) is rendered into an
  148. # RGBA offscreen image, the opacity setting specifies how to blend the offscreen
  149. # rendering into the current composite rendering.
  150. #/
  151. number '-fx-opacity' default 0d range 0d to 1d,
  152. /#
  153. # This is the angle of the rotation in degrees.
  154. # Zero degrees is at 3 o'clock (directly to the right).
  155. # Angle values are positive clockwise. Rotation is about the center.
  156. #/
  157. number '-fx-rotate' default 0d,
  158. /#
  159. # scale about the center
  160. #/
  161. unsigned number '-fx-scale-x' default 1l,
  162. /#
  163. # scale about the center
  164. #/
  165. unsigned number '-fx-scale-y' default 1l,
  166. /#
  167. # scale about the center
  168. #/
  169. unsigned number '-fx-scale-z' default 1l,
  170. enum 'visibility' default 'visible' {
  171. 'visible','hidden','collapse','inherit'
  172. },
  173. /#
  174. # applies when the disabled variable is true
  175. #/
  176. pseudoclass 'disabled',
  177. /#
  178. # applies when the focused variable is true
  179. #/
  180. pseudoclass 'focused',
  181. /#
  182. # applies when the hover variable is true
  183. #/
  184. pseudoclass 'hover',
  185. /#
  186. # applies when the pressed variable is true
  187. #/
  188. pseudoclass 'pressed',
  189. /#
  190. # apples when the mnemonic affordance (typically an underscore) should be shown.
  191. #/
  192. pseudoclass 'show-mnemonic'
  193. },
  194.  
  195. Parent extends Node {
  196.  
  197. },
  198.  
  199. Group extends Parent {
  200.  
  201. }
  202. package image {
  203. ImageView extends Node {
  204. '-fx-image' default 'null' {
  205. <uri>
  206. }
  207. }
  208. }
  209. package layout {
  210. enumtype bg_pos_1 {
  211. 'left','center','right'
  212. },
  213. enumtype bg_pos_2 {
  214. 'top','center','bottom'
  215. },
  216. enumtype bg_pos_3 {
  217. 'center', 'center'
  218. },
  219. enumtype bg_pos_4 {
  220. 'left' , 'right'
  221. },
  222. enumtype bg_pos_5 {
  223. 'top' , 'bottom'
  224. },
  225. type bg_position {
  226. [[ <size> | <bg_pos_1> ] [ <size> | <bg_pos_2> ]?] |
  227. [ [ <bg_pos_3> | <bg_pos_4> [<size>]? ] || [ <bg_pos_3> | <bg_pos_5> [<size>]? ]]
  228. },
  229. enumtype repeat_vals_1 {
  230. 'repeat-x','repeat-y'
  231. },
  232. enumtype repeat_vals_2 {
  233. 'repeat','space','round','stretch','no-repeat'
  234. },
  235. type repeat_style {
  236. [<repeat_vals_1> | <repeat_vals_2>]{1,2}
  237. },
  238. enumtype bg_size_1 {
  239. 'auto','auto'
  240. },
  241. enumtype bg_size_2 {
  242. 'cover','contain','stretch'
  243. },
  244. type bg_size {
  245. [ <size> | <bg_size_1> ]{1,2} | <bg_size_2>
  246. },
  247. enumtype dash_style_1 {
  248. 'none','solid','dotted','dashed'
  249. },
  250. type dash_style {
  251. <dash_style_1> //NOT SUPPORTED| segments( <t_number>, <t_number> [',' <t_number>]*)
  252. },
  253. enumtype border_style_1 {
  254. 'centered','inside','outside'
  255. },
  256. type border_style {
  257. <dash_style> /*NOT SUPPORTED['phase' <t_number>]?*/ [<border_style_1>]?
  258. //NOT SUPPORTED <dash-style> [phase <number>]? [centered | inside | outside]? [line-join [miter <number> | bevel | round]]? [line-cap [square | butt | round]]?
  259. // ---
  260. // [ none | solid | dotted | dashed | segments( <number>, <number> [, <number>]*) ]
  261. }
  262. Region extends Parent {
  263. /#
  264. # A series of paint values separated by commas.
  265. #/
  266. '-fx-background-color' default 'null' {
  267. <paint> //NOT SUPPORTED[ , <paint> ]*
  268. },
  269. /#
  270. # A series of size values or sets of four size values, separated by commas. A single size value means all insets are the same. Otherwise, the four values for each inset are given in the order top, right, bottom, left. Each comma-separated value or set of values in the series applies to the corresponding background color.
  271. #/
  272. '-fx-background-insets' default 'null' {
  273. <size> //NOT SUPPORTED | <size> <size> <size> <size> [ , [ <size> | <size> <size> <size> <size>] ]*
  274. },
  275. /#
  276. # A series of radius values or sets of four radius values, separated by commas. A single radius value means the radius of all four corners is the same. Otherwise, the four values in the set determine the radii of the top-left, top-right, bottom-right, and bottom-left corners, in that order. Each comma-separated value or set of values in the series applies to the corresponding background color.
  277. #/
  278. '-fx-background-radius' default 'null' {
  279. <size> //NOT SUPPORTED | <size> <size> <size> <size> [ , [ <size> | <size> <size> <size> <size>] ]*
  280. },
  281. /#
  282. # A series of image URIs separated by commas.
  283. #/
  284. '-fx-background-image' default 'null' {
  285. <uri> //NOT SUPPORTED [ , <uri> ]*
  286. },
  287. '-fx-background-position' default 'null' {
  288. <bg_position> //NOT SUPPORTED [ , <bg_position> ]*
  289. },
  290. '-fx-background-repeat' default 'null' {
  291. <repeat_style> //NOT SUPPORTED [ , <repeat_style> ]*
  292. },
  293. '-fx-background-size' default 'null' {
  294. <bg_size> //NOT SUPPORTED [ , <bg_size> ]*
  295. },
  296. '-fx-border-color' default 'null' {
  297. <paint> //NOT SUPPORTED | <paint> <paint> <paint> <paint> [ , [<paint> | <paint> <paint> <paint> <paint>] ]*
  298. },
  299. '-fx-border-insets' default 'null' {
  300. <size> //NOT SUPPORTED| <size> <size> <size> <size> [ , [ <size> | <size> <size> <size> <size>] ]*
  301. },
  302. '-fx-border-radius' default 'null' {
  303. <size> //NOT SUPPORTED | <size> <size> <size> <size> [ , [ <size> | <size> <size> <size> <size>] ]*
  304. },
  305. '-fx-border-style' default 'null' {
  306. <border_style> // NOT SUPPORTED[ , <border_style> ]*
  307. },
  308. '-fx-border-width' default 'null' {
  309. <size> //NOT SUPPORTED| <size> <size> <size> <size> [ , [ <size> | <size> <size> <size> <size>] ]*
  310. },
  311. '-fx-border-image-source' default 'null' {
  312. <uri> //NOT SUPPORTED [ , <uri> ]*
  313. },
  314. '-fx-border-image-insets' default 'null' {
  315. <size> //NOT SUPPORTED | <size> <size> <size> <size> [ , [ <size> | <size> <size> <size> <size>] ]*
  316. },
  317. '-fx-border-image-repeat' default 'null' {
  318. <repeat_style> //NOT SUPPORTED[ , <repeat_style> ]*
  319. },
  320. '-fx-border-image-slice' default 'null' {
  321. [<size> | <size> <size> <size> <size> ] //NOT SUPPORTED'fill'? [ , [ <size> | <size><size> <size> <size> <size> ] 'fill'? ]*
  322. },
  323. '-fx-border-image-width' default 'null' {
  324. <size> // NOT SUPPORTED| <size> <size> <size> <size> [ , [ <size> | <size> <size> <size> <size>] ]*
  325. },
  326. '-fx-padding' default 'null' {
  327. <size> | <size> <size> <size> <size>
  328. },
  329. boolean '-fx-position-shape' default true,
  330. boolean '-fx-scale-shape' default true,
  331. string '-fx-shape' default 'null',
  332. boolean '-fx-snap-to-pixel' default true
  333. // '-fx-background-fills'
  334. // '-fx-background-images'
  335. // '-fx-stroke-borders'
  336. // '-fx-image-borders'
  337. },
  338. Pane {
  339.  
  340. },
  341. AnchorPane extends Pane {
  342.  
  343. },
  344. BorderPane extends Pane {
  345.  
  346. },
  347. FlowPane extends Pane {
  348. '-fx-hgap' default '0' {
  349. <size>
  350. },
  351. '-fx-vgap' default '0' {
  352. <size>
  353. },
  354. enum '-fx-alignment' default 'top-left' {
  355. 'top-left',
  356. 'top-center',
  357. 'top-right',
  358. 'center-left',
  359. 'center',
  360. 'center-right',
  361. 'bottom-left',
  362. 'bottom-center',
  363. 'bottom-right',
  364. 'baseline-left',
  365. 'baseline-center',
  366. 'baseline-right'
  367. },
  368. enum '-fx-column-halignment' default 'center' {
  369. 'left',
  370. 'center',
  371. 'right'
  372. },
  373. enum '-fx-row-valignment' default 'center' {
  374. 'top',
  375. 'center',
  376. 'baseline',
  377. 'bottom'
  378. },
  379. enum '-fx-orientation' default 'horizontal' {
  380. 'horizontal',
  381. 'vertical'
  382. }
  383. },
  384. GridPane extends Pane {
  385. '-fx-hgap' default '0' {
  386. <size>
  387. },
  388. '-fx-vgap' default '0' {
  389. <size>
  390. },
  391. enum '-fx-alignment' default 'top-left' {
  392. 'top-left',
  393. 'top-center',
  394. 'top-right',
  395. 'center-left',
  396. 'center',
  397. 'center-right',
  398. 'bottom-left',
  399. 'bottom-center',
  400. 'bottom-right',
  401. 'baseline-left',
  402. 'baseline-center',
  403. 'baseline-right'
  404. },
  405. boolean '-fx-grid-lines-visible' default false
  406. },
  407. HBox extends Pane {
  408. '-fx-spacing' default '0' {
  409. <size>
  410. },
  411. enum '-fx-alignment' default 'top-left' {
  412. 'top-left',
  413. 'top-center',
  414. 'top-right',
  415. 'center-left',
  416. 'center',
  417. 'center-right',
  418. 'bottom-left',
  419. 'bottom-center',
  420. 'bottom-right',
  421. 'baseline-left',
  422. 'baseline-center',
  423. 'baseline-right'
  424. },
  425. boolean '-fx-fill-height' default false
  426. },
  427. StackPane extends Pane {
  428. enum '-fx-alignment' default 'top-left' {
  429. 'top-left',
  430. 'top-center',
  431. 'top-right',
  432. 'center-left',
  433. 'center',
  434. 'center-right',
  435. 'bottom-left',
  436. 'bottom-center',
  437. 'bottom-right',
  438. 'baseline-left',
  439. 'baseline-center',
  440. 'baseline-right'
  441. }
  442. },
  443. TilePane extends Pane {
  444. enum '-fx-orientation' default 'horizontal' {
  445. 'horizontal','vertical'
  446. },
  447. unsigned integer '-fx-pref-rows' default 5,
  448. unsigned integer '-fx-pref-columns' default 5,
  449. '-fx-pref-tile-width' default '-1' {
  450. <size>
  451. },
  452. '-fx-pref-tile-height' default '-1' {
  453. <size>
  454. },
  455. '-fx-hgap' default '0' {
  456. <size>
  457. },
  458. '-fx-vgap' default '0' {
  459. <size>
  460. },
  461. enum '-fx-alignment' default 'top-left' {
  462. 'top-left',
  463. 'top-center',
  464. 'top-right',
  465. 'center-left',
  466. 'center','center-right',
  467. 'bottom-left',
  468. 'bottom-center',
  469. 'bottom-right',
  470. 'baseline-left',
  471. 'baseline-center',
  472. 'baseline-right'
  473. },
  474. enum '-fx-tile-alignment' default 'center' {
  475. 'top-left',
  476. 'top-center',
  477. 'top-right',
  478. 'center-left',
  479. 'center','center-right',
  480. 'bottom-left',
  481. 'bottom-center',
  482. 'bottom-right',
  483. 'baseline-left',
  484. 'baseline-center',
  485. 'baseline-right'
  486. }
  487. },
  488. VBox {
  489. '-fx-spacing' default '0' {
  490. <size>
  491. },
  492. enum '-fx-alignment' default 'top-left' {
  493. 'top-left',
  494. 'top-center',
  495. 'top-right',
  496. 'center-left',
  497. 'center','center-right',
  498. 'bottom-left',
  499. 'bottom-center',
  500. 'bottom-right',
  501. 'baseline-left',
  502. 'baseline-center',
  503. 'baseline-right'
  504. },
  505. boolean '-fx-fill-width' default true
  506. }
  507. }
  508. package shape {
  509. Shape extends Node {
  510. '-fx-fill' default 'BLACK' {
  511. <paint>
  512. },
  513. boolean '-fx-smooth' default true,
  514. '-fx-stroke' default 'null' {
  515. <paint>
  516. },
  517. enum '-fx-stroke-type' default 'centered' {
  518. 'inside','outside','centered'
  519. },
  520. '-fx-stroke-dash-array' default 'null' {
  521. <size>[ <size>]+
  522. },
  523. number '-fx-stroke-dash-offset' default 0d,
  524. enum '-fx-stroke-line-cap' default 'square' {
  525. 'square','butt','round'
  526. },
  527. enum '-fx-stroke-line-join' default 'miter' {
  528. 'miter','bevel','round'
  529. },
  530. number '-fx-stroke-miter-limit' default 10d,
  531. '-fx-stroke-width' default '1' {
  532. <size>
  533. }
  534. },
  535. Arc extends Shape {
  536.  
  537. },
  538. Circle extends Shape {
  539.  
  540. },
  541. CubicCurve extends Shape {
  542.  
  543. },
  544. Ellipse extends Shape {
  545.  
  546. },
  547. Line extends Shape {
  548.  
  549. },
  550. Path extends Shape {
  551.  
  552. },
  553. Polygon extends Shape {
  554.  
  555. },
  556. QuadCurve extends Shape {
  557.  
  558. },
  559. Rectangle extends Shape {
  560. '-fx-arc-height' default '0' {
  561. <size>
  562. },
  563. '-fx-arc-width' default '0' {
  564. <size>
  565. }
  566. },
  567. SVGPath extends Shape {
  568.  
  569. }
  570. }
  571. package text {
  572. Text extends shape.Shape {
  573. '-fx-font' default 'Font.DEFAULT' {
  574. <font>
  575. },
  576. enum '-fx-font-smoothing-type' default 'gray' {
  577. 'gray','lcd'
  578. },
  579. boolean '-fx-strikethrough' default false,
  580. enum '-fx-text-alignment' default 'left' {
  581. 'left','center','right','justify'
  582. },
  583. enum '-fx-text-origin' default 'baseline' {
  584. 'baseline','top','bottom'
  585. },
  586. boolean '-fx-underline' default false
  587. }
  588. }
  589. package control {
  590. Control extends Parent {
  591. string '-fx-skin' default 'null'
  592. },
  593. Labeled extends Control {
  594. enum '-fx-alignment' default 'top-left' {
  595. 'top-left',
  596. 'top-center',
  597. 'top-right',
  598. 'center-left',
  599. 'center',
  600. 'center-right',
  601. 'bottom-left',
  602. 'bottom-center',
  603. 'bottom-right',
  604. 'baseline-left','baseline-center',
  605. 'baseline-right'
  606. },
  607. enum '-fx-text-alignment' default 'left' {
  608. 'left','center','right','justify'
  609. },
  610. enum '-fx-text-overrun' default 'ellipsis' {
  611. 'center-ellipsis',
  612. 'center-word-ellipsis',
  613. 'clip',
  614. 'ellipsis',
  615. 'leading-ellipsis',
  616. 'leading-word-ellipsis',
  617. 'word-ellipsis'
  618. },
  619. boolean '-fx-wrap-text' default false,
  620. '-fx-font' default 'null' {
  621. <font>
  622. },
  623. boolean '-fx-underline' default false,
  624. '-fx-graphic' default 'null' {
  625. <uri>
  626. },
  627. enum '-fx-content-display' default 'left' {
  628. 'top',
  629. 'right',
  630. 'bottom',
  631. 'left',
  632. 'center',
  633. 'right',
  634. 'graphic-only',
  635. 'text-only'
  636. },
  637. '-fx-graphic-text-gap' default '4' {
  638. <size>
  639. },
  640. '-fx-label-padding' default '0,0,0,0' {
  641. <size> | <size> <size> <size> <size>
  642. },
  643. '-fx-text-fill' default 'BLACK' {
  644. <paint>
  645. }
  646. },
  647. ButtonBase extends Labeled {
  648. pseudoclass 'armed'
  649. },
  650. Accordion extends Control {
  651.  
  652. },
  653. Button extends ButtonBase {
  654. pseudoclass 'cancel',
  655. pseudoclass 'default'
  656. },
  657. Cell extends Labeled {
  658. '-fx-cell-size' default '15' {
  659. <size>
  660. }
  661. pseudoclass 'empty',
  662. pseudoclass 'filled',
  663. pseudoclass 'selected'
  664. substructure Labeled 'text'
  665. },
  666. CheckBox extends ButtonBase {
  667. pseudoclass 'selected',
  668. pseudoclass 'determinate',
  669. pseudoclass 'indeterminate'
  670. substructure layout.StackPane 'box' {
  671. substructure layout.StackPane 'mark'
  672. }
  673. },
  674. CheckMenuItem extends Control {
  675. pseudoclass 'selected'
  676. },
  677. ChoiceBox extends Control {
  678. substructure layout.Region 'open-button' {
  679. substructure layout.Region 'arrow'
  680. }
  681. },
  682. ComboBoxBase extends Control {
  683. pseudoclass 'editable',
  684. pseudoclass 'showing',
  685. pseudoclass 'armed'
  686. substructure layout.StackPane 'arrow-button' {
  687. substructure layout.StackPane 'arrow'
  688. }
  689. },
  690. ComboBox extends ComboBoxBase {
  691. substructure ListCell 'list-cell',
  692. substructure TextField 'text-input',
  693. substructure PopupControl 'combo-box-popup' {
  694. substructure ListView 'list-view' {
  695. substructure ListCell 'list-cell'
  696. }
  697. }
  698. },
  699. Hyperlink extends ButtonBase {
  700. pseudoclass 'visited'
  701. substructure Label 'label'
  702. },
  703. IndexedCell extends Cell {
  704. pseudoclass 'even',
  705. pseudoclass 'odd'
  706. },
  707. Label extends Labeled {
  708.  
  709. },
  710. ListCell extends IndexedCell {
  711.  
  712. },
  713. ListView extends Control {
  714. enum '-fx-orientation' default 'horizontal' {
  715. 'horizontal','vertical'
  716. }
  717. pseudoclass 'horizontal',
  718. pseudoclass 'vertical'
  719. },
  720. Menu extends MenuItem {
  721. pseudoclass 'showing'
  722. },
  723. MenuBar extends Control {
  724. boolean '-fx-use-system-menu-bar' default false
  725. substructure Menu 'menu'
  726. },
  727. MenuButton extends ButtonBase {
  728. pseudoclass 'openvertically',
  729. pseudoclass 'showing'
  730. },
  731. MenuItem extends Control {
  732.  
  733. },
  734. PasswordField extends TextField {
  735.  
  736. },
  737. PopupControl extends stage.PopupWindow {
  738.  
  739. },
  740. ProgressBar extends ProgressIndicator {
  741.  
  742. },
  743. ProgressIndicator extends Control {
  744. '-fx-progress-color' default 'dodgerblue' {
  745. <paint>
  746. }
  747. pseudoclass 'determinate',
  748. pseudoclass 'indetermindate',
  749. substructure layout.StackPane 'indicator',
  750. substructure layout.StackPane 'progress',
  751. substructure text.Text 'percentage',
  752. substructure layout.StackPane 'tick'
  753. },
  754. RadioButton extends ToggleButton {
  755. substructure layout.Region 'radio' {
  756. substructure layout.Region 'dot'
  757. },
  758. substructure Label 'label'
  759. },
  760. RadioMenuItem extends MenuItem {
  761. pseudoclass 'selected'
  762. },
  763. ScrollBar extends Control {
  764. enum '-fx-orientation' default 'horizontal' {
  765. 'horizontal','vertical'
  766. },
  767. number '-fx-block-increment' default 10d,
  768. number '-fx-unit-increment' default 1d
  769. pseudoclass 'vertical',
  770. pseudoclass 'horizontal'
  771. substructure layout.StackPane 'decrement-button' {
  772. substructure layout.StackPane 'decrement-arrow'
  773. },
  774. substructure layout.StackPane 'track',
  775. substructure layout.StackPane 'thumb',
  776. substructure layout.StackPane 'increment-button' {
  777. substructure layout.StackPane 'increment-arrow'
  778. }
  779. },
  780. ScrollPane extends Control {
  781. boolean '-fx-fit-to-width' default false,
  782. boolean '-fx-fit-to-height' default false,
  783. boolean '-fx-pannable' default false,
  784. enum '-fx-hbar-policy' default 'always' {
  785. 'never','always','as-needed'
  786. },
  787. enum '-fx-vbar-policy' default 'always' {
  788. 'never','always','as-needed'
  789. }
  790. pseudoclass 'pannable',
  791. pseudoclass 'fitToWidth',
  792. pseudoclass 'fitToHeight'
  793. substructure ScrollBar 'scroll-bar:vertical',
  794. substructure ScrollBar 'scroll-bar:horizontal',
  795. substructure layout.StackPane 'corner'
  796. },
  797. Separator extends Control {
  798. enum '-fx-orientation' default 'horizontal' {
  799. 'horizontal','vertical'
  800. },
  801. enum '-fx-halignment' default 'center' {
  802. 'left','center','right'
  803. },
  804. enum '-fx-valignment' default 'center' {
  805. 'top','center','baseline','bottom'
  806. }
  807. pseudoclass 'horizontal',
  808. pseudoclass 'vertical'
  809. substructure layout.Region 'line'
  810. },
  811. Slider extends Control {
  812. enum '-fx-orientation' default 'horizontal' {
  813. 'horizontal','vertical'
  814. },
  815. boolean '-fx-show-tick-labels' default false,
  816. boolean '-fx-show-tick-marks' default false,
  817. number '-fx-major-tick-unit' default 25d,
  818. integer '-fx-minor-tick-count' default 3,
  819. boolean '-fx-show-tick-labels' default false,
  820. boolean '-fx-snap-to-ticks' default false,
  821. integer '-fx-block-increment' default 10
  822. pseudoclass 'horizontal',
  823. pseudoclass 'vertical'
  824. substructure chart.NumberAxis 'axis',
  825. substructure layout.Region 'track',
  826. substructure layout.Region 'thumb'
  827. },
  828. SplitMenuButton extends MenuButton {
  829.  
  830. },
  831. SplitPane extends Control {
  832. enum '-fx-orientation' default '' {
  833. 'horizontal','vertical'
  834. }
  835. pseudoclass 'horizontal',
  836. pseudoclass 'vertical'
  837. substructure layout.StackPane 'split-pane-divider' {
  838. substructure layout.StackPane 'vertical-grabber',
  839. substructure layout.StackPane 'horizontal-grabber'
  840. }
  841. },
  842. Tab {
  843.  
  844. },
  845. TabPane extends Control {
  846. number '-fx-tab-min-width' default 0d,
  847. number '-fx-tab-max-width' default 100000000d, //TODO Double.MAX
  848. number '-fx-tab-min-height' default 0d,
  849. number '-fx-tab-max-height' default 100000000d, //TODO Double.MAX
  850. pseudoclass 'top',
  851. pseudoclass 'right',
  852. pseudoclass 'bottom',
  853. pseudoclass 'left'
  854. substructure layout.StackPane 'tab-header-area' {
  855. substructure layout.StackPane 'headers-region',
  856. substructure layout.StackPane 'tab-header-background',
  857. substructure layout.StackPane 'control-buttons-tab' {
  858. substructure layout.Pane 'tab-down-button' {
  859. substructure layout.StackPane 'arrow'
  860. }
  861. },
  862. substructure Tab 'tab' {
  863. substructure Label 'tab-label',
  864. substructure layout.StackPane 'tab-close-button'
  865. }
  866. },
  867. substructure layout.StackPane 'tab-content-area'
  868. },
  869. TableView extends Control {
  870. pseudoclass 'cell-selection',
  871. pseudoclass 'row-selection'
  872. substructure layout.Region 'column-resize-line',
  873. substructure layout.Region 'column-overlay',
  874. substructure layout.StackPane 'placeholder',
  875. substructure layout.StackPane 'column-header-background' {
  876. substructure layout.StackPane 'nested-column-header' {
  877. substructure Label 'column-header' // Not documented!!
  878. },
  879. substructure layout.Region 'filler',
  880. substructure layout.StackPane 'show-hide-columns-button' {
  881. substructure layout.StackPane 'show-hide-column-image'
  882. },
  883. substructure layout.StackPane 'column-drag-header' {
  884. substructure Label 'label'
  885. }
  886. }
  887. },
  888. TextArea extends TextInputControl {
  889. substructure ScrollPane 'scroll-pane' {
  890. substructure layout.Region 'content'
  891. }
  892. },
  893. TextInputControl extends Control {
  894. '-fx-font' default 'null' {
  895. <font>
  896. },
  897. '-fx-text-fill' default 'black' {
  898. <paint>
  899. },
  900. '-fx-prompt-text-fill' default 'gray' {
  901. <paint>
  902. },
  903. '-fx-highlight-fill' default 'dodgerblue' {
  904. <paint>
  905. },
  906. '-fx-highlight-text-fill' default 'white' {
  907. <paint>
  908. },
  909. boolean '-fx-display-caret' default true
  910. pseudoclass 'readonly'
  911. },
  912. TextField extends TextInputControl {
  913. enum '-fx-alignment' default 'center-left' {
  914. 'top-left','top-center','top-right','center-left',
  915. 'center','center-right','bottom-left',
  916. 'bottom-center','bottom-right',
  917. 'baseline-left','baseline-center','baseline-right'
  918. }
  919. },
  920. TitledPane extends Labeled {
  921. boolean '-fx-animated' default true,
  922. boolean '-fx-collapsible' default true
  923. pseudoclass 'expanded',
  924. pseudoclass 'collapsed'
  925. substructure layout.HBox 'title' {
  926. substructure Label 'text',
  927. substructure layout.StackPane 'arrow-button' {
  928. substructure layout.StackPane 'arrow'
  929. }
  930. },
  931. substructure layout.StackPane 'content'
  932. },
  933. ToggleButton extends ButtonBase {
  934. pseudoclass 'selected'
  935. },
  936. ToolBar extends Control {
  937. enum '-fx-orientation' default 'horizontal' {
  938. 'horizontal','vertical'
  939. }
  940. pseudoclass 'horizontal',
  941. pseudoclass 'vertical'
  942. substructure layout.StackPane 'tool-bar-overflow-button' {
  943. substructure layout.StackPane 'arrow'
  944. }
  945. },
  946. Tooltip extends PopupControl {
  947. enum '-fx-text-alignment' default 'left' {
  948. 'left','center','right','justify'
  949. },
  950. enum '-fx-text-overrun' default 'ellipsis' {
  951. 'center-ellipsis','center-word-ellipsis','clip',
  952. 'ellipsis','leading-ellipsis','leading-word-ellipsis',
  953. 'word-ellipsis'
  954. },
  955. boolean '-fx-wrap-text' default false,
  956. '-fx-graphic' default 'null' {
  957. <uri>
  958. },
  959. enum '-fx-content-display' default 'left' {
  960. 'top','right','bottom','left','center','right','graphic-only',
  961. 'text-only'
  962. },
  963. '-fx-graphic-text-gap' default '4' {
  964. <size>
  965. },
  966. '-fx-font' default 'Font.DEFAULT' {
  967. <font>
  968. }
  969. substructure Label 'label',
  970. substructure layout.StackPane 'page-corner'
  971. },
  972. TreeCell extends IndexedCell {
  973. '-fx-indent' default '10' {
  974. <size>
  975. }
  976. pseudoclass 'expanded',
  977. pseudoclass 'collapsed'
  978. },
  979. TreeView extends Control {
  980.  
  981. }
  982. }
  983. package chart {
  984. // com.sun.javafx.chart.LegendItem
  985. LegendItem {
  986.  
  987. },
  988. AreaChart extends XYChart {
  989. substructure Node 'chart-series-area-line series<i> default-color<j>',
  990. substructure shape.Path 'chart-series-area-fill series<i> default-color<j>',
  991. substructure shape.Path 'chart-area-symbol series<i> data<j> default-color<k>',
  992. substructure LegendItem 'chart-area-symbol series<i> area-legend-symbol default-color<j>'
  993. },
  994. BarChart extends XYChart {
  995. number '-fx-bar-gap' default 4d,
  996. number '-fx-category-gap' default 10d
  997. // substructure 'bar-chart',
  998. substructure Node 'chart-bar series<i> data<j> default-color<k>',
  999. substructure LegendItem 'chart-bar series<i> bar-legend-symbol default-color<j>'
  1000. },
  1001. BubbleChart extends XYChart {
  1002. substructure Node 'chart-bubble series<i> data<j> default-color<k>',
  1003. substructure LegendItem 'chart-bubble series<i> bubble-legend-symbol default-color<j>'
  1004. },
  1005. Chart extends layout.Region {
  1006. enum '-fx-legend-side' default 'bottom' {
  1007. 'top','left','bottom','right' //TODO Not documented
  1008. },
  1009. boolean '-fx-legend-visible' default true,
  1010. enum '-fx-title-side' default 'top' {
  1011. 'top','left','bottom','right' //TODO Not documented
  1012. }
  1013. substructure control.Label 'chart-title',
  1014. substructure layout.Pane 'chart-content'
  1015. },
  1016. LineChart extends XYChart {
  1017. boolean '-fx-symbol-visible' default true
  1018. substructure Node 'chart-series-line series<i> default-color<j>',
  1019. substructure Node 'chart-line-symbol series<i> data<j> default-color<k>',
  1020. substructure LegendItem 'chart-line-symbol series<i> default-color<j>'
  1021. },
  1022. ScatterChart extends XYChart {
  1023. substructure Node 'chart-symbol series<i> data<j> default-color<k>',
  1024. substructure LegendItem 'chart-symbol series<i> default-color<k>'
  1025. },
  1026. PieChart extends Chart {
  1027. boolean '-fx-clockwise' default true,
  1028. boolean '-fx-pie-label-visible' default true,
  1029. '-fx-label-line-length' default '20' {
  1030. <size>
  1031. },
  1032. number '-fx-start-angle' default 0d
  1033. substructure Node 'chart-pie data<i> default-color<j>',
  1034. substructure shape.Path 'chart-pie-label-line',
  1035. substructure text.Text 'chart-pie-label',
  1036. substructure LegendItem 'pie-legend-symbol'
  1037. },
  1038. XYChart extends Chart {
  1039. boolean '-fx-alternative-column-fill-visible' default true,
  1040. boolean '-fx-alternative-row-fill-visible' default true,
  1041. boolean '-fx-horizontal-grid-lines-visible' default true,
  1042. boolean '-fx-horizontal-zero-line-visible' default true,
  1043. boolean '-fx-vertical-grid-lines-visible' default true,
  1044. boolean '-fx-vertical-zero-line-visible' default true
  1045. substructure Group 'plot-content',
  1046. substructure layout.Region 'chart-plot-background',
  1047. substructure shape.Path 'chart-alternative-column-fill',
  1048. substructure shape.Path 'chart-alternative-row-fill',
  1049. substructure shape.Path 'chart-vertical-grid-lines',
  1050. substructure shape.Path 'chart-horizontal-grid-lines',
  1051. substructure shape.Line 'chart-vertical-zero-line',
  1052. substructure shape.Line 'chart-horizontal-zero-line'
  1053. },
  1054. Axis extends layout.Region {
  1055. enum '-fx-side' default 'null' {
  1056. 'top','left','bottom','right' //TODO Not documented
  1057. },
  1058. '-fx-tick-length' default '8' {
  1059. <size>
  1060. },
  1061. '-fx-tick-label-font' default '8 system' {
  1062. <font>
  1063. },
  1064. '-fx-tick-label-fill' default '8 system' {
  1065. <paint>
  1066. },
  1067. '-fx-tick-label-gap' default '8 system' {
  1068. <size>
  1069. },
  1070. boolean '-fx-tick-mark-visible' default true,
  1071. boolean '-fx-tick-labels-visible' default true
  1072. substructure text.Text 'axis-label',
  1073. substructure shape.Path 'axis-tick-mark',
  1074. substructure text.Text 'tick-mark'
  1075. },
  1076. ValueAxis extends Axis {
  1077. '-fx-minor-tick-length' default '5' {
  1078. <size>
  1079. },
  1080. '-fx-minor-tick-count' default '5' {
  1081. <size>
  1082. },
  1083. boolean '-fx-minor-tick-visible' default true
  1084. substructure shape.Path 'axis-minor-tick-mark'
  1085. },
  1086. NumberAxis extends ValueAxis {
  1087. number '-fx-tick-unit' default 5d
  1088. },
  1089. CategoryAxis extends Axis {
  1090. number '-fx-start-margin' default 5d,
  1091. number '-fx-end-margin' default 5d,
  1092. boolean '-fx-gap-start-and-end' default true
  1093. },
  1094. Legend extends layout.Region {
  1095. substructure control.Label 'chart-legend-item',
  1096. substructure Node 'chart-legend-item-symbol'
  1097. }
  1098. }
  1099. }
  1100. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement