jcreek.gui.conceptmap
Interface ConceptMapController

All Known Implementing Classes:
DefaultConceptMapController

public interface ConceptMapController


Method Summary
 java.awt.Color getEntityColor(Entity entity)
          The color to use when diplaying this entity.
 java.awt.Font getEntityFont(Entity entity, double scale)
          The font to use when displaying this entity.
 java.awt.Color getEntityFontColor(Entity entity)
          The color of the font used to draw the entity fonts.
 java.awt.Color getEntitySelectedColor(Entity entity)
          The color to draw the "selection cross" on the entity if it is selected.
 java.awt.Dimension getEntitySize()
          The size of the circle representing an entity.
 java.awt.Color getRelationColor(Relation relation)
          The color to use when diplaying this relation.
 java.awt.Font getRelationFont(Relation relation, double scale)
          The font to use when displaying this entity.
 java.awt.Color getRelationFontColor(Relation entity)
          The color of the font used to draw the relation fonts.
 java.awt.Color getRelationSelectedColor(Relation relation)
          The color of a selected relation.
 java.awt.Dimension getViewInsets()
          The extra border space drawn outside the minimal square occupied by all the entities in the model.
 boolean showEntityNames(double scale)
          Should entity names be displayed?
 boolean showRelationNames(double scale)
          Should relation names be displayed?
 

Method Detail

getEntityColor

public java.awt.Color getEntityColor(Entity entity)
The color to use when diplaying this entity.


getEntityFontColor

public java.awt.Color getEntityFontColor(Entity entity)
The color of the font used to draw the entity fonts.


getRelationFontColor

public java.awt.Color getRelationFontColor(Relation entity)
The color of the font used to draw the relation fonts.


getRelationSelectedColor

public java.awt.Color getRelationSelectedColor(Relation relation)
The color of a selected relation.


getEntitySelectedColor

public java.awt.Color getEntitySelectedColor(Entity entity)
The color to draw the "selection cross" on the entity if it is selected.


getEntitySize

public java.awt.Dimension getEntitySize()
The size of the circle representing an entity.


getViewInsets

public java.awt.Dimension getViewInsets()
The extra border space drawn outside the minimal square occupied by all the entities in the model. This means that the entity with the lowest x value will be drawn at exactly getViewInsets().width in the view.


getEntityFont

public java.awt.Font getEntityFont(Entity entity,
                                   double scale)
The font to use when displaying this entity.


getRelationColor

public java.awt.Color getRelationColor(Relation relation)
The color to use when diplaying this relation.


getRelationFont

public java.awt.Font getRelationFont(Relation relation,
                                     double scale)
The font to use when displaying this entity.


showEntityNames

public boolean showEntityNames(double scale)
Should entity names be displayed?

Parameters:
scale - The current scale (with 1.0 meaning normal scale).

showRelationNames

public boolean showRelationNames(double scale)
Should relation names be displayed?

Parameters:
scale - The current scale (with 1.0 meaning normal scale).


Created at IDI, NTNU by the Artificial Intelligence and Learning group