Servis-Rhino 4211B Betriebsanweisung Seite 261

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 298
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 260
select the Javadoc Location. We can now enter the path to the Javadoc URL on the web:
http://docs.oracle.com/javafx/2/api/
JavaFX Component Sizing
When a component is added to the screen, it will consume some screen real estate. But how much
space will it consume? That question is the subject of this part of the story.
First we will consider the notion that a component has a "preferred size". This is the size of the
component so that it has "just enough" space to show itself. In addition, a component has a
maximum size and a minimum size. The minimum size is the smallest size that it will allow itself
to be shown in and the maximum size is the maximum that it will allow itself to be grown to.
See also:
Working With Layouts in JavaFX - 06-2013
JavaFX CSS
Much of the visual appearance of a JavaFX application can be customized using a form of CSS.
Despite saying this and as we will shortly find, even though the format of a JavaFX CSS file is the
same as for web, do not be fooled into thinking that any knowledge you may have of web CSS can
be applied here. Although the general syntax for CSS definitions are the same, the meanings and
syntax for specific properties is completely different.
A JavaFX style property begins with "-fx-". It does this to ensure that there will be no confusion
between these properties and standard Web properties.
Every node within a scene graph can have a list of 0 or more class names associated with it. We
Page 261
Seitenansicht 260
1 2 ... 256 257 258 259 260 261 262 263 264 265 266 ... 297 298

Kommentare zu diesen Handbüchern

Keine Kommentare