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 IScreenObject
public Nuc getModel()
getModel
in interface IScreenObject
public int getZOrder()
getZOrder
in interface IScreenObject
public boolean hitTest(java.awt.geom.Point2D point)
IScreenObject
hitTest
in interface IScreenObject
public boolean hitTest(java.awt.Rectangle rc)
IScreenObject
hitTest
in interface IScreenObject
public void setZorder(int newZorder)
public void updateView(View2D view)
IScreenObject
updateView
in interface IScreenObject