source: trunk/src/org/expeditee/gui/Vector.java@ 105

Last change on this file since 105 was 105, checked in by ra33, 16 years ago

Made a whole lot of changes...

Including using polyLine etc for drawing rectangles nicer

File size: 624 bytes
Line 
1package org.expeditee.gui;
2
3import java.awt.Color;
4import java.awt.Point;
5
6public class Vector {
7 public Frame Frame;
8
9 public Point Origin;
10
11 public float Scale;
12
13 public Color Foreground;
14 public Color Background;
15
16 public Vector(Frame overlay, Point origin, Float scale, Color color, Color background) {
17 Frame = overlay;
18 Origin = origin;
19 Scale = scale;
20 Foreground = color;
21 Background = background;
22 }
23
24 @Override
25 public boolean equals(Object o) {
26 if (o == null || o.getClass() != Vector.class)
27 return false;
28
29 return ((Vector) o).Frame == Frame;
30 }
31
32 @Override
33 public int hashCode() {
34 return 0;
35 }
36}
Note: See TracBrowser for help on using the repository browser.