public abstract class Overlay extends Object implements IScreenOverlayContainer, IDisposable
| Modifier | Constructor and Description |
|---|---|
protected |
Overlay() |
| Modifier and Type | Method and Description |
|---|---|
void |
bringToFront()
Brings the overlay to the front of the z-order, so it is on top of all other overlays with the same
Parent |
ScreenOverlayPoint |
controlToOverlay(double x,
double y)
Transforms a given position, specified relative to the overall
Insight3D
control, into coordinates relative to this overlay. |
void |
dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting
unmanaged resources.
|
protected void |
dispose(boolean disposing) |
Color |
getBorderColor()
Gets the overlay's border color.
|
int |
getBorderSize()
Gets the size of the overlay's border.
|
float |
getBorderTranslucency()
Gets the translucency of the overlay border.
|
BoundingRectangle |
getBounds()
Gets the bounds of the overlay relative to its parent.
|
boolean |
getClipToParent()
Gets a value indicating whether or not the overlay will be clipped by the
Bounds of its parent. |
Color |
getColor()
Gets the overlay's color.
|
BoundingRectangle |
getControlBounds()
Gets the bounds of the overlay in coordinates relative to the overall
Insight3D
control. |
ScreenOverlayPoint |
getControlPosition()
Gets the position of the overlay in coordinates relative to the overall
Insight3D control. |
ScreenOverlaySize |
getControlSize()
Gets the size of the overlay in coordinates relative to the overall
Insight3D
control. |
boolean |
getDisplay()
Gets if this overlay and the collection of overlays that are contained within this overlay should be
rendered.
|
DisplayCondition |
getDisplayCondition()
Gets the display condition that determines if the overlay should be
rendered.
|
boolean |
getFlipX()
Gets whether the overlay will be flipped along its X axis.
|
boolean |
getFlipY()
Gets whether the overlay will be flipped along its Y axis.
|
double |
getHeight()
Gets the height of the overlay.
|
ScreenOverlayUnit |
getHeightUnit()
Gets the unit of the
Height property. |
ScreenOverlaySize |
getMaximumSize()
Gets the maximum size of the overlay.
|
ScreenOverlaySize |
getMinimumSize()
Gets the minimum size of the overlay.
|
ScreenOverlayOrigin |
getOrigin()
Gets the origin from which the overlay's position is defined.
|
ScreenOverlayCollection |
getOverlays()
Gets the collection of overlays that are contained within this overlay.
|
ScreenOverlayPadding |
getPadding()
Gets the padding surrounding the
Overlays that are contained within this overlay. |
IScreenOverlayContainer |
getParent()
Gets the overlay's parent.
|
boolean |
getPickingEnabled()
Gets a value indicating whether or not picking on the overlay is enabled.
|
ScreenOverlayPinningOrigin |
getPinningOrigin()
Gets the origin of the
PinningPosition property, relative to the overlay. |
ScreenOverlayPoint |
getPinningPosition()
Gets the pinning position of the overlay, relative to the overlay, which determines the point on the overlay that corresponds to
the
Position property. |
ScreenOverlayPoint |
getPosition()
Gets the position of the overlay relative to its parent.
|
double |
getRotationAngle()
Gets the counter-clockwise rotation of the overlay, in radians.
|
ScreenOverlayRotationPoint |
getRotationPoint()
Gets the point that the overlay is rotated around when the
RotationAngle property has a
value other than 0.0. |
double |
getScale()
Gets the fractional value used to scale the overlay's
Size property. |
ScreenOverlaySize |
getSize()
Gets the size of the overlay.
|
Object |
getTag()
Gets custom data associated with this screen overlay.
|
double |
getTranslationX()
Gets the value with which the overlay will be translated from the X value of the
Position property. |
double |
getTranslationY()
Gets the value with which the overlay will be translated from the Y value of the
Position property. |
float |
getTranslucency()
Gets the overlay's translucency.
|
double |
getWidth()
Gets the width of the overlay.
|
ScreenOverlayUnit |
getWidthUnit()
Gets the unit of the
Width property. |
double |
getX()
Gets the X position of the overlay relative to its parent.
|
ScreenOverlayUnit |
getXUnit()
Gets the unit of the
X property. |
double |
getY()
Gets the Y position of the overlay relative to its parent.
|
ScreenOverlayUnit |
getYUnit()
Gets the unit of the
Y property. |
ScreenOverlayPoint |
overlayToControl(double x,
double y)
Transforms a given position, specified relative to the overlay, into coordinates relative to the overall
Insight3D control. |
void |
sendToBack()
Sends the overlay to the back of the z-order, so it is underneath all other overlays with the same
Parent |
void |
setBorderColor(Color color)
Sets the overlay's border color.
|
void |
setBorderSize(int value)
Sets the size of the overlay's border.
|
void |
setBorderTranslucency(float translucency)
Sets the translucency of the overlay border.
|
void |
setClipToParent(boolean value)
Sets a value indicating whether or not the overlay will be clipped by the
Bounds of its parent. |
void |
setColor(Color color)
Sets the overlay's color.
|
void |
setDisplay(boolean value)
Sets if this overlay and the collection of overlays that are contained within this overlay should be
rendered.
|
void |
setDisplayCondition(DisplayCondition value)
Sets the display condition that determines if the overlay should be
rendered.
|
void |
setFlipX(boolean flip)
Sets whether the overlay will be flipped along its X axis.
|
void |
setFlipY(boolean flip)
Sets whether the overlay will be flipped along its Y axis.
|
void |
setHeight(double value)
Sets the height of the overlay.
|
void |
setHeightUnit(ScreenOverlayUnit value)
Sets the unit of the
Height property. |
void |
setMaximumSize(ScreenOverlaySize value)
Sets the maximum size of the overlay.
|
void |
setMinimumSize(ScreenOverlaySize value)
Sets the minimum size of the overlay.
|
void |
setOrigin(ScreenOverlayOrigin value)
Sets the origin from which the overlay's position is defined.
|
void |
setPadding(ScreenOverlayPadding value)
Sets the padding surrounding the
Overlays that are contained within this overlay. |
void |
setPickingEnabled(boolean value)
Sets a value indicating whether or not picking on the overlay is enabled.
|
void |
setPinningOrigin(ScreenOverlayPinningOrigin value)
Sets the origin of the
PinningPosition property, relative to the overlay. |
void |
setPinningPosition(ScreenOverlayPoint value)
Sets the pinning position of the overlay, relative to the overlay, which determines the point on the overlay that corresponds to
the
Position property. |
void |
setPosition(ScreenOverlayPoint value)
Sets the position of the overlay relative to its parent.
|
void |
setRotationAngle(double value)
Sets the counter-clockwise rotation of the overlay, in radians.
|
void |
setRotationPoint(ScreenOverlayRotationPoint value)
Sets the point that the overlay is rotated around when the
RotationAngle property has a
value other than 0.0. |
void |
setScale(double value)
Sets the fractional value used to scale the overlay's
Size property. |
void |
setSize(ScreenOverlaySize value)
Sets the size of the overlay.
|
void |
setTag(Object inVal)
Sets custom data associated with this screen overlay.
|
void |
setTranslationX(double value)
Sets the value with which the overlay will be translated from the X value of the
Position property. |
void |
setTranslationY(double value)
Sets the value with which the overlay will be translated from the Y value of the
Position property. |
void |
setTranslucency(float translucency)
Sets the overlay's translucency.
|
void |
setWidth(double value)
Sets the width of the overlay.
|
void |
setWidthUnit(ScreenOverlayUnit value)
Sets the unit of the
Width property. |
void |
setX(double value)
Sets the X position of the overlay relative to its parent.
|
void |
setXUnit(ScreenOverlayUnit value)
Sets the unit of the
X property. |
void |
setY(double value)
Sets the Y position of the overlay relative to its parent.
|
void |
setYUnit(ScreenOverlayUnit value)
Sets the unit of the
Y property. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic final void dispose()
IDisposabledispose in interface IDisposableprotected void dispose(boolean disposing)
public ScreenOverlayPoint getPosition()
public void setPosition(ScreenOverlayPoint value)
public ScreenOverlayPoint getPinningPosition()
Position property.public void setPinningPosition(ScreenOverlayPoint value)
Position property.public final double getX()
XUnit property. The position is measured horizontally
from the Origin, which is, by default, the lower-left corner.public final void setX(double value)
XUnit property. The position is measured horizontally
from the Origin, which is, by default, the lower-left corner.public final ScreenOverlayUnit getXUnit()
X property.public final void setXUnit(ScreenOverlayUnit value)
X property.public final double getY()
YUnit property. The position is measured vertically
from the Origin, which is, by default, the lower-left corner.public final void setY(double value)
YUnit property. The position is measured vertically
from the Origin, which is, by default, the lower-left corner.public final ScreenOverlayUnit getYUnit()
Y property.public final void setYUnit(ScreenOverlayUnit value)
Y property.public ScreenOverlaySize getSize()
public void setSize(ScreenOverlaySize value)
public final double getWidth()
WidthUnit property.public final void setWidth(double value)
WidthUnit property.public final ScreenOverlayUnit getWidthUnit()
Width property.public final void setWidthUnit(ScreenOverlayUnit value)
Width property.public final double getHeight()
HeightUnit property.public final void setHeight(double value)
HeightUnit property.public final ScreenOverlayUnit getHeightUnit()
Height property.public final void setHeightUnit(ScreenOverlayUnit value)
Height property.public ScreenOverlaySize getMinimumSize()
Size is specified as a percentage of its parent and its parent
is very small. It will also not become smaller than this size as a result of a Scale
transformation.public void setMinimumSize(ScreenOverlaySize value)
Size is specified as a percentage of its parent and its parent
is very small. It will also not become smaller than this size as a result of a Scale
transformation.public ScreenOverlaySize getMaximumSize()
Size is specified as a percentage of its parent and its parent
is very large. It will also not become larger than this size as a result of a Scale
transformation.public void setMaximumSize(ScreenOverlaySize value)
Size is specified as a percentage of its parent and its parent
is very large. It will also not become larger than this size as a result of a Scale
transformation.public BoundingRectangle getBounds()
public Color getBorderColor()
Color.WHITE. However, also
by default, the overlay has a BorderSize of 0.0 so the border is not displayed.public void setBorderColor(Color color)
Color.WHITE. However, also
by default, the overlay has a BorderSize of 0.0 so the border is not displayed.public int getBorderSize()
public void setBorderSize(int value)
public float getBorderTranslucency()
public void setBorderTranslucency(float translucency)
public double getTranslationX()
Position property.public void setTranslationX(double value)
Position property.public double getTranslationY()
Position property.public void setTranslationY(double value)
Position property.public double getRotationAngle()
RotationPoint property.public void setRotationAngle(double value)
RotationPoint property.public ScreenOverlayRotationPoint getRotationPoint()
RotationAngle property has a
value other than 0.0.public void setRotationPoint(ScreenOverlayRotationPoint value)
RotationAngle property has a
value other than 0.0.public double getScale()
Size property. A value greater than 1.0 will
make the overlay larger while a value less than 1.0 will make it smaller.public void setScale(double value)
Size property. A value greater than 1.0 will
make the overlay larger while a value less than 1.0 will make it smaller.public boolean getFlipX()
public void setFlipX(boolean flip)
public boolean getFlipY()
public void setFlipY(boolean flip)
public ScreenOverlayOrigin getOrigin()
ScreenOverlayOrigin.BottomLeft.
See ScreenOverlayOrigin for a list of the possible
origins and a description of how the origin affects the measurement of the overlay's position and size properties.public void setOrigin(ScreenOverlayOrigin value)
ScreenOverlayOrigin.BottomLeft.
See ScreenOverlayOrigin for a list of the possible
origins and a description of how the origin affects the measurement of the overlay's position and size properties.public ScreenOverlayPinningOrigin getPinningOrigin()
PinningPosition property, relative to the overlay. By default, the value of this property
is ScreenOverlayPinningOrigin.Automatic, which
indicates that the origin of the PinningPosition property is the same as the Origin property of
the screen overlay. See ScreenOverlayPinningOrigin for a list of the possible
pinning origins and a description of how the pinning origin affects the measurement of the overlay's position property.public void setPinningOrigin(ScreenOverlayPinningOrigin value)
PinningPosition property, relative to the overlay. By default, the value of this property
is ScreenOverlayPinningOrigin.Automatic, which
indicates that the origin of the PinningPosition property is the same as the Origin property of
the screen overlay. See ScreenOverlayPinningOrigin for a list of the possible
pinning origins and a description of how the pinning origin affects the measurement of the overlay's position property.public IScreenOverlayContainer getParent()
Overlays collection. Or, it may be the ScreenOverlayManager if this
overlay was added to the SceneManager's
ScreenOverlays (get) collection.public float getTranslucency()
public void setTranslucency(float translucency)
public Color getColor()
Color.WHITE.public void setColor(Color color)
Color.WHITE.public boolean getPickingEnabled()
Scene.PickScreenOverlay,
even if it occupies the specified pick position.public void setPickingEnabled(boolean value)
Scene.PickScreenOverlay,
even if it occupies the specified pick position.public boolean getClipToParent()
Bounds of its parent. If
this property is false, part of this overlay may be visible outside of its parent's bounds.public void setClipToParent(boolean value)
Bounds of its parent. If
this property is false, part of this overlay may be visible outside of its parent's bounds.public boolean getDisplay()
A overlay must be added to the
ScreenOverlayManager
before it is rendered. Once in the manager, setting this
property to false is more efficient than removing the overlay
from the manager. Although, it is recommended to remove the overlay
from the manager if the overlay will be hidden for a long period of time.
getDisplay in interface IScreenOverlayContainerScreenOverlayManagerpublic void setDisplay(boolean value)
A overlay must be added to the
ScreenOverlayManager
before it is rendered. Once in the manager, setting this
property to false is more efficient than removing the overlay
from the manager. Although, it is recommended to remove the overlay
from the manager if the overlay will be hidden for a long period of time.
setDisplay in interface IScreenOverlayContainerScreenOverlayManagerpublic ScreenOverlayPoint getControlPosition()
Insight3D control.public ScreenOverlaySize getControlSize()
Insight3D
control.public BoundingRectangle getControlBounds()
Insight3D
control.public DisplayCondition getDisplayCondition()
Display must evaulate to true for
the overlay to be rendered.
When DisplayCondition is null, no display condition is
evaluated before the overlay is rendered.
DisplayCondition,
Displaypublic void setDisplayCondition(DisplayCondition value)
Display must evaulate to true for
the overlay to be rendered.
When DisplayCondition is null, no display condition is
evaluated before the overlay is rendered.
DisplayCondition,
Displaypublic final Object getTag()
This property is commonly used in conjunction with picking. Custom data that needs to be retrieved or modified when this screen overlay is picked is assigned to this property. When the screen overlay is picked, this property is used to access the custom data.
public final void setTag(Object inVal)
This property is commonly used in conjunction with picking. Custom data that needs to be retrieved or modified when this screen overlay is picked is assigned to this property. When the screen overlay is picked, this property is used to access the custom data.
public ScreenOverlayCollection getOverlays()
getOverlays in interface IScreenOverlayContainerpublic ScreenOverlayPadding getPadding()
Overlays that are contained within this overlay.getPadding in interface IScreenOverlayContainerpublic void setPadding(ScreenOverlayPadding value)
Overlays that are contained within this overlay.setPadding in interface IScreenOverlayContainerpublic void bringToFront()
Parentpublic void sendToBack()
Parentpublic ScreenOverlayPoint overlayToControl(double x, double y)
Insight3D control.x - The horizontal position to transform.y - The vertical position to transform.public ScreenOverlayPoint controlToOverlay(double x, double y)
Insight3D
control, into coordinates relative to this overlay.x - The horizontal position to transform.y - The vertical position to transform.