Package snap.view

Class View

All Implemented Interfaces:
PropChange.DoChange, XMLArchiver.Archivable
Direct Known Subclasses:
ArcView, ColorButton, ColorButton.ColorBoxesPane, ColorDock, ColorPanel.ImagePicker, ColorWell, CubeView, Divider, Explode, GradientAxisPicker, ImageView, LineView, ParentView, PathView, ProgressBar, RectView, ScrollBar, Separator, ShadowEffectTool.OffsetPanel, ShapeView, Slider, StringView, TextArea, ThumbWheel

public class View extends PropObject implements XMLArchiver.Archivable
A standard view implementation to show graphics and handle events and form the basis of all views (buttons, sliders, text fields, etc.).
  • Field Details

  • Constructor Details

    • View

      public View()
      Constructor.
  • Method Details

    • getName

      public String getName()
      Returns the name for the view.
    • setName

      public void setName(String aName)
      Sets the name for the view.
    • getX

      public double getX()
      Returns the X location of the view.
    • setX

      public void setX(double aValue)
      Sets the X location of the view.
    • getY

      public double getY()
      Returns the Y location of the view.
    • setY

      public void setY(double aValue)
      Sets the Y location of the view.
    • getWidth

      public double getWidth()
      Returns the width of the view.
    • setWidth

      public void setWidth(double aValue)
      Sets the width of the view.
    • getHeight

      public double getHeight()
      Returns the height of the view.
    • setHeight

      public void setHeight(double aValue)
      Sets the height of the view.
    • getMidX

      public double getMidX()
      Returns the mid x.
    • getMidY

      public double getMidY()
      Returns the mid y.
    • getMaxX

      public double getMaxX()
      Returns the max x.
    • getMaxY

      public double getMaxY()
      Returns the max x.
    • getXY

      public Point getXY()
      Returns the view x/y.
    • setXY

      public void setXY(double aX, double aY)
      Sets the view x/y.
    • getSize

      public Size getSize()
      Returns the view size.
    • setSize

      public void setSize(Size aSize)
      Sets the size.
    • setSize

      public void setSize(double aW, double aH)
      Sets the size.
    • setSizeToPrefSize

      public void setSizeToPrefSize()
      Sets the size to preferred size.
    • getBounds

      public Rect getBounds()
      Returns the bounds.
    • setBounds

      public void setBounds(Rect aRect)
      Sets the bounds.
    • setBounds

      public void setBounds(double aX, double aY, double aW, double aH)
      Sets the bounds.
    • getBoundsLocal

      public Rect getBoundsLocal()
      Returns the bounds inside view.
    • setBoundsLocal

      public void setBoundsLocal(double aX, double aY, double aW, double aH)
      Sets the view bounds with given rect in current local coords such that it will have that rect as new local bounds.
    • setXYLocal

      public void setXYLocal(double aX, double aY)
      Sets the view x/y with given point in current local coords such that new origin will be at that point.
    • setSizeLocal

      public void setSizeLocal(double aW, double aH)
      Sets the view size such that it maintains it's location in parent.
    • getBoundsParent

      public Rect getBoundsParent()
      Returns the bounds in parent coords.
    • getBoundsShape

      public Shape getBoundsShape()
      Returns the bounds shape in view coords.
    • getBoundsShapeParent

      public Shape getBoundsShapeParent()
      Returns the bounds shape in parent coords.
    • getTransX

      public double getTransX()
      Returns the translation of this view from X.
    • setTransX

      public void setTransX(double aValue)
      Sets the translation of this view from X.
    • getTransY

      public double getTransY()
      Returns the translation of this view from Y.
    • setTransY

      public void setTransY(double aValue)
      Sets the translation of this view from Y.
    • getRotate

      public double getRotate()
      Returns the rotation of the view in degrees.
    • setRotate

      public void setRotate(double theDegrees)
      Turn to given angle.
    • getScaleX

      public double getScaleX()
      Returns the scale of this view from X.
    • setScaleX

      public void setScaleX(double aValue)
      Sets the scale of this view from X.
    • getScaleY

      public double getScaleY()
      Returns the scale of this view from Y.
    • setScaleY

      public void setScaleY(double aValue)
      Sets the scale of this view from Y.
    • getScale

      public double getScale()
      Returns the scale of this view.
    • setScale

      public void setScale(double aValue)
      Sets the scale of this view from Y.
    • getFill

      public Paint getFill()
      Returns fill paint.
    • setFill

      public void setFill(Paint aPaint)
      Sets fill paint.
    • getFillColor

      public Color getFillColor()
      Returns the fill as color.
    • getBorder

      public Border getBorder()
      Returns the border.
    • setBorder

      public void setBorder(Border aBorder)
      Sets the border.
    • setBorder

      public void setBorder(Color aColor, double aWidth)
      Convenience to set border to given color and line width.
    • getBorderRadius

      public double getBorderRadius()
      Returns the radius for border rounded corners.
    • setBorderRadius

      public void setBorderRadius(double aValue)
      Sets the radius for border rounded corners.
    • getEffect

      public Effect getEffect()
      Returns effect.
    • setEffect

      public void setEffect(Effect anEff)
      Sets paint.
    • getOpacity

      public double getOpacity()
      Returns the opacity of the view.
    • setOpacity

      public void setOpacity(double aValue)
      Sets the opacity of the view.
    • getOpacityAll

      public double getOpacityAll()
      Returns the combined opacity of this view and it's parents.
    • isFontSet

      public boolean isFontSet()
      Returns whether font has been explicitly set for this view.
    • getFont

      public Font getFont()
      Returns the font for the view (defaults to parent font).
    • setFont

      public void setFont(Font aFont)
      Sets the font for the view.
    • parentFontChanged

      protected void parentFontChanged()
      Called when parent font changes.
    • getCursor

      public Cursor getCursor()
      Returns the cursor.
    • setCursor

      public void setCursor(Cursor aCursor)
      Sets the cursor.
    • isDisabled

      public boolean isDisabled()
      Whether view is disabled.
    • setDisabled

      public void setDisabled(boolean aValue)
      Sets whether view is enabled.
    • isEnabled

      public boolean isEnabled()
      Whether view is enabled.
    • setEnabled

      public void setEnabled(boolean aValue)
      Sets whether view is enabled.
    • isClipToBounds

      public boolean isClipToBounds()
      Returns whether view should clip to bounds.
    • setClipToBounds

      public void setClipToBounds(boolean aValue)
      Sets whether view should clip to bounds.
    • getClip

      public Shape getClip()
      Returns the clip shape.
    • setClip

      public void setClip(Shape aShape)
      Sets the clip shape.
    • getClipBounds

      public Rect getClipBounds()
      Returns the clip bounds.
    • getClipAll

      public Shape getClipAll()
      Returns the clip of this view due to all parents.
    • getClipAllBounds

      public Rect getClipAllBounds()
      Returns the clip bounds due to all parents.
    • getClippedRect

      public Rect getClippedRect(Rect aRect)
      Returns the clipped shape for given shape.
    • getVisRect

      public Rect getVisRect()
      Returns the visible bounds for a view based on ancestor clips (just bound local if no clipping found).
    • scrollToVisible

      public void scrollToVisible(Shape aShape)
      Called to scroll the given shape in this view coords to visible.
    • isLocalToParentSimple

      public boolean isLocalToParentSimple()
      Returns whether transform to parent is simple (contains no rotate, scale, skew).
    • getLocalToParent

      public Transform getLocalToParent()
      Returns the transform.
    • getLocalToParent

      public Transform getLocalToParent(View aPar)
      Returns the transform.
    • localToParent

      public Point localToParent(double aX, double aY)
      Converts a point from local to parent.
    • localToParent

      public Point localToParent(double aX, double aY, View aPar)
      Converts a point from local to given parent.
    • localToParent

      public Shape localToParent(Shape aShape)
      Converts a shape from local to parent.
    • localToParent

      public Shape localToParent(Shape aShape, View aPar)
      Converts a point from local to given parent.
    • getParentToLocal

      public Transform getParentToLocal()
      Returns the transform from parent to local coords.
    • getParentToLocal

      public Transform getParentToLocal(View aPar)
      Returns the transform from parent to local coords.
    • parentToLocal

      public Point parentToLocal(double aX, double aY)
      Converts a point from parent to local.
    • parentToLocal

      public Point parentToLocal(double aX, double aY, View aPar)
      Converts a point from given parent to local.
    • parentToLocal

      public Shape parentToLocal(Shape aShape)
      Converts a shape from parent to local.
    • parentToLocal

      public Shape parentToLocal(Shape aShape, View aView)
      Converts a shape from parent to local.
    • localToScreen

      public Point localToScreen(double aX, double aY)
      Converts a point from local to parent.
    • contains

      public boolean contains(Point aPnt)
      Returns whether view contains point.
    • contains

      public boolean contains(double aX, double aY)
      Returns whether view contains point.
    • contains

      public boolean contains(Shape aShape)
      Returns whether view contains shape.
    • intersects

      public boolean intersects(Shape aShape)
      Returns whether view intersects shape.
    • getParent

      public ParentView getParent()
      Returns the parent of this view.
    • setParent

      protected void setParent(ParentView aPar)
      Sets the parent.
    • getParent

      public <T extends View> T getParent(Class<T> aClass)
      Returns the first parent with given class by iterating up parent hierarchy.
    • getParentCount

      public int getParentCount()
      Returns the number of ancestors of this view.
    • isAncestor

      public boolean isAncestor(View aView)
      Returns whether given view is an ancestor of this view.
    • indexInParent

      public int indexInParent()
      Returns the index of this view in parent.
    • getHost

      public ViewHost getHost()
      Returns the ViewHost if this view is guest view of parent ViewHost.
    • isGuest

      public boolean isGuest()
      Returns whether view is a "guest" child of a ViewHost.
    • indexInHost

      public int indexInHost()
      Returns the index of this view in ViewHost parent (or -1 if parent isn't host).
    • isVisible

      public boolean isVisible()
      Returns whether this view is visible.
    • setVisible

      public void setVisible(boolean aValue)
      Sets whether this view is visible.
    • isShowing

      public boolean isShowing()
      Returns whether view is visible and has parent that is showing.
    • setShowing

      protected void setShowing(boolean aValue)
      Sets whether view is showing.
    • isPickable

      public boolean isPickable()
      Returns whether view can be hit by mouse.
    • setPickable

      public void setPickable(boolean aValue)
      Sets whether view can be hit by mouse.
    • isPickableVisible

      public boolean isPickableVisible()
      Returns whether view can be hit by mouse and visible.
    • isPaintable

      public boolean isPaintable()
      Returns whether view should be painted.
    • setPaintable

      public void setPaintable(boolean aValue)
      Sets whether view should be painted.
    • isManaged

      public boolean isManaged()
      Returns whether view should be included when a parent does layout.
    • setManaged

      public void setManaged(boolean aValue)
      Sets whether view should be included when a parent does layout.
    • isManagedVisible

      public boolean isManagedVisible()
      Returns whether view should be included when a parent does layout.
    • isMouseOver

      public boolean isMouseOver()
      Returns whether current mouse location is over this view.
    • isMouseDown

      public boolean isMouseDown()
      Returns whether current mouse location is over this view.
    • getRootView

      public RootView getRootView()
      Returns the root view.
    • getWindow

      public WindowView getWindow()
      Returns the window.
    • getUpdater

      public ViewUpdater getUpdater()
      Returns the ViewUpdater.
    • getLean

      public Pos getLean()
      Returns the position this view would prefer to take when inside a pane.
    • setLean

      public void setLean(Pos aPos)
      Sets the lean this view would prefer to take when inside a pane.
    • getLeanX

      public HPos getLeanX()
      Returns the horizontal position this view would prefer to take when inside a pane.
    • setLeanX

      public void setLeanX(HPos aPos)
      Sets the horizontal lean this view would prefer to take when inside a pane.
    • getLeanY

      public VPos getLeanY()
      Returns the vertical position this view would prefer to take when inside a pane.
    • setLeanY

      public void setLeanY(VPos aPos)
      Sets the vertical position this view would prefer to take when inside a pane.
    • isGrowWidth

      public boolean isGrowWidth()
      Returns whether this view would like to grow horizontally if possible when inside a pane.
    • setGrowWidth

      public void setGrowWidth(boolean aValue)
      Sets whether this view would like to grow horizontally if possible when inside a pane.
    • isGrowHeight

      public boolean isGrowHeight()
      Returns whether this view would like to grow vertically if possible when inside a pane.
    • setGrowHeight

      public void setGrowHeight(boolean aValue)
      Sets whether this view would like to grow vertically if possible when inside a pane.
    • isHorizontal

      public boolean isHorizontal()
      Returns whether this view has a horizontal orientation.
    • isVertical

      public boolean isVertical()
      Returns whether this view has a vertical orientation.
    • setVertical

      public void setVertical(boolean aValue)
      Sets whether this view has a vertical orientation.
    • getBindings

      public List<Binding> getBindings()
      Returns the list of bindings.
    • getBindingCount

      public int getBindingCount()
      Returns the number of bindings.
    • getBinding

      public Binding getBinding(int anIndex)
      Returns the individual binding at given index.
    • addBinding

      public void addBinding(Binding aBinding)
      Adds the individual binding to the shape's bindings list.
    • removeBinding

      public Binding removeBinding(int anIndex)
      Removes the binding at the given index from view bindings list.
    • getBinding

      public Binding getBinding(String aPropName)
      Returns the individual binding with the given property name.
    • removeBinding

      public boolean removeBinding(String aPropName)
      Removes the binding with given property name.
    • getProps

      public Map<String,Object> getProps()
      Returns the property map.
    • getProp

      public Object getProp(String aName)
      Returns a named client property.
    • setProp

      public Object setProp(String aName, Object aValue)
      Puts a named client property.
    • isMinWidthSet

      public boolean isMinWidthSet()
      Returns whether view minimum width is set.
    • getMinWidth

      public double getMinWidth()
      Returns the view minimum width.
    • setMinWidth

      public void setMinWidth(double aWidth)
      Sets the view minimum width.
    • isMinHeightSet

      public boolean isMinHeightSet()
      Returns whether view minimum height is set.
    • getMinHeight

      public double getMinHeight()
      Returns the view minimum height.
    • setMinHeight

      public void setMinHeight(double aHeight)
      Sets the view minimum height.
    • getMinWidthImpl

      protected double getMinWidthImpl()
      Calculates the minimum width.
    • getMinHeightImpl

      protected double getMinHeightImpl()
      Calculates the minimum height.
    • getMinSize

      public Size getMinSize()
      Returns the view minimum size.
    • setMinSize

      public void setMinSize(Size aSize)
      Sets the view minimum size.
    • setMinSize

      public void setMinSize(double aWidth, double aHeight)
      Sets the view minimum size.
    • isMaxWidthSet

      public boolean isMaxWidthSet()
      Returns whether view maximum width is set.
    • getMaxWidth

      public double getMaxWidth()
      Returns the view maximum width.
    • setMaxWidth

      public void setMaxWidth(double aWidth)
      Sets the view maximum width.
    • isMaxHeightSet

      public boolean isMaxHeightSet()
      Returns whether view maximum height is set.
    • getMaxHeight

      public double getMaxHeight()
      Returns the view maximum height.
    • setMaxHeight

      public void setMaxHeight(double aHeight)
      Sets the view maximum height.
    • getMaxSize

      public Size getMaxSize()
      Returns the view maximum size.
    • setMaxSize

      public void setMaxSize(Size aSize)
      Sets the view maximum size.
    • setMaxSize

      public void setMaxSize(double aWidth, double aHeight)
      Sets the view maximum size.
    • isPrefWidthSet

      public boolean isPrefWidthSet()
      Returns whether preferred width is set.
    • getPrefWidth

      public double getPrefWidth()
      Returns the view preferred width.
    • getPrefWidth

      public double getPrefWidth(double aH)
      Returns the view preferred width.
    • setPrefWidth

      public void setPrefWidth(double aWidth)
      Sets the view preferred width.
    • isPrefHeightSet

      public boolean isPrefHeightSet()
      Returns whether preferred width is set.
    • getPrefHeight

      public double getPrefHeight()
      Returns the view preferred height.
    • getPrefHeight

      public double getPrefHeight(double aW)
      Returns the view preferred height.
    • setPrefHeight

      public void setPrefHeight(double aHeight)
      Sets the view preferred height.
    • getPrefWidthImpl

      protected double getPrefWidthImpl(double aH)
      Calculates the preferred width.
    • getPrefHeightImpl

      protected double getPrefHeightImpl(double aW)
      Calculates the preferred height.
    • getPrefSize

      public Size getPrefSize()
      Returns the view preferred size.
    • setPrefSize

      public void setPrefSize(Size aSize)
      Sets the view preferred size.
    • setPrefSize

      public void setPrefSize(double aWidth, double aHeight)
      Sets the view preferred size.
    • getBestWidth

      public double getBestWidth(double aH)
      Returns the best width for view - accounting for pref/min/max.
    • getBestHeight

      public double getBestHeight(double aW)
      Returns the best height for view - accounting for pref/min/max.
    • getBestSize

      public Size getBestSize()
      Returns the best size.
    • getAlign

      public Pos getAlign()
      Returns the alignment.
    • setAlign

      public void setAlign(Pos aPos)
      Sets the alignment.
    • getAlignX

      public HPos getAlignX()
      Returns the horizontal alignment.
    • setAlignX

      public void setAlignX(HPos aPos)
      Sets the horizontal alignment.
    • getAlignY

      public VPos getAlignY()
      Returns the vertical alignment.
    • setAlignY

      public void setAlignY(VPos aPos)
      Sets the vertical alignment.
    • getMargin

      public Insets getMargin()
      Returns the spacing insets requested between parent/neighbors and the border of this view.
    • setMargin

      public void setMargin(double aTp, double aRt, double aBtm, double aLt)
      Sets the spacing insets requested between parent/neighbors and the border of this view.
    • setMargin

      public void setMargin(Insets theIns)
      Sets the spacing insets requested between parent/neighbors and the border of this view.
    • getPadding

      public Insets getPadding()
      Returns the spacing insets between the border of this view and it's content.
    • setPadding

      public void setPadding(double aTp, double aRt, double aBtm, double aLt)
      Sets the spacing insets between the border of this view and it's content.
    • setPadding

      public void setPadding(Insets theIns)
      Sets the spacing insets between the border of this view and it's content.
    • getSpacing

      public double getSpacing()
      Returns the spacing for content (usually children).
    • setSpacing

      public void setSpacing(double aValue)
      Sets the spacing for content (usually children).
    • getDefaultBorder

      public Border getDefaultBorder()
      Returns the default border.
    • getDefaultFill

      public Paint getDefaultFill()
      Returns the default fill paint.
    • getDefaultFont

      public Font getDefaultFont()
      Returns the default font.
    • getInsetsAll

      public Insets getInsetsAll()
      Returns the insets due to border and/or padding.
    • paintAll

      protected void paintAll(Painter aPntr)
      Main paint method.
    • paintBack

      protected void paintBack(Painter aPntr)
      Paints background.
    • paintFront

      protected void paintFront(Painter aPntr)
      Paints foreground.
    • getToolTip

      public String getToolTip()
      Returns the tool tip text.
    • setToolTip

      public void setToolTip(String aString)
      Sets the tool tip text.
    • isToolTipEnabled

      public boolean isToolTipEnabled()
      Returns whether tooltip is enabled.
    • setToolTipEnabled

      public void setToolTipEnabled(boolean aValue)
      Sets whether tooltip is enabled.
    • getToolTip

      public String getToolTip(ViewEvent anEvent)
      Returns a tool tip string for given event.
    • getRealClassName

      public String getRealClassName()
      Returns the substitution class name.
    • setRealClassName

      public void setRealClassName(String aName)
      Sets the substitution class string.
    • relayout

      public void relayout()
      Called to relayout.
    • relayoutParent

      public void relayoutParent()
      Called to notify parents to relayout because preferred sizes have potentially changed.
    • repaint

      public void repaint()
      Called to register view for repaint.
    • repaint

      public void repaint(Rect aRect)
      Called to register view for repaint.
    • repaint

      public void repaint(double aX, double aY, double aW, double aH)
      Called to register view for repaint.
    • repaintInParent

      protected void repaintInParent(Rect aRect)
      Called to repaint in parent for cases where transform might change.
    • getRepaintRect

      public Rect getRepaintRect()
      Returns the rect of view that has been registered for repaint, expanded for focus/effects.
    • getRepaintRectExpanded

      protected Rect getRepaintRectExpanded(Rect aRect)
      Returns the given repaint rect, expanded for focus/effects.
    • isNeedsRepaint

      public boolean isNeedsRepaint()
      Returns whether needs repaint.
    • isFocused

      public boolean isFocused()
      Returns whether this view is the RootView.FocusedView.
    • setFocused

      protected void setFocused(boolean aValue)
      Sets whether this view is the RootView.FocusedView.
    • isFocusable

      public boolean isFocusable()
      Returns whether this view can get focus.
    • setFocusable

      public void setFocusable(boolean aValue)
      Sets whether this view can get focus.
    • isFocusWhenPressed

      public boolean isFocusWhenPressed()
      Returns whether this view should request focus when pressed.
    • setFocusWhenPressed

      public void setFocusWhenPressed(boolean aValue)
      Sets whether this view should request focus when pressed.
    • isFocusKeysEnabled

      public boolean isFocusKeysEnabled()
      Returns whether focus should change when traversal keys are pressed (Tab).
    • setFocusKeysEnabled

      public void setFocusKeysEnabled(boolean aValue)
      Sets whether focus should change when traversal keys are pressed (Tab).
    • isFocusPainted

      public boolean isFocusPainted()
      Returns whether focus ring should be painted when view is focused.
    • setFocusPainted

      public void setFocusPainted(boolean aValue)
      Sets whether focus ring should be painted when view is focused.
    • isActionable

      public boolean isActionable()
      Returns whether view can generate action events in response to certain user interactions.
    • setActionable

      public void setActionable(boolean aValue)
      Sets whether view can generate action events in response to certain user interactions.
    • requestFocus

      public void requestFocus()
      Tells view to request focus.
    • getFocusNext

      public View getFocusNext()
      Returns the next focus View.
    • getFocusPrev

      public View getFocusPrev()
      Returns the next focus View.
    • getOwner

      public ViewOwner getOwner()
      Returns the view owner.
    • setOwner

      public void setOwner(ViewOwner anOwner)
      Sets the owner.
    • getOwner

      public <T> T getOwner(Class<T> aClass)
      Returns the owner of given class.
    • getEnv

      public ViewEnv getEnv()
      Returns the view environment.
    • getText

      public String getText()
      Returns the text value of this view.
    • setText

      public void setText(String aString)
      Sets the text value of this view.
    • getEventAdapter

      public EventAdapter getEventAdapter()
      Returns the event adapter for view.
    • enableEvents

      protected void enableEvents(ViewEvent.Type... theTypes)
      Sets an array of enabled events.
    • disableEvents

      protected void disableEvents(ViewEvent.Type... theTypes)
      Sets an array of enabled events.
    • addEventFilter

      public void addEventFilter(EventListener aLsnr, ViewEvent.Type... theTypes)
      Adds an event filter.
    • removeEventFilter

      public void removeEventFilter(EventListener aLsnr, ViewEvent.Type... theTypes)
      Removes an event filter.
    • addEventHandler

      public void addEventHandler(EventListener aLsnr, ViewEvent.Type... theTypes)
      Adds an event handler.
    • removeEventHandler

      public void removeEventHandler(EventListener aLsnr, ViewEvent.Type... theTypes)
      Removes an event handler.
    • fireActionEvent

      protected void fireActionEvent(ViewEvent anEvent)
      Fires the action event. This should mostly be called in response to user input events (mouse, key) when a complete change has been made to the primary value of a control view.
    • dispatchEventToView

      public void dispatchEventToView(ViewEvent anEvent)
      Sends an event to this view through processEvent methods.
    • processEventFilters

      protected void processEventFilters(ViewEvent anEvent)
      Process ViewEvent for View EventFilters.
    • processEventHandlers

      protected void processEventHandlers(ViewEvent anEvent)
      Process ViewEvent for View EventHandlers.
    • processEvent

      protected void processEvent(ViewEvent anEvent)
      Process ViewEvent.
    • themeChanged

      protected void themeChanged()
      Called when ViewTheme changes.
    • getAnim

      public ViewAnim getAnim(int aTime)
      Returns the anim for the given time.
    • getAnimCleared

      public ViewAnim getAnimCleared(int aTime)
      Returns a cleared anim at given time.
    • playAnimDeep

      public void playAnimDeep()
      Play animations deep.
    • stopAnimDeep

      public void stopAnimDeep()
      Stop animations deep.
    • getAnimTimeDeep

      public int getAnimTimeDeep()
      Returns the anim time.
    • setAnimTimeDeep

      public void setAnimTimeDeep(int aValue)
      Sets the anim time deep.
    • getPhysics

      public ViewPhysics getPhysics()
      Returns the physics objects that provides information for physics simulations.
    • getPhysics

      public ViewPhysics getPhysics(boolean doCreate)
      Returns the physics objects that provides information for physics simulations.
    • clone

      protected PropObject clone() throws CloneNotSupportedException
      Standard clone implementation.
      Overrides:
      clone in class PropObject
      Throws:
      CloneNotSupportedException
    • getValuePropName

      protected String getValuePropName()
      Returns a mapped property name.
    • initProps

      protected void initProps(PropSet aPropSet)
      Initialize Props. Override to provide custom defaults.
      Overrides:
      initProps in class PropObject
    • getPropValue

      public Object getPropValue(String aPropName)
      Returns the value for given prop name.
      Overrides:
      getPropValue in class PropObject
    • setPropValue

      public void setPropValue(String aPropName, Object aValue)
      Sets the value for given prop name.
      Overrides:
      setPropValue in class PropObject
    • getPropDefault

      public Object getPropDefault(String aPropName)
      Override property defaults for View.
      Overrides:
      getPropDefault in class PropObject
    • toXML

      public XMLElement toXML(XMLArchiver anArchiver)
      XML Archival.
      Specified by:
      toXML in interface XMLArchiver.Archivable
    • fromXML

      public Object fromXML(XMLArchiver anArchiver, XMLElement anElement)
      XML unarchival.
      Specified by:
      fromXML in interface XMLArchiver.Archivable
    • toStringProps

      public String toStringProps()
      Standard toString implementation.
      Overrides:
      toStringProps in class PropObject