Perspective extends AbstractCssProperty<Perspective> { public void setPercent(final float percent) { value = percent; cssLengthUnit = CssLengthUnit.PER; cssValue = String.valueOf(percent) + cssLengthUnit; if (getStateChangeInformer() != null) { getStateChangeInformer().stateChanged(this); } } Perspective();  Perspective(final String cssValue);  Perspective(final Perspective perspective);  Perspective(final float percent);  Perspective(final float value, final CssLengthUnit cssLengthUnit); Perspective setValue(final float value,
            final CssLengthUnit cssLengthUnit); void setPercent(final float percent); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); Float getValue(); CssLengthUnit getUnit(); @Override Perspective setCssValue(final String cssValue); void setAsAuto(); static boolean isValid(final String cssValue); static final String NONE; }
@Test public void testSetPercent() { { Perspective perspective = new Perspective(); perspective.setPercent(75); assertEquals("75.0%", perspective.getCssValue()); assertEquals(CssLengthUnit.PER, perspective.getUnit()); assertTrue(perspective.getValue() == 75); } }