Class DisplayOptions
java.lang.Object
com.orchestranetworks.addon.dmdv.model.extension.DisplayOptions
Provides configuration options for displaying a graph.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorDescriptionCreates default display options.DisplayOptions
(boolean cardinalityOnLinksDisplayed, boolean cardinalityOnFieldsDisplayed, boolean labelOnLinksDisplayed, boolean hiddenFieldsDisplayed, boolean foreignKeyDisplayed) Creates custom display options.DisplayOptions
(boolean cardinalityOnLinksDisplayed, boolean cardinalityOnFieldsDisplayed, boolean labelOnLinksDisplayed, boolean hiddenFieldsDisplayed, boolean foreignKeyDisplayed, boolean computedAttributes, boolean association, boolean inheritedField, boolean linkedFields) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Returnstrue
if the graph must display cardinality on fields;false
otherwise.boolean
Returnstrue
if the graph must display cardinality on links;false
otherwise.boolean
boolean
Returnstrue
if the graph must display foreign keys as fields;false
if the graph only displays foreign keys as links.boolean
Returnstrue
if the graph must display hidden fields;false
otherwise.boolean
boolean
Returnstrue
if the graph must display labels on links;false
otherwise.boolean
void
setAssociation
(boolean association) void
setCardinalityOnFieldsDisplayed
(boolean cardinalityOnFieldsDisplayed) Sets the option to display cardinality on fields.void
setCardinalityOnLinksDisplayed
(boolean cardinalityOnLinksDisplayed) Sets option to display cardinality on links.void
setComputedAttributes
(boolean computedAttributes) void
setForeignKeyDisplayed
(boolean foreignKeyDisplayed) Sets the option to display foreign keys as fields and links, or just as links.void
setHiddenFieldsDisplayed
(boolean hiddenFieldsDisplayed) Sets the option to display hidden fields.void
setInheritedField
(boolean inheritedField) void
setLabelOnLinksDisplayed
(boolean labelOnLinksDisplayed) Sets the option to display label on links.void
setLinkedFields
(boolean linkedFields)
-
Constructor Details
-
DisplayOptions
public DisplayOptions()Creates default display options. -
DisplayOptions
public DisplayOptions(boolean cardinalityOnLinksDisplayed, boolean cardinalityOnFieldsDisplayed, boolean labelOnLinksDisplayed, boolean hiddenFieldsDisplayed, boolean foreignKeyDisplayed) Creates custom display options.- Parameters:
cardinalityOnLinksDisplayed
- set totrue
if cardinality must be displayed on linkscardinalityOnFieldsDisplayed
- set totrue
if cardinality must be displayed on fieldslabelOnLinksDisplayed
- set totrue
if the label must be displayed on linkshiddenFieldsDisplayed
- set totrue
if hidden fields from the model must be visible in the graph viewforeignKeyDisplayed
- set totrue
if foreign keys must be displayed as fields rather than just links
-
DisplayOptions
public DisplayOptions(boolean cardinalityOnLinksDisplayed, boolean cardinalityOnFieldsDisplayed, boolean labelOnLinksDisplayed, boolean hiddenFieldsDisplayed, boolean foreignKeyDisplayed, boolean computedAttributes, boolean association, boolean inheritedField, boolean linkedFields)
-
-
Method Details
-
isCardinalityOnLinksDisplayed
public boolean isCardinalityOnLinksDisplayed()Returnstrue
if the graph must display cardinality on links;false
otherwise. -
setCardinalityOnLinksDisplayed
public void setCardinalityOnLinksDisplayed(boolean cardinalityOnLinksDisplayed) Sets option to display cardinality on links. -
isCardinalityOnFieldsDisplayed
public boolean isCardinalityOnFieldsDisplayed()Returnstrue
if the graph must display cardinality on fields;false
otherwise. -
setCardinalityOnFieldsDisplayed
public void setCardinalityOnFieldsDisplayed(boolean cardinalityOnFieldsDisplayed) Sets the option to display cardinality on fields. -
isLabelOnLinksDisplayed
public boolean isLabelOnLinksDisplayed()Returnstrue
if the graph must display labels on links;false
otherwise. -
setLabelOnLinksDisplayed
public void setLabelOnLinksDisplayed(boolean labelOnLinksDisplayed) Sets the option to display label on links. -
isHiddenFieldsDisplayed
public boolean isHiddenFieldsDisplayed()Returnstrue
if the graph must display hidden fields;false
otherwise. -
setHiddenFieldsDisplayed
public void setHiddenFieldsDisplayed(boolean hiddenFieldsDisplayed) Sets the option to display hidden fields. -
isForeignKeyDisplayed
public boolean isForeignKeyDisplayed()Returnstrue
if the graph must display foreign keys as fields;false
if the graph only displays foreign keys as links. -
setForeignKeyDisplayed
public void setForeignKeyDisplayed(boolean foreignKeyDisplayed) Sets the option to display foreign keys as fields and links, or just as links. -
isComputedAttributes
public boolean isComputedAttributes() -
setComputedAttributes
public void setComputedAttributes(boolean computedAttributes) -
isAssociation
public boolean isAssociation() -
setAssociation
public void setAssociation(boolean association) -
isInheritedField
public boolean isInheritedField() -
setInheritedField
public void setInheritedField(boolean inheritedField) -
isLinkedFields
public boolean isLinkedFields() -
setLinkedFields
public void setLinkedFields(boolean linkedFields)
-