|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.gui.conceptmap.DefaultConceptMapController
Field Summary | |
protected double |
currentScale
|
protected static java.awt.Color |
ENTITY_COLOR
|
protected static java.awt.Color |
ENTITY_FONT_COLOR
|
protected static java.awt.Color |
ENTITY_SELECTED_COLOR
|
protected static java.awt.Dimension |
ENTITY_SIZE
|
protected java.awt.Font |
entityFont
|
protected static java.awt.Dimension |
INSETS
|
protected static java.awt.Color |
RELATION_COLOR
|
protected static java.awt.Color |
RELATION_FONT_COLOR
|
protected static java.awt.Color |
RELATION_SELECTED_COLOR
|
protected java.awt.Font |
relationFont
|
Constructor Summary | |
DefaultConceptMapController()
|
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 to use when diplaying this 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? |
protected void |
updateFonts(double scale)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.awt.Dimension ENTITY_SIZE
protected static final java.awt.Color ENTITY_COLOR
protected static final java.awt.Color ENTITY_SELECTED_COLOR
protected static final java.awt.Color RELATION_COLOR
protected static final java.awt.Color RELATION_SELECTED_COLOR
protected static final java.awt.Color ENTITY_FONT_COLOR
protected static final java.awt.Color RELATION_FONT_COLOR
protected static final java.awt.Dimension INSETS
protected java.awt.Font entityFont
protected double currentScale
protected java.awt.Font relationFont
Constructor Detail |
public DefaultConceptMapController()
Method Detail |
public java.awt.Color getEntityColor(Entity entity)
getEntityColor
in interface ConceptMapController
public java.awt.Color getEntityFontColor(Entity entity)
getEntityFontColor
in interface ConceptMapController
public java.awt.Color getEntitySelectedColor(Entity entity)
getEntitySelectedColor
in interface ConceptMapController
public java.awt.Dimension getEntitySize()
getEntitySize
in interface ConceptMapController
public java.awt.Dimension getViewInsets()
getViewInsets
in interface ConceptMapController
protected void updateFonts(double scale)
public java.awt.Font getEntityFont(Entity entity, double scale)
getEntityFont
in interface ConceptMapController
public java.awt.Color getRelationColor(Relation relation)
getRelationColor
in interface ConceptMapController
public java.awt.Color getRelationSelectedColor(Relation relation)
getRelationSelectedColor
in interface ConceptMapController
public java.awt.Color getRelationFontColor(Relation entity)
getRelationFontColor
in interface ConceptMapController
public java.awt.Font getRelationFont(Relation relation, double scale)
getRelationFont
in interface ConceptMapController
public boolean showEntityNames(double scale)
showEntityNames
in interface ConceptMapController
scale
- The current scale (with 1.0 meaning normal scale).public boolean showRelationNames(double scale)
showRelationNames
in interface ConceptMapController
scale
- The current scale (with 1.0 meaning normal scale).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |