modules/graphics/src/test/java/test/com/sun/javafx/pgstub/StubStage.java
Print this page
*** 70,88 ****
// below are those platform defaults.
public float x = 16;
public float y = 12;
public float width = 256;
public float height = 192;
public boolean visible;
public float opacity;
@Override
public void setBounds(float x, float y, boolean xSet, boolean ySet,
float width, float height,
float contentWidth, float contentHeight,
! float xGravity, float yGravity)
{
numTimesSetSizeAndLocation++;
boolean locationChanged = false;
--- 70,91 ----
// below are those platform defaults.
public float x = 16;
public float y = 12;
public float width = 256;
public float height = 192;
+ public float renderScaleX = 1.0f;
+ public float renderScaleY = 1.0f;
public boolean visible;
public float opacity;
@Override
public void setBounds(float x, float y, boolean xSet, boolean ySet,
float width, float height,
float contentWidth, float contentHeight,
! float xGravity, float yGravity,
! float renderScaleX, float renderScaleY)
{
numTimesSetSizeAndLocation++;
boolean locationChanged = false;
*** 127,156 ****
}
if (sizeChanged) {
notificationSender.changedSize(width, height);
}
}
@Override
! public float getUIScale() {
return 1.0f;
}
@Override
! public float getRenderScale() {
return 1.0f;
}
// Just a helper method
public void setSize(float w, float h) {
! setBounds(0, 0, false, false, w, h, 0, 0, 0, 0);
}
// Just a helper method
public void setLocation(float x, float y) {
! setBounds(x, y, true, true, 0, 0, 0, 0, 0, 0);
}
@Override
public void setIcons(List icons) {
}
--- 130,171 ----
}
if (sizeChanged) {
notificationSender.changedSize(width, height);
}
+ if (renderScaleX > 0.0) this.renderScaleX = renderScaleX;
+ if (renderScaleY > 0.0) this.renderScaleY = renderScaleY;
}
@Override
! public float getPlatformScaleX() {
return 1.0f;
}
@Override
! public float getPlatformScaleY() {
! return 1.0f;
! }
!
! @Override
! public float getOutputScaleX() {
! return 1.0f;
! }
!
! @Override
! public float getOutputScaleY() {
return 1.0f;
}
// Just a helper method
public void setSize(float w, float h) {
! setBounds(0, 0, false, false, w, h, 0, 0, 0, 0, 0, 0);
}
// Just a helper method
public void setLocation(float x, float y) {
! setBounds(x, y, true, true, 0, 0, 0, 0, 0, 0, 0, 0);
}
@Override
public void setIcons(List icons) {
}
*** 328,337 ****
--- 343,357 ----
}
});
}
@Override
+ public void changedScale(float xScale, float yScale) {
+ process(listener1 -> listener1.changedScale(xScale, yScale));
+ }
+
+ @Override
public void changedFocused(final boolean focused,
final FocusCause cause) {
process(listener1 -> listener1.changedFocused(focused, cause));
}
*** 343,352 ****
--- 363,373 ----
@Override
public void changedMaximized(final boolean maximized) {
process(listener1 -> listener1.changedMaximized(maximized));
}
+ @Override
public void changedAlwaysOnTop(boolean alwaysOnTop) {
process(listener1 -> listener1.changedAlwaysOnTop(alwaysOnTop));
}
*** 411,418 ****
--- 432,440 ----
// TODO: Add code later
}
}
+ @Override
public void setRTL(boolean b) {
}
}