com.mindfusion.diagramming
Class Column

java.lang.Object
  extended by com.mindfusion.diagramming.Column
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable

public class Column
extends java.lang.Object
implements java.lang.Cloneable, java.io.Externalizable

Represents a column of cells in a table.

See Also:
Serialized Form

Constructor Summary
Column()
          Used internally to implement serialization functionality.
Column(TableNode table)
          Initializes a new instance of the Column class and assigns the specified table as its parent.
 
Method Summary
 java.lang.Object clone()
          Copies the column properties to a new Column instance.
 int getColumnStyle()
          Gets a value indicating whether this column is automatically resized when the table is resized.
 float getWidth()
          Gets the width of this column.
protected  void loadFromXml(org.w3c.dom.Element xmlElement, XmlPersistContext context)
           
 void readExternal(java.io.ObjectInput in)
          Implements Externalizable.
protected  void saveToXml(org.w3c.dom.Element xmlElement, XmlPersistContext context)
           
 void setColumnStyle(int value)
          Sets a value indicating whether this column should be automatically resized when the table is resized.
 void setWidth(float value)
          Sets the width of this column and all cells inside it.
 void writeExternal(java.io.ObjectOutput out)
          Implements Externalizable.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Column

public Column(TableNode table)
Initializes a new instance of the Column class and assigns the specified table as its parent.

Parameters:
table - The TableNode that contains this column.

Column

public Column()
Used internally to implement serialization functionality.

Method Detail

clone

public java.lang.Object clone()
Copies the column properties to a new Column instance.

Overrides:
clone in class java.lang.Object
Returns:
A Column instance.

getWidth

public float getWidth()
Gets the width of this column.

Returns:
A float value specifying the column width.

setWidth

public void setWidth(float value)
Sets the width of this column and all cells inside it.

Parameters:
value - A float value specifying the column width.

getColumnStyle

public int getColumnStyle()
Gets a value indicating whether this column is automatically resized when the table is resized.

Returns:
One of the ColumnStyle constants.

setColumnStyle

public void setColumnStyle(int value)
Sets a value indicating whether this column should be automatically resized when the table is resized.

Parameters:
value - One of the ColumnStyle constants.

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Implements Externalizable.

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Implements Externalizable.

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

saveToXml

protected void saveToXml(org.w3c.dom.Element xmlElement,
                         XmlPersistContext context)

loadFromXml

protected void loadFromXml(org.w3c.dom.Element xmlElement,
                           XmlPersistContext context)
                    throws javax.xml.transform.TransformerException
Throws:
javax.xml.transform.TransformerException