2 * Copyright 2004-2005 Alexey Efimov
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org
.intellij
.images
.editor
;
18 import com
.intellij
.openapi
.Disposable
;
19 import com
.intellij
.openapi
.project
.Project
;
20 import com
.intellij
.openapi
.vfs
.VirtualFile
;
21 import com
.intellij
.openapi
.vfs
.VirtualFileListener
;
22 import org
.intellij
.images
.ui
.ImageComponentDecorator
;
29 * @author <a href="mailto:aefimov.box@gmail.com">Alexey Efimov</a>
31 public interface ImageEditor
extends Disposable
, VirtualFileListener
, ImageComponentDecorator
{
32 VirtualFile
getFile();
36 ImageDocument
getDocument();
38 JComponent
getComponent();
41 * Return the target of image editing area within entire component,
42 * returned by {@link #getComponent()}.
44 * @return Content component
46 JComponent
getContentComponent();
49 * Return <code>true</code> if editor show valid image.
51 * @return <code>true</code> if editor show valid image.
56 * Return <code>true</code> if editor is already disposed.
58 * @return <code>true</code> if editor is already disposed.
62 ImageZoomModel
getZoomModel();
64 void setGridVisible(boolean visible
);
66 boolean isGridVisible();