private static class RnaDrawController.ScreenNuc extends java.lang.Object implements IScreenObject
| Modifier and Type | Field and Description |
|---|---|
(package private) java.awt.Rectangle |
bounds |
(package private) int |
hitDistance |
(package private) int |
hitDistanceSq |
Nuc |
nuc |
(package private) float |
OUTLINE_WIDTH |
java.awt.Point |
p |
(package private) float |
screenRadius |
int |
selectionBorder |
DrawSettings |
settings |
int |
zorder |
ZORDER_MAX, ZORDER_MIN| Constructor and Description |
|---|
ScreenNuc(Nuc nuc,
DrawSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Rectangle |
getBounds() |
Nuc |
getModel() |
int |
getZOrder() |
boolean |
hitTest(java.awt.geom.Point2D point)
Determine if the object contains the given point (in screen coordinates)
|
boolean |
hitTest(java.awt.Rectangle rc)
Determine if the object intersects the given rectangle (in screen coordinates)
|
void |
setZorder(int newZorder) |
void |
updateView(View2D view)
Called before any other methods to notify the screen object of the current screen coordinates.
|
java.awt.Rectangle bounds
int hitDistance
int hitDistanceSq
public final Nuc nuc
final float OUTLINE_WIDTH
public final java.awt.Point p
float screenRadius
public final int selectionBorder
public DrawSettings settings
public int zorder
public ScreenNuc(Nuc nuc, DrawSettings settings)
public java.awt.Rectangle getBounds()
getBounds in interface IScreenObjectpublic Nuc getModel()
getModel in interface IScreenObjectpublic int getZOrder()
getZOrder in interface IScreenObjectpublic boolean hitTest(java.awt.geom.Point2D point)
IScreenObjecthitTest in interface IScreenObjectpublic boolean hitTest(java.awt.Rectangle rc)
IScreenObjecthitTest in interface IScreenObjectpublic void setZorder(int newZorder)
public void updateView(View2D view)
IScreenObjectupdateView in interface IScreenObject