Package com.wisecoders.dbs.diagram.model
Class Diagram<T extends Entity>
java.lang.Object
com.wisecoders.dbs.diagram.model.AbstractDiagram
com.wisecoders.dbs.diagram.model.Diagram<T>
- Type Parameters:
T
- is the type of entities
Is a diagram of entities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal javafx.beans.property.SimpleBooleanProperty
final javafx.beans.property.SimpleBooleanProperty
The groupFree keeps also the ordering on the screen.static int
final boolean
static final int
static final int
static final int
Fields inherited from class com.wisecoders.dbs.diagram.model.AbstractDiagram
BIT_CONNECTOR, BIT_ENTITY, cell, CHILD_RELATION, COST_END, COST_START, debugFludded, DECREMENTX, DECREMENTY, DEDUCED, dim_X, dim_Y, DIR_DOWN, DIR_LEFT, DIR_RIGHT, DIR_UP, HGHL, INCREMENTX, INCREMENTY, IS_TERMINATOR, ITERATE_COST, lengthTable, LINE, links, MANY_TO_MANY, MAP_CARDINALITY, MAP_COLOR, MAP_COST, MAP_DIR, MAP_MANDATORY_UNIQUENESS, MAP_TYPE, MAX_REL_SEARCH_CYCLE, REFRESH, REFRESH_TMPDIR, relationPositions, RESET_HGHL, RESET_SEL, RESET_TYPE, REVERSE_DIR, SEL, SHIFT_COLOR, SHIFT_DIR_FROM, SHIFT_DIR_TO, SHIFT_TMPDIR, SOURCE_MANDATORY, status, TARGET_MANDATORY, TYPE_CROSS, TYPE_MERGE, TYPE_STRAIGHT, TYPE_TERMINATOR_DEST, TYPE_TERMINATOR_SRC, VIRTUAL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddInSameGroupAs
(Depict<T> reference, Depict<T> toAdd) attachRecursive
(T entity, Point where, boolean includeEmptyEntities) void
attachRecursiveAndCreateGroupForHierarchicalEntities
(T entity, Point dropPoint) void
autoArrange
(ArrangerMode mode) void
autoArrange
(Group group) void
bringToFront
(Callout callout) void
bringToFront
(Depict<T> depict) void
bringToFront
(Shape shape) void
colorGroups
(boolean overrideTableColor) boolean
containsDepictFor
(Unit entity) createCallout
(Unit owner, Point position) Create a callout for this unit.createCallout
(String text, Point position) createGroup
(String name) createShape
(String text, Point position) final boolean
detachUndoable
(Depict<T> depict) final Depictable
dropCalloutUnduable
(Callout callout) findRelationsWithEntity
(Entity fromEntity, Entity toEntity) getCalloutFor
(Unit owner) static LineTextType
getDepictFor
(Unit unit) double
int
getTargetTerminatorCardinality
(com.wisecoders.dbs.diagram.fx.notation.Notation notation, Relation<T> relation) double
getWidth()
boolean
void
void
void
void
hideRelation
(Relation rel) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
final Depictable
moveUndoable
(Depictable depict, double toX, double toY) recursiveFindAndAttachChildrenEntities
(T entity, Point where, boolean includeEmptyEntities) void
redo()
void
refresh()
void
refresh
(boolean forAutoGrouping) void
void
setDefaultLineText
(LineTextType lineTextType) void
setHideRelations
(String hideRelationNames) void
setJoinedRouting
(boolean joinedRouting) void
setLineTextType
(LineTextType lineTextType) void
void
setShowDataType
(boolean showDataType) void
setShowDeducedFks
(boolean showDeducedFks) void
setShowPageBorders
(boolean showPageBorders) void
setShowPhysicalDictionaryName
(boolean showPhysicalDictionaryName) void
setShowPhysicalName
(boolean showPhysicalName) void
setShowSchemaName
(boolean showSchemaName) void
void
showAllEntityForeignKeys
(Entity entity) void
void
undo()
Methods inherited from class com.wisecoders.dbs.diagram.model.AbstractDiagram
debugCell, findRelations, formatOnCell, formatOnEvenCell, getNeighbourPixel, getRelationCardinality, getRelationCardinality, getStatus, hasEndTerminator, highlightLine, relationIsDrawn, setCellSizeFromFontSize, setStatus, vectorizeLine
-
Field Details
-
MARKER_FK
public static final int MARKER_FK- See Also:
-
MARKER_REF
public static final int MARKER_REF- See Also:
-
MARKER_UNLINKED
public static final int MARKER_UNLINKED- See Also:
-
headerY
public static int headerY -
depicts
The groupFree keeps also the ordering on the screen. -
groups
-
callouts
-
shapes
-
json
public final boolean json -
canUndo
public final javafx.beans.property.SimpleBooleanProperty canUndo -
canRedo
public final javafx.beans.property.SimpleBooleanProperty canRedo
-
-
Constructor Details
-
Diagram
public Diagram(boolean json)
-
-
Method Details
-
bringToFront
-
bringToFront
-
bringToFront
-
getEntity
-
createGroup
-
getGroup
-
addInSameGroupAs
-
isJoinedRouting
public boolean isJoinedRouting() -
setJoinedRouting
public void setJoinedRouting(boolean joinedRouting) -
setShowDeducedFks
public void setShowDeducedFks(boolean showDeducedFks) -
isShowDeducedFks
public boolean isShowDeducedFks() -
getMarker
-
hasMarker
-
setMarker
-
resetChanged
public void resetChanged() -
isChanged
public boolean isChanged() -
refresh
public void refresh() -
refresh
public void refresh(boolean forAutoGrouping) -
createCallout
-
createShape
-
createCallout
Create a callout for this unit. The unit or its entity has to be already in layout. Otherwise returns null.- Parameters:
owner
- to create forposition
- where to place- Returns:
- created hint or null if the unit does not belong to layout
-
getCalloutFor
-
isShowPageBorders
public boolean isShowPageBorders() -
setShowPageBorders
public void setShowPageBorders(boolean showPageBorders) -
isShowSchemaName
public boolean isShowSchemaName() -
setShowSchemaName
public void setShowSchemaName(boolean showSchemaName) -
isShowDataType
public boolean isShowDataType() -
setShowDataType
public void setShowDataType(boolean showDataType) -
setLineTextType
-
setDefaultLineText
-
getDefaultLineTextType
-
getLineTextType
-
containsDepictFor
-
getDepictIncludingShapeFor
-
getDepictFor
-
moveUndoable
-
attach
-
dropCalloutUnduable
-
detachUndoable
-
detach
-
attachRecursiveAndCreateGroupForHierarchicalEntities
-
attachRecursive
-
recursiveFindAndAttachChildrenEntities
-
getMostReferredDepict
-
getWidth
public double getWidth() -
getHeight
public double getHeight() -
hideFunctionalColumns
public void hideFunctionalColumns() -
hideColumnsOnLargeDepicts
public void hideColumnsOnLargeDepicts() -
hideAllColumns
public void hideAllColumns() -
showAllColumns
public void showAllColumns() -
autoArrange
-
autoArrange
-
hideRelation
-
showAllForeignKeys
public void showAllForeignKeys() -
showAllEntityForeignKeys
-
setHideRelations
-
getHiddenRelationNames
-
colorGroups
public void colorGroups(boolean overrideTableColor) -
findRelationsWithEntity
-
getFreePlacePoint
-
undo
public void undo() -
redo
public void redo() -
isShowPhysicalName
public boolean isShowPhysicalName() -
setShowPhysicalName
public void setShowPhysicalName(boolean showPhysicalName) -
isShowPhysicalDictionaryName
public boolean isShowPhysicalDictionaryName() -
setShowPhysicalDictionaryName
public void setShowPhysicalDictionaryName(boolean showPhysicalDictionaryName) -
getTargetTerminatorCardinality
public RelationCardinality getTargetTerminatorCardinality(com.wisecoders.dbs.diagram.fx.notation.Notation notation, Relation<T> relation)
-