package jetbrains.mps.ide.dataFlow.presentation;
/*Generated by MPS */
import java.awt.Graphics;
import java.awt.Color;
public enum LineDirection {
HORIZONTAL() {
@Deprecated
public void paint(Graphics g, int first, int second, int level, Color backgroundColor) {
g.drawLine(first, level, second, level);
}
public void paint(Line line, Graphics g, int first, int second, int level) {
line.drawLine(g, first, level, second, level);
}
public void shiftLeft(Line line, int indent) {
line.myFirst = line.myFirst + indent;
line.mySecond = line.mySecond + indent;
}
},
VERTICAL() {
@Deprecated
public void paint(Graphics g, int first, int second, int level, Color backgroundColor) {
g.drawLine(level, first, level, second);
}
@Override
public void paint(Line line, Graphics g, int first, int second, int level) {
line.drawLine(g, level, first, level, second);
}
public void shiftLeft(Line line, int indent) {
line.myLevel = line.myLevel + indent;
}
};
private LineDirection() {
}
/**
*
* @deprecated
*/
@Deprecated
public abstract void paint(Graphics g, int first, int second, int level, Color backgroundColor);
public abstract void paint(Line line, Graphics g, int first, int second, int level);
public abstract void shiftLeft(Line line, int indent);
}