/** *Testsproperty'Max'. *Property'AutoOrigin'setstotrueandproperty'AutoMax' *setstofalsebeforetest.
*/ publicvoid _Max() { try { //if AutoOrigin isn't true then this property works only when //current Origin is less than new value of Max
oObj.setPropertyValue("AutoOrigin", Boolean.TRUE);
oObj.setPropertyValue("AutoMax",Boolean.FALSE);
} catch(com.sun.star.lang.WrappedTargetException e) {
log.println("Couldn't set property value");
e.printStackTrace(log); thrownew StatusException("Couldn't set property value", e);
} catch(com.sun.star.lang.IllegalArgumentException e) {
log.println("Couldn't set property value");
e.printStackTrace(log); thrownew StatusException("Couldn't set property value", e);
} catch(com.sun.star.beans.PropertyVetoException e) {
log.println("Couldn't set property value");
e.printStackTrace(log); thrownew StatusException("Couldn't set property value", e);
} catch(com.sun.star.beans.UnknownPropertyException e) {
log.println("Couldn't set property value");
e.printStackTrace(log); thrownew StatusException("Couldn't set property value", e);
}
testProperty("Max");
}
/** *Testsproperty'Min'. *Property'AutoOrigin'setstotrueandproperty'AutoMin' *setstofalsebeforetest.
*/ publicvoid _Min() { try { //if AutoOrigin isn't true then this property works only when //current Origin is greater than new value of Min
oObj.setPropertyValue("AutoOrigin", Boolean.TRUE);
oObj.setPropertyValue("AutoMin", Boolean.FALSE);
} catch(com.sun.star.lang.WrappedTargetException e) {
log.println("Couldn't set property value");
e.printStackTrace(log); thrownew StatusException("Couldn't set property value", e);
} catch(com.sun.star.lang.IllegalArgumentException e) {
log.println("Couldn't set property value");
e.printStackTrace(log); thrownew StatusException("Couldn't set property value", e);
} catch(com.sun.star.beans.PropertyVetoException e) {
log.println("Couldn't set property value");
e.printStackTrace(log); thrownew StatusException("Couldn't set property value", e);
} catch(com.sun.star.beans.UnknownPropertyException e) {
log.println("Couldn't set property value");
e.printStackTrace(log); thrownew StatusException("Couldn't set property value", e);
}
testProperty("Min");
}
/** *Testsproperty'Origin'. *Property'Logarithmic'setstofalsebeforetest.
*/ publicvoid _Origin() { try {
oObj.setPropertyValue("Logarithmic",Boolean.FALSE);
} catch(com.sun.star.lang.WrappedTargetException e) {
log.println("Couldn't set property value");
e.printStackTrace(log); thrownew StatusException("Couldn't set property value", e);
} catch(com.sun.star.lang.IllegalArgumentException e) {
log.println("Couldn't set property value");
e.printStackTrace(log); thrownew StatusException("Couldn't set property value", e);
} catch(com.sun.star.beans.PropertyVetoException e) {
log.println("Couldn't set property value");
e.printStackTrace(log); thrownew StatusException("Couldn't set property value", e);
} catch(com.sun.star.beans.UnknownPropertyException e) {
log.println("Couldn't set property value");
e.printStackTrace(log); thrownew StatusException("Couldn't set property value", e);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.