|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.text.StyleContext.SmallAttributeSet
public class StyleContext.SmallAttributeSet
このクラスは、少数の属性を配列として格納します。格納形式は、「キー, 値, キー, 値, 」の形式です。この属性セットのサイズは、配列の長さを 2 で割った値です。デフォルトでは、このクラスは、複数の属性をコンパクトかつ共有可能な形式で格納するために使われます。
| 入れ子のクラスの概要 |
|---|
| インタフェース javax.swing.text.AttributeSet から継承された入れ子のクラス/インタフェース |
|---|
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute |
| フィールドの概要 |
|---|
| インタフェース javax.swing.text.AttributeSet から継承されたフィールド |
|---|
NameAttribute, ResolveAttribute |
| コンストラクタの概要 | |
|---|---|
StyleContext.SmallAttributeSet(AttributeSet attrs)
|
|
StyleContext.SmallAttributeSet(Object[] attributes)
|
|
| メソッドの概要 | |
|---|---|
Object |
clone()
属性セットを複製します。 |
boolean |
containsAttribute(Object name,
Object value)
属性の名前と値が定義済みであるかどうかを判定します。 |
boolean |
containsAttributes(AttributeSet attrs)
属性セットが、指定された属性をすべて含んでいるかどうかを判定します。 |
AttributeSet |
copyAttributes()
属性セットをコピーします。 |
boolean |
equals(Object obj)
このオブジェクトを指定されたオブジェクトと比較します。 |
Object |
getAttribute(Object key)
属性の値を取得します。 |
int |
getAttributeCount()
定義されている属性の個数を取得します。 |
Enumeration<?> |
getAttributeNames()
すべての属性の名前を取得します。 |
AttributeSet |
getResolveParent()
オーバーライドしない場合、解決する親のデフォルトはこの親要素になります。 |
int |
hashCode()
この属性セットのためのハッシュコードを返します。 |
boolean |
isDefined(Object key)
指定された属性が定義済みであるかどうかを判定します。 |
boolean |
isEqual(AttributeSet attr)
2 つの属性セットが等しいかどうかを判定します。 |
String |
toString()
キーと値のペアを表す文字列を返します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public StyleContext.SmallAttributeSet(Object[] attributes)
public StyleContext.SmallAttributeSet(AttributeSet attrs)
| メソッドの詳細 |
|---|
public String toString()
Object 内の toStringpublic int hashCode()
Object 内の hashCodeObject.equals(java.lang.Object),
Hashtablepublic boolean equals(Object obj)
true になります。
Object 内の equalsobj - 比較対象のオブジェクト
true、そうでない場合は falseObject.hashCode(),
Hashtablepublic Object clone()
Object 内の cloneCloneablepublic int getAttributeCount()
AttributeSet 内の getAttributeCountAttributeSet.getAttributeCount()public boolean isDefined(Object key)
AttributeSet 内の isDefinedkey - 属性キー
AttributeSet.isDefined(java.lang.Object)public boolean isEqual(AttributeSet attr)
AttributeSet 内の isEqualattr - 比較の対象となる属性セット
AttributeSet.isEqual(javax.swing.text.AttributeSet)public AttributeSet copyAttributes()
AttributeSet 内の copyAttributesAttributeSet.copyAttributes()public Object getAttribute(Object key)
AttributeSet 内の getAttributekey - 属性名
AttributeSet.getAttribute(java.lang.Object)public Enumeration<?> getAttributeNames()
AttributeSet 内の getAttributeNamesAttributeSet.getAttributeNames()
public boolean containsAttribute(Object name,
Object value)
AttributeSet 内の containsAttributename - 属性名value - 属性値
AttributeSet.containsAttribute(java.lang.Object, java.lang.Object)public boolean containsAttributes(AttributeSet attrs)
AttributeSet 内の containsAttributesattrs - チェック対象の属性
AttributeSet.containsAttributes(javax.swing.text.AttributeSet)public AttributeSet getResolveParent()
AttributeSet 内の getResolveParentAttributeSet.getResolveParent()
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。