mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
generified
This commit is contained in:
@@ -128,7 +128,7 @@ public class JBViewport extends JViewport implements ZoomableViewport {
|
||||
@Override
|
||||
public Magnificator getMagnificator() {
|
||||
JComponent view = (JComponent)getView();
|
||||
return view != null ? (Magnificator)view.getClientProperty(Magnificator.CLIENT_PROPERTY_KEY) : null;
|
||||
return view != null ? UIUtil.getClientProperty(view, Magnificator.CLIENT_PROPERTY_KEY) : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -24,6 +24,6 @@ import com.intellij.openapi.util.Key;
|
||||
import java.awt.*;
|
||||
|
||||
public interface Magnificator {
|
||||
Key CLIENT_PROPERTY_KEY = Key.create("MagnifiableComponent");
|
||||
Key<Magnificator> CLIENT_PROPERTY_KEY = Key.create("MagnifiableComponent");
|
||||
Point magnify(double scale, Point at);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user