Skip to content
Snippets Groups Projects
Commit 1574e61e authored by Lukas Ladenberger's avatar Lukas Ladenberger
Browse files

set transparency to column and table

parent adde4ee9
No related branches found
No related tags found
No related merge requests found
...@@ -143,8 +143,8 @@ public class AppEditLayoutPolicy extends XYLayoutEditPolicy { ...@@ -143,8 +143,8 @@ public class AppEditLayoutPolicy extends XYLayoutEditPolicy {
BControl newObj = (BControl) request.getNewObject(); BControl newObj = (BControl) request.getNewObject();
CreateCommand createCmd = new CreateCommand( CreateCommand createCmd = new CreateCommand(newObj,
newObj, (BControl) getHost().getModel()); (BControl) getHost().getModel());
Rectangle constraint = (Rectangle) getConstraintFor(request); Rectangle constraint = (Rectangle) getConstraintFor(request);
constraint.x = (constraint.x < 0) ? 0 : constraint.x; constraint.x = (constraint.x < 0) ? 0 : constraint.x;
...@@ -157,7 +157,7 @@ public class AppEditLayoutPolicy extends XYLayoutEditPolicy { ...@@ -157,7 +157,7 @@ public class AppEditLayoutPolicy extends XYLayoutEditPolicy {
.getAttributes().get( .getAttributes().get(
AttributeConstants.ATTRIBUTE_HEIGHT); AttributeConstants.ATTRIBUTE_HEIGHT);
if (atrWidth != null) { if (atrWidth != null && !atrWidth.isEditable()) {
constraint.width = Integer.valueOf(atrWidth.getValue() constraint.width = Integer.valueOf(atrWidth.getValue()
.toString()); .toString());
} else { } else {
...@@ -165,7 +165,7 @@ public class AppEditLayoutPolicy extends XYLayoutEditPolicy { ...@@ -165,7 +165,7 @@ public class AppEditLayoutPolicy extends XYLayoutEditPolicy {
: constraint.width; : constraint.width;
} }
if (atrHeight != null) { if (atrHeight != null && !atrHeight.isEditable()) {
constraint.height = Integer.valueOf(atrHeight.getValue() constraint.height = Integer.valueOf(atrHeight.getValue()
.toString()); .toString());
} else { } else {
......
...@@ -10,7 +10,7 @@ public class TableColumnFigure extends AbstractTableFigure { ...@@ -10,7 +10,7 @@ public class TableColumnFigure extends AbstractTableFigure {
public TableColumnFigure() { public TableColumnFigure() {
ToolbarLayout toolbarLayout = new ToolbarLayout(); ToolbarLayout toolbarLayout = new ToolbarLayout();
setLayoutManager(toolbarLayout); setLayoutManager(toolbarLayout);
setOpaque(true); setOpaque(false);
} }
@Override @Override
...@@ -19,7 +19,6 @@ public class TableColumnFigure extends AbstractTableFigure { ...@@ -19,7 +19,6 @@ public class TableColumnFigure extends AbstractTableFigure {
Color foregroundColor = getForegroundColor(); Color foregroundColor = getForegroundColor();
if (foregroundColor != null) if (foregroundColor != null)
g.setForegroundColor(foregroundColor); g.setForegroundColor(foregroundColor);
// g.drawLine(r.x, r.y, r.x + r.width, r.y); // g.drawLine(r.x, r.y, r.x + r.width, r.y);
// Left line // Left line
g.drawLine(r.x, r.y, r.x, r.y + r.height - 15); g.drawLine(r.x, r.y, r.x, r.y + r.height - 15);
......
...@@ -16,7 +16,7 @@ public class TableFigure extends AbstractTableFigure { ...@@ -16,7 +16,7 @@ public class TableFigure extends AbstractTableFigure {
ToolbarLayout toolbarLayout = new ToolbarLayout(); ToolbarLayout toolbarLayout = new ToolbarLayout();
toolbarLayout.setHorizontal(true); toolbarLayout.setHorizontal(true);
setLayoutManager(toolbarLayout); setLayoutManager(toolbarLayout);
setOpaque(true); setOpaque(false);
} }
@Override @Override
......
...@@ -22,7 +22,6 @@ public class BTableColumnPart extends AppAbstractEditPart { ...@@ -22,7 +22,6 @@ public class BTableColumnPart extends AppAbstractEditPart {
protected IFigure createEditFigure() { protected IFigure createEditFigure() {
TableColumnFigure tableColumnFigure = new TableColumnFigure(); TableColumnFigure tableColumnFigure = new TableColumnFigure();
Label figure = new Label(); Label figure = new Label();
figure.setOpaque(true);
tableColumnFigure.add(figure); tableColumnFigure.add(figure);
if (!isRunning()) { if (!isRunning()) {
figure.setIcon(BMotionStudioImage figure.setIcon(BMotionStudioImage
......
...@@ -27,7 +27,6 @@ public class BTablePart extends AppAbstractEditPart { ...@@ -27,7 +27,6 @@ public class BTablePart extends AppAbstractEditPart {
protected IFigure createEditFigure() { protected IFigure createEditFigure() {
TableFigure tableFigure = new TableFigure(); TableFigure tableFigure = new TableFigure();
Label figure = new Label(); Label figure = new Label();
figure.setOpaque(true);
tableFigure.add(figure); tableFigure.add(figure);
if (!isRunning()) { if (!isRunning()) {
figure.setIcon(BMotionStudioImage figure.setIcon(BMotionStudioImage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment