Accessible
, org.openide.util.Lookup.Provider
public class LevelOfDetailsWidget extends Widget
For < hardMinimalZoom
and > hardMaximalZoom
the children are not painted.
For < softMinimalZoom
and > sortMaximalZoom
the children are partially painted using alpha-blending.
Between softMinimalZoom
and softMaximalZoom
the children are painted normally.
Widget.Dependency
Constructor | Description |
---|---|
LevelOfDetailsWidget(Scene scene,
double hardMinimalZoom,
double softMinimalZoom,
double softMaximalZoom,
double hardMaximalZoom) |
Creates a level-of-details widget.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
isHitAt(Point localLocation) |
Checks whether a specified local location is a part of a widget based on the zoom factor.
|
void |
paintChildren() |
Paints children based on the zoom factor.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addChild, addChild, addChild, addChild, addChildren, addDependency, bringToBack, bringToFront, calculateClientArea, convertLocalToScene, convertLocalToScene, convertSceneToLocal, convertSceneToLocal, createActions, equals, getAccessibleContext, getActions, getActions, getBackground, getBorder, getBounds, getChildConstraint, getChildren, getClientArea, getCursor, getCursorAt, getDependencies, getFont, getForeground, getGraphics, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getResourceTable, getScene, getState, getToolTipText, hashCode, isCheckClipping, isEnabled, isOpaque, isPreferredBoundsSet, isRepaintRequiredForRevalidating, isValidated, isVisible, notifyAdded, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, notifyRemoved, notifyStateChanged, paint, paintBackground, paintBorder, paintWidget, removeChild, removeChildren, removeChildren, removeDependency, removeFromParent, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBackgroundFromResource, setBorder, setBorder, setCheckClipping, setChildConstraint, setCursor, setEnabled, setFont, setFontFromResource, setForeground, setForegroundFromResource, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setResourceTable, setState, setToolTipText, setVisible, updateResources
public LevelOfDetailsWidget(Scene scene, double hardMinimalZoom, double softMinimalZoom, double softMaximalZoom, double hardMaximalZoom)
scene
- the scenehardMinimalZoom
- the hard minimal zoom factorsoftMinimalZoom
- the sort minimal zoom factorsoftMaximalZoom
- the sort maximal zoom factorhardMaximalZoom
- the hard maximal zoom factorpublic void paintChildren()
paintChildren
in class Widget
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.