Package org.refcodes.graphical
Class ViewportOffsetImpl
- java.lang.Object
-
- org.refcodes.graphical.ViewportOffsetImpl
-
- All Implemented Interfaces:
ViewportOffset
,ViewportOffsetXAccessor
,ViewportOffsetYAccessor
- Direct Known Subclasses:
ViewportOffsetImpl.ViewportOffsetPropertyBuilderImpl
public class ViewportOffsetImpl extends java.lang.Object implements ViewportOffset
The Class ViewportOffsetImpl.- Author:
- steiner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ViewportOffsetImpl.ViewportOffsetPropertyBuilderImpl
The Class ViewportOffsetPropertyBuilderImpl.-
Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportOffset
ViewportOffset.ViewportOffsetBuilder<B extends ViewportOffset.ViewportOffsetBuilder<B>>, ViewportOffset.ViewportOffsetMutator, ViewportOffset.ViewportOffsetProperty, ViewportOffset.ViewportOffsetPropertyBuilder
-
Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportOffsetXAccessor
ViewportOffsetXAccessor.ViewportOffsetXBuilder<B extends ViewportOffsetXAccessor.ViewportOffsetXBuilder<B>>, ViewportOffsetXAccessor.ViewportOffsetXMutator, ViewportOffsetXAccessor.ViewportOffsetXProperty
-
Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportOffsetYAccessor
ViewportOffsetYAccessor.ViewportOffsetYBuilder<B extends ViewportOffsetYAccessor.ViewportOffsetYBuilder<B>>, ViewportOffsetYAccessor.ViewportOffsetYMutator, ViewportOffsetYAccessor.ViewportOffsetYProperty
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ViewportOffsetImpl()
Instantiates a new viewport offset impl.ViewportOffsetImpl(int aOffsetX, int aOffsetY)
Instantiates a new viewport offset impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getViewportOffsetX()
Retrieves the X offset from the X offset property.int
getViewportOffsetY()
Retrieves the Y offset from the Y offset property.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.refcodes.graphical.ViewportOffset
-
-
-
-
Method Detail
-
getViewportOffsetX
public int getViewportOffsetX()
Retrieves the X offset from the X offset property.- Specified by:
getViewportOffsetX
in interfaceViewportOffsetXAccessor
- Returns:
- The X offset stored by the X offset property.
-
getViewportOffsetY
public int getViewportOffsetY()
Retrieves the Y offset from the Y offset property.- Specified by:
getViewportOffsetY
in interfaceViewportOffsetYAccessor
- Returns:
- The Y offset stored by the Y offset property.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-