Minor fixes, updated version.
This commit is contained in:
parent
a0eb582f69
commit
3ba2f1982c
2
pom.xml
2
pom.xml
|
@ -6,7 +6,7 @@
|
|||
|
||||
<groupId>nl.andrewlalis</groupId>
|
||||
<artifactId>EntityRelationMappingEditor</artifactId>
|
||||
<version>1.3.1</version>
|
||||
<version>1.4.0</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
|
|
@ -7,7 +7,7 @@ import nl.andrewlalis.erme.view.EditorFrame;
|
|||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
public class EntityRelationMappingEditor {
|
||||
public static final String VERSION = "1.3.1";
|
||||
public static final String VERSION = "1.4.0";
|
||||
|
||||
public static void main(String[] args) {
|
||||
if (!FlatLightLaf.install()) {
|
||||
|
|
|
@ -2,9 +2,7 @@ package nl.andrewlalis.erme.control.actions;
|
|||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import nl.andrewlalis.erme.EntityRelationMappingEditor;
|
||||
import nl.andrewlalis.erme.view.DiagramPanel;
|
||||
import nl.andrewlalis.erme.view.view_models.AttributeViewModel;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.event.ActionEvent;
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
package nl.andrewlalis.erme.view.view_models;
|
||||
|
||||
import nl.andrewlalis.erme.EntityRelationMappingEditor;
|
||||
import nl.andrewlalis.erme.control.actions.LolcatAction;
|
||||
import nl.andrewlalis.erme.model.Attribute;
|
||||
import nl.andrewlalis.erme.model.AttributeType;
|
||||
import nl.andrewlalis.erme.model.ForeignKeyAttribute;
|
||||
import nl.andrewlalis.erme.view.DiagramPanel;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.font.TextAttribute;
|
||||
|
@ -52,8 +50,6 @@ public class AttributeViewModel implements ViewModel {
|
|||
Point offset = g.getClipBounds().getLocation();
|
||||
g.translate(offset.x, offset.y);
|
||||
Dimension viewportSize = g.getClipBounds().getSize();
|
||||
g.drawRect(0, 0, viewportSize.width, viewportSize.height);
|
||||
g.fillRect(-5, -5, 10, 10);
|
||||
|
||||
double diagonal_slope = (double) viewportSize.width / (double) viewportSize.height;
|
||||
double perp_slope = -1f / diagonal_slope;
|
||||
|
|
Loading…
Reference in New Issue