| Modifier and Type | Field and Description |
|---|---|
| private Color | |
| private int | |
| private List | |
| private Interval | |
| private List | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | Annotation(Address lowAddress, Address highAddress, String s)
The Annotation can handle the sense of lowAddress and highAddress being swapped. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public Rectangle | |
| public Color | |
| public int | |
| public Address | |
| public Interval | |
| public Address | |
| public int | |
| public int | |
| public int | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String |
| baseColor | back to summary |
|---|---|
| private Color baseColor | |
| height | back to summary |
|---|---|
| private int height | |
| heights | back to summary |
|---|---|
| private List<Integer> heights | |
| interval | back to summary |
|---|---|
| private Interval interval | |
| strings | back to summary |
|---|---|
| private List<String> strings | |
| width | back to summary |
|---|---|
| private int width | |
| x | back to summary |
|---|---|
| private int x | |
| y | back to summary |
|---|---|
| private int y | |
| Annotation | back to summary |
|---|---|
| public Annotation(Address lowAddress, Address highAddress, String s) The Annotation can handle the sense of lowAddress and highAddress being swapped. | |
| computeWidthAndHeight | back to summary |
|---|---|
| public void computeWidthAndHeight(Graphics g) Computes width and height for this Annotation. Retrieve the computed information using getWidth() and getHeight(). Separated because the width and height only need to be recomputed if the font changes. | |
| draw | back to summary |
|---|---|
| public void draw(Graphics g) Draw the annotation at its current (x, y) position with its current color | |
| getBounds | back to summary |
|---|---|
| public Rectangle getBounds() | |
| getColor | back to summary |
|---|---|
| public Color getColor() Returns the base color of this annotation. | |
| getHeight | back to summary |
|---|---|
| public int getHeight() | |
| getHighAddress | back to summary |
|---|---|
| public Address getHighAddress() | |
| getInterval | back to summary |
|---|---|
| public Interval getInterval() | |
| getLowAddress | back to summary |
|---|---|
| public Address getLowAddress() | |
| getWidth | back to summary |
|---|---|
| public int getWidth() | |
| getX | back to summary |
|---|---|
| public int getX() | |
| getY | back to summary |
|---|---|
| public int getY() | |
| setColor | back to summary |
|---|---|
| public void setColor(Color c) Sets the base color of this annotation. The annotation may render sub-portions in a different color if desired. | |
| setX | back to summary |
|---|---|
| public void setX(int x) | |
| setXAndY | back to summary |
|---|---|
| public void setXAndY(int x, int y) Set the x and y position of this annotation | |
| setY | back to summary |
|---|---|
| public void setY(int y) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |