blob: 1592677265850c92ebd640acfe83c5ea69c95060 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/*******************************************************************************
* Copyright (c) 2014 Florian Thienel and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Florian Thienel - initial API and implementation
*******************************************************************************/
package org.eclipse.vex.core.internal.boxes;
import org.eclipse.vex.core.internal.core.Graphics;
import org.eclipse.vex.core.internal.core.Rectangle;
/**
* @author Florian Thienel
*/
public interface IBox {
int getAbsoluteTop();
int getAbsoluteLeft();
int getTop();
int getLeft();
int getWidth();
int getHeight();
Rectangle getBounds();
void accept(IBoxVisitor visitor);
<T> T accept(IBoxVisitorWithResult<T> visitor);
void layout(Graphics graphics);
boolean reconcileLayout(Graphics graphics);
void paint(Graphics graphics);
public abstract boolean isLeftOf(final int x);
public abstract boolean isRightOf(final int x);
public abstract boolean containsX(final int x);
public abstract boolean isBelow(final int y);
public abstract boolean isAbove(final int y);
public abstract boolean containsY(final int y);
public abstract boolean containsCoordinates(final int x, final int y);
}
|