Last change
on this file since 79 was 79, checked in by ra33, 16 years ago |
Added @b and @v...
Also changed @f... so that images can be displayed with transparent backgrounds.
Did a bunch of refactoring in the process to remove duplicated code and simplify managing @i, @f and @b.
|
File size:
468 bytes
|
Line | |
---|
1 | package org.expeditee.gui;
|
---|
2 |
|
---|
3 | import java.awt.Point;
|
---|
4 |
|
---|
5 | public class Vector {
|
---|
6 | public Frame Frame;
|
---|
7 |
|
---|
8 | public Point Origin;
|
---|
9 |
|
---|
10 | public float Scale;
|
---|
11 |
|
---|
12 | public Vector(Frame overlay, Point origin, Float scale) {
|
---|
13 | Frame = overlay;
|
---|
14 | Origin = origin;
|
---|
15 | Scale = scale;
|
---|
16 | }
|
---|
17 |
|
---|
18 | @Override
|
---|
19 | public boolean equals(Object o) {
|
---|
20 | if (o == null || o.getClass() != Vector.class)
|
---|
21 | return false;
|
---|
22 |
|
---|
23 | return ((Vector) o).Frame == Frame;
|
---|
24 | }
|
---|
25 |
|
---|
26 | @Override
|
---|
27 | public int hashCode() {
|
---|
28 | return 0;
|
---|
29 | }
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.