public class Row
extends java.lang.Object
implements java.io.Externalizable, java.lang.Cloneable
Constructor and Description |
---|
Row()
Used internally to implement serialization functionality.
|
Row(TableNode table)
Initializes a new instance of the Row class and assigns the
specified table as its parent.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Copies the row properties to a new Row instance.
|
AnchorPattern |
getAnchorPattern()
Gets the
AnchorPattern assigned to this row. |
boolean |
getExpanded()
Gets a value indicating whether the section of rows below this header
row is expanded or collapsed.
|
boolean |
getHeader()
Gets a value indicating whether this row is the header
of a section of rows.
|
float |
getHeight()
Gets the height of this row.
|
DiagramLinkList |
getIncomingLinks()
Gets a list of all links coming into this row.
|
DiagramLinkList |
getOutgoingLinks()
Gets a list of all links going out of this row.
|
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 |
setAnchorPattern(AnchorPattern value)
Sets the
AnchorPattern to whose point links should be aligned
when connecting to this row. |
void |
setExpanded(boolean value)
Expands or collapses the section of rows below this header row.
|
void |
setHeader(boolean value)
Sets a value indicating whether this row should be the header
of a section of rows.
|
void |
setHeight(float value)
Sets the height of this row and all cells inside it.
|
void |
writeExternal(java.io.ObjectOutput out)
Implements Externalizable.
|
public Row(TableNode table)
table
- The TableNode
that contains this row.public Row()
public java.lang.Object clone()
clone
in class java.lang.Object
Row
object.public float getHeight()
public void setHeight(float value)
value
- A float value specifying the row height.public boolean getHeader()
true
if this row is a header of an expandable
section of table rows, otherwise false
.public void setHeader(boolean value)
value
- true
if this row is a header of an expandable
section of table rows, otherwise false
.public boolean getExpanded()
true
if the section of rows that starts from
a header row is expanded, otherwise false
.public void setExpanded(boolean value)
value
- true
if the section of rows that starts from
a header row should be expanded, otherwise false
.public DiagramLinkList getIncomingLinks()
DiagramLinkList
containing the incoming links.public DiagramLinkList getOutgoingLinks()
DiagramLinkList
containing the outgoing links.public AnchorPattern getAnchorPattern()
AnchorPattern
assigned to this row.AnchorPattern
object defining the row's anchor points.public void setAnchorPattern(AnchorPattern value)
AnchorPattern
to whose point links should be aligned
when connecting to this row.value
- An AnchorPattern
object defining the row's anchor points.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
protected void saveToXml(org.w3c.dom.Element xmlElement, XmlPersistContext context)
protected void loadFromXml(org.w3c.dom.Element xmlElement, XmlPersistContext context) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException