PerspectiveOrigin extends AbstractCssProperty<PerspectiveOrigin> { public void setAsInherit() { setCssValue(INHERIT); } PerspectiveOrigin();  PerspectiveOrigin(final String cssValue);  PerspectiveOrigin(final PerspectiveOrigin backgroundSize);  PerspectiveOrigin(final float xyAxis,
            final CssLengthUnit cssLengthUnit);  PerspectiveOrigin(final float xAxis,
            final CssLengthUnit xAxisCssLengthUnit, final float yAxis,
            final CssLengthUnit yAxisCssLengthUnit); PerspectiveOrigin setValue(final float xAxis,
            final CssLengthUnit xAxisCssLengthUnit, final float yAxis,
            final CssLengthUnit yAxisCssLengthUnit); PerspectiveOrigin setValue(final float xyAxis,
            final CssLengthUnit cssLengthUnit); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); Float getXAxis(); Float getYAxis(); CssLengthUnit getXAxisUnit(); CssLengthUnit getYAxisUnit(); @Override PerspectiveOrigin setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); static boolean isValid(final String cssValue); static final String INITIAL; static final String INHERIT; }
@Test public void testSetAsInherit() { PerspectiveOrigin perspectiveOrigin = new PerspectiveOrigin(); assertNotNull(perspectiveOrigin.getXAxis()); assertNotNull(perspectiveOrigin.getYAxis()); assertNotNull(perspectiveOrigin.getXAxisUnit()); assertNotNull(perspectiveOrigin.getYAxisUnit()); perspectiveOrigin.setAsInherit(); assertEquals(PerspectiveOrigin.INHERIT, perspectiveOrigin.getCssValue()); assertNull(perspectiveOrigin.getXAxis()); assertNull(perspectiveOrigin.getYAxis()); assertNull(perspectiveOrigin.getXAxisUnit()); assertNull(perspectiveOrigin.getYAxisUnit()); }