- Remove CENTRAL_NODE flag.

This commit is contained in:
Paulo Gustavo Veiga
2012-09-20 19:00:31 -03:00
parent a0ee153ca0
commit 7bbcd82488
2 changed files with 9 additions and 9 deletions

View File

@@ -64,7 +64,7 @@ mindplot.MainTopic = new Class({
// Change figure based on the connected topic ...
var model = this.getModel();
var shapeType = model.getShapeType();
if (targetTopic.getType() != mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE) {
if (!targetTopic.isCentralTopic()) {
if (!$defined(shapeType)) {
// Get the real shape type ...
shapeType = this.getShapeType();
@@ -168,7 +168,7 @@ mindplot.MainTopic = new Class({
_getInnerPadding:function () {
var result;
var parent = this.getModel().getParent();
if (parent && mindplot.model.INodeModel.MAIN_TOPIC_TYPE == parent.getType()) {
if (parent && !parent.isCentralTopic()) {
result = 3;
}
else {
@@ -181,7 +181,7 @@ mindplot.MainTopic = new Class({
var targetTopic = this.getOutgoingConnectedTopic();
var result = "";
if ($defined(targetTopic)) {
if (targetTopic.getType() == mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE) {
if (targetTopic.isCentralTopic()) {
result = $msg('MAIN_TOPIC');
} else {
result = $msg('SUB_TOPIC');
@@ -196,7 +196,7 @@ mindplot.MainTopic = new Class({
var targetTopic = this.getOutgoingConnectedTopic();
var result;
if ($defined(targetTopic)) {
if (targetTopic.getType() == mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE) {
if (targetTopic.isCentralTopic()) {
result = {
font:"Arial",
size:8,