|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.micropainter.core.layout.AbstractLayout
public abstract class AbstractLayout
The abstract definition of a delegate that takes the responsibility of
painting a window2D Layout.
| Field Summary | |
|---|---|
private Antialiasing |
antialiasing
aliasing |
private Fractional |
fractional
fractional |
private Interpolation |
interpolation
interpolation |
private float |
layoutAlpha
|
private boolean |
lock
lock state for this layout |
private int |
priority
priority for this layout |
private TextAntialiasing |
textAnliasing
text aliasing |
private Window2D |
window2D
the window2D to lay out |
private int |
windowZone
the zone to lay out |
| Constructor Summary | |
|---|---|
AbstractLayout()
|
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
compare priority of this layout to another layout |
protected abstract void |
doPaintLayout(View2D v2d,
java.awt.Graphics2D g2d)
Subclass this for custom paint |
Antialiasing |
getAntialiasing()
return true if anti alias is required, false otherwise |
Fractional |
getFractional()
return Fractional |
Interpolation |
getInterpolation()
get the interpolation |
float |
getLayoutAlpha()
get the alpha |
int |
getPriority()
get the priority level |
TextAntialiasing |
getTextAnliasing()
return TextAntialiasing |
Window2D |
getWindow2D()
get the window2D |
int |
getWindowZone()
get the window zone |
boolean |
isLock()
return true if the layout is lock, false otherwise |
void |
lockLayout()
lock this layout |
void |
paint(View2D v2d,
java.awt.Graphics2D g2d)
paint the layout |
void |
setAntialiasing(Antialiasing antialiasing)
set the antialiasing |
void |
setFractional(Fractional fractional)
set the fractional |
void |
setInterpolation(Interpolation interpolation)
set the interpolation |
void |
setLayoutAlpha(float layoutAlpha)
set the alpha |
void |
setPriority(int priority)
set the priority |
private void |
setQuality(java.awt.Graphics2D g2d)
set the rendering quality for painting this layout |
void |
setTextAnliasing(TextAntialiasing textAnliasing)
set the TextAntialiasing |
void |
setWindow2D(Window2D window2D)
set the window2D |
void |
setWindowZone(int windowZone)
set the window zone |
void |
unlockLayout()
unlock this layout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Window2D window2D
private int windowZone
private float layoutAlpha
private int priority
private boolean lock
private Interpolation interpolation
private Antialiasing antialiasing
private Fractional fractional
private TextAntialiasing textAnliasing
| Constructor Detail |
|---|
public AbstractLayout()
| Method Detail |
|---|
public void lockLayout()
public void unlockLayout()
public boolean isLock()
public int getWindowZone()
public void setWindowZone(int windowZone)
windowZone - public Window2D getWindow2D()
public void setWindow2D(Window2D window2D)
window2D - public int getPriority()
public void setPriority(int priority)
priority - public float getLayoutAlpha()
public void setLayoutAlpha(float layoutAlpha)
layoutAlpha - public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable<java.lang.Object>o - public Interpolation getInterpolation()
public void setInterpolation(Interpolation interpolation)
value - public Antialiasing getAntialiasing()
public void setAntialiasing(Antialiasing antialiasing)
antialias - public void setFractional(Fractional fractional)
fractional - public Fractional getFractional()
public TextAntialiasing getTextAnliasing()
public void setTextAnliasing(TextAntialiasing textAnliasing)
TextAntialiasing - private void setQuality(java.awt.Graphics2D g2d)
g2d -
protected abstract void doPaintLayout(View2D v2d,
java.awt.Graphics2D g2d)
v2d - the View2D to lay out.g2d - the Graphics context in which to paint
public void paint(View2D v2d,
java.awt.Graphics2D g2d)
v2d - the View2D to lay out.g2d - the Graphics context in which to paint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||