public class Annotation
extends java.lang.Object
Constructor and Description |
---|
Annotation(Address lowAddress,
Address highAddress,
java.lang.String s)
The Annotation can handle the sense of lowAddress and
highAddress being swapped.
|
Modifier and Type | Method and Description |
---|---|
void |
computeWidthAndHeight(java.awt.Graphics g)
Computes width and height for this Annotation.
|
void |
draw(java.awt.Graphics g)
Draw the annotation at its current (x, y) position with its
current color
|
java.awt.Rectangle |
getBounds() |
java.awt.Color |
getColor()
Returns the base color of this annotation.
|
int |
getHeight() |
Address |
getHighAddress() |
Interval |
getInterval() |
Address |
getLowAddress() |
int |
getWidth() |
int |
getX() |
int |
getY() |
void |
setColor(java.awt.Color c)
Sets the base color of this annotation.
|
void |
setX(int x) |
void |
setXAndY(int x,
int y)
Set the x and y position of this annotation
|
void |
setY(int y) |
java.lang.String |
toString() |
public Interval getInterval()
public Address getLowAddress()
public Address getHighAddress()
public void draw(java.awt.Graphics g)
public void setColor(java.awt.Color c)
public java.awt.Color getColor()
public void computeWidthAndHeight(java.awt.Graphics g)
public int getWidth()
public int getHeight()
public void setXAndY(int x, int y)
public void setX(int x)
public int getX()
public void setY(int y)
public int getY()
public java.awt.Rectangle getBounds()
public java.lang.String toString()
toString
in class java.lang.Object
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.