Package com.macrofocus.treemap
Class DefaultTreeMapField<N,Column>
- java.lang.Object
-
- com.macrofocus.treemap.AbstractTreeMapField<N,Column>
-
- com.macrofocus.treemap.DefaultTreeMapField<N,Column>
-
- All Implemented Interfaces:
TreeMapField<N,Column>
public class DefaultTreeMapField<N,Column> extends AbstractTreeMapField<N,Column>
The default implementation of a TreeMapField.
-
-
Constructor Summary
Constructors Constructor Description DefaultTreeMapField(TreeMapModel model, Column index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Column
getIndex()
The index of the column in the model.java.lang.String
getName()
Returns the name of the field.TreeMapFieldSettings<java.awt.Color,java.awt.Font>
getSettings()
protected TreeMapModel
getTreeMapModel()
java.lang.Class
getType()
Returns the most specific superclass for all the values.java.lang.Object
getValue(N node)
Returns the value for the specified row.int
hashCode()
boolean
isValid()
Indicates whether the field is valid.java.lang.String
toString()
-
Methods inherited from class com.macrofocus.treemap.AbstractTreeMapField
isEveryValueUnique
-
-
-
-
Constructor Detail
-
DefaultTreeMapField
public DefaultTreeMapField(TreeMapModel model, Column index)
-
-
Method Detail
-
getType
public java.lang.Class getType()
Returns the most specific superclass for all the values.- Returns:
- the common ancestor class of the object values.
-
getName
public java.lang.String getName()
Returns the name of the field.- Returns:
- the name of the field.
-
getValue
public java.lang.Object getValue(N node)
Returns the value for the specified row.- Parameters:
node
- the node whose value should be queried.- Returns:
- the value Object at the specified row.
-
isValid
public boolean isValid()
Indicates whether the field is valid.- Returns:
- true if it is valid, false otherwise.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getIndex
public Column getIndex()
The index of the column in the model.- Returns:
- the index of the column
-
getTreeMapModel
protected TreeMapModel getTreeMapModel()
- Specified by:
getTreeMapModel
in classAbstractTreeMapField<N,Column>
-
getSettings
public TreeMapFieldSettings<java.awt.Color,java.awt.Font> getSettings()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-