Class DisplayOptions

java.lang.Object
com.orchestranetworks.addon.dmdv.model.extension.DisplayOptions

public final class DisplayOptions extends Object
Provides configuration options for displaying a graph.
Since:
1.0.0
  • 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 to true if cardinality must be displayed on links
      cardinalityOnFieldsDisplayed - set to true if cardinality must be displayed on fields
      labelOnLinksDisplayed - set to true if the label must be displayed on links
      hiddenFieldsDisplayed - set to true if hidden fields from the model must be visible in the graph view
      foreignKeyDisplayed - set to true 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()
      Returns true 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()
      Returns true 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()
      Returns true 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()
      Returns true 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()
      Returns true 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)