|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yworks.yfiles.server.graphml.flexio.data.Stripe
Abstract base class for a Table's
Column or
Row.
| Constructor Summary | |
protected |
Stripe()
|
| Method Summary | |
void |
addLabel(Label label)
Adds a new Label to the stripe. |
Label |
addLabel(java.lang.String text)
Creates and adds a new label with the default label model parameter and style to this stripe. |
Label |
addLabel(java.lang.String text,
ILabelModelParameter labelModelParameter,
ILabelStyle style)
Creates and adds a new label to this stripe. |
double |
getActualSize()
Gets the actual size of this stripe. |
abstract java.util.ArrayList |
getChildren()
Gets a list of this stripe's direct children. |
double |
getEffectiveMinSize()
Gets the maximum of minimum size and the insets. |
Insets |
getInsets()
Gets the insets of this stripe. |
java.util.ArrayList |
getLabels()
The list of this stripe's labels. |
java.util.ArrayList |
getLeaves()
Gets all leaf stripes which are descendants of this stripe. |
double |
getMinimumSize()
Gets the minimum size of this stripe. |
double |
getSize()
Gets the size of this stripe. |
INodeStyle |
getStyle()
This stripe's style. |
Table |
getTable()
Gets the table which owns the Column
or Row. |
void |
setInsets(Insets insets)
Sets the insets of this stripe. |
void |
setMinimumSize(double minimumSize)
Sets the minimum size of this stripe. |
void |
setSize(double size)
Sets the size of this stripe. |
void |
setStyle(INodeStyle style)
Sets this stripe's style. |
protected void |
setTable(Table table)
Sets the table which owns the Column
or Row.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected Stripe()
| Method Detail |
public Table getTable()
Column
or Row.
protected void setTable(Table table)
Column
or Row.
Adding the stripe with addColumn or addRow always sets the table and parent stripe correctly.
This implementation also sets the table of all child stripes.
table - The table which owns this stripe.public Insets getInsets()
public void setInsets(Insets insets)
insets - The insets to set.public double getSize()
The size of a Column is its
width, the size of a Row is its height.
public void setSize(double size)
The size of a Column is its
width, the size of a Row is its height.
size - The size.public double getMinimumSize()
The size of a Column is its
width, the size of a Row is its height.
public void setMinimumSize(double minimumSize)
The size of a Column is its
width, the size of a Row is its height.
minimumSize - The minimum size.public java.util.ArrayList getLabels()
Developers should not add labels directly to this list but use addLabel(String) or
addLabel(String, com.yworks.yfiles.server.graphml.flexio.data.ILabelModelParameter, com.yworks.yfiles.server.graphml.flexio.data.ILabelStyle)
instead.
public void addLabel(Label label)
label - The label to add.public Label addLabel(java.lang.String text)
text - The label text.
public Label addLabel(java.lang.String text,
ILabelModelParameter labelModelParameter,
ILabelStyle style)
text - The text.labelModelParameter - The model parameter.style - The label style.public INodeStyle getStyle()
The rendering of columns and rows is done by a INodeStyle.
public void setStyle(INodeStyle style)
The rendering of columns and rows is done by a INodeStyle.
style - The stripe's style.public abstract java.util.ArrayList getChildren()
Subclasses have to override this method to return a list of their direct children.
public double getActualSize()
If a stripe has children the actual size is the accumulated size of all descendants
plus the insets of this stripe.
If it doesn't have children the explicit getSize() size} is returned.
public double getEffectiveMinSize()
minimum size and the insets.
public java.util.ArrayList getLeaves()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||