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