モジュール java.desktop
パッケージ javax.swing.text.html

クラスCSS

java.lang.Object
javax.swing.text.html.CSS
すべての実装されたインタフェース:
Serializable

public class CSS extends Object implements Serializable
CSS属性のセットを型保証された列挙型として定義します。 HTML View実装は、CSS属性を使用してどのように描画するかを決定します。 同時にCSS/HTML/StyleConstantsをマップするメソッドを定義します。 たとえば、フォントのような任意の短縮形プロパティは組込みプロパティにマップされています。

次に、レンダリング・エンジンがサポートするCSSプロパティを挙げます。

  • font-family
  • font-style
  • font-size (相対単位をサポート)
  • font-weight
  • font
  • color
  • background-color (透明の例外を含む)
  • background-image
  • background-repeat
  • background-position
  • バックグラウンド
  • text-decoration (点滅やオーバーラインの例外を含む)
  • vertical-align (supおよびsuperのみ)
  • text-align (justifyはcenterとして扱われる)
  • margin-top
  • margin-right
  • margin-bottom
  • margin-left
  • margin
  • padding-top
  • padding-right
  • padding-bottom
  • padding-left
  • padding
  • border-top-style
  • border-right-style
  • border-bottom-style
  • border-left-style
  • border-style (inset、outsetおよびnoneのみサポート)
  • border-top-color
  • border-right-color
  • border-bottom-color
  • border-left-color
  • border-color
  • list-style-image
  • list-style-type
  • list-style-position
次がモデル化されていますが、現在は描画されていません。
  • font-variant
  • background-attachment (バックグラウンドは常にscrollとして扱われる)
  • word-spacing
  • letter-spacing
  • text-indent
  • text-transform
  • line-height
  • border-top-width (ボーダーを使用する必要があることを示す場合に使用)
  • border-right-width
  • border-bottom-width
  • border-left-width
  • border-width
  • border-top
  • border-right
  • border-bottom
  • border-left
  • border
  • width
  • height
  • float
  • clear
  • display
  • white-space
  • list-style

ノート: 特にノートがないかぎり、当分の間相対単位をサポートせず、p {margin-top :10% }を上部マージン指定なしと見なします。

外部仕様
関連項目: