|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object facets.util.Tracer facets.util.StatefulCore facets.core.superficial.app.SelectionView facets.core.app.avatar.AvatarViewWorks facets.core.app.avatar.PlaneViewWorks
public class PlaneViewWorks
AvatarViewWorks
that implements PlaneView
.
Also has a number of utility class methods.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface facets.core.app.avatar.PlaneView |
---|
PlaneView.ResizeResponse |
Field Summary | |
---|---|
static int |
LINES_GROUP
|
static int |
LINES_SINGLE
|
static int |
MODEL_CONSTRAIN
|
static int |
MODEL_EDIT
|
static int |
MODEL_ELEMENTS
|
static int |
MODEL_SNAP
|
static double |
NO_SCALE
|
Fields inherited from class facets.core.app.avatar.AvatarViewWorks |
---|
avatars |
Fields inherited from interface facets.core.app.avatar.PlaneView |
---|
INCH_PTS, ZOOM_IN, ZOOM_OUT |
Fields inherited from interface facets.core.superficial.app.SView |
---|
NO_VIEW |
Constructor Summary | |
---|---|
PlaneViewWorks(java.lang.String title,
double showWidth,
double showHeight,
Vector plotShift,
double scale,
AvatarPolicies avatars)
|
Method Summary | |
---|---|
java.lang.Object |
backgroundStyle()
Style for view background. |
boolean |
doConstrain()
|
boolean |
doSnap()
|
boolean |
isLive()
Implements interface method. |
int |
markLeapPixels()
Specifies the pixel gap that should be leapt to a point mark. |
int |
markPixels()
Specifies the pixel size of a point mark. |
STarget |
newFrame()
|
protected STarget[] |
newFrameElements()
|
Line[][] |
newLineSets(Point at,
double width,
double height,
int count)
Generate sets of abstract lines. |
Line[] |
newTestLineSet(double scale,
Point boxAt,
double height,
double width,
int shiftCount)
|
int |
pickHitPixels()
Specifies the pixel gap that counts as a hit when picking. |
Vector |
plotShift()
The location of the viewport origin. |
PlaneView.ResizeResponse |
resizeResponse()
Does the view adjust its scale or its shape if the viewer facet is resized? |
double |
scale()
|
void |
setShowValues(double width,
double height,
Vector plotShift,
double scale)
Set the view area. |
void |
setState(java.lang.Object state)
Implements interface method. |
double |
showHeight()
The minimum unscaled height of the viewport onto the plane. |
double |
showWidth()
The minimum unscaled width of the viewport onto the plane. |
java.lang.Object |
stamp()
Identifier that should change with each change in view properties. |
java.lang.String |
toString()
Re-implementation wrapping Debug.info(Object) . |
int |
ySign()
Which way up is the unscaled Y axis?. |
Methods inherited from class facets.core.app.avatar.AvatarViewWorks |
---|
allowMultipleSelection, avatars, doesDnD |
Methods inherited from class facets.core.superficial.app.SelectionView |
---|
newViewerSelection |
Methods inherited from class facets.util.StatefulCore |
---|
copyState, setTitle, stateEquals, stateStamp, title, updateStateStamp |
Methods inherited from class facets.util.Tracer |
---|
trace, trace, trace, trace, trace, traceDebug, traceDebug, traceObjectText, traceOutput, traceOutputWithClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface facets.core.app.avatar.AvatarView |
---|
avatars, doesDnD |
Methods inherited from interface facets.core.superficial.app.SView |
---|
allowMultipleSelection |
Methods inherited from interface facets.util.Titled |
---|
title |
Field Detail |
---|
public static final int LINES_SINGLE
public static final int LINES_GROUP
public static final int MODEL_CONSTRAIN
public static final int MODEL_SNAP
public static final int MODEL_EDIT
public static final int MODEL_ELEMENTS
public static final double NO_SCALE
Constructor Detail |
---|
public PlaneViewWorks(java.lang.String title, double showWidth, double showHeight, Vector plotShift, double scale, AvatarPolicies avatars)
Method Detail |
---|
public void setShowValues(double width, double height, Vector plotShift, double scale)
PlaneView
setShowValues
in interface PlaneView
width
- will be returned as PlaneView.showWidth()
height
- will be returned as PlaneView.showHeight()
plotShift
- will be returned as PlaneView.plotShift()
scale
- will be returned aspublic STarget newFrame()
public void setState(java.lang.Object state)
StatefulCore
Does not actually set any state, but does change the value returned
by StatefulCore.stateStamp()
: if updating itself by calling StatefulCore.updateStateStamp()
,
otherwise by casting src
to a Stateful
and copying its StatefulCore.stateStamp()
setState
in interface Stateful
setState
in class StatefulCore
state
- must be non-null and interpretable by the implementation
as state information; it will usually be another instance of the
Stateful
's class.public java.lang.String toString()
StatefulCore
Debug.info(Object)
.
toString
in class StatefulCore
public final Line[][] newLineSets(Point at, double width, double height, int count)
The number and arrangement of lines is unspecified, but each set will fit
within a box proportioned as defined by width
and height
;
the sets will be generated right and down from at
.
at
- the starting point for generating line setswidth
- the width of the defining bounding boxheight
- the height of the defining bounding boxcount
- how many line sets to generate (the more, the smaller)protected STarget[] newFrameElements()
public final Line[] newTestLineSet(double scale, Point boxAt, double height, double width, int shiftCount)
public final double showHeight()
PlaneView
showHeight
in interface PlaneView
double
public final double showWidth()
PlaneView
showWidth
in interface PlaneView
double
public final Vector plotShift()
PlaneView
plotShift
in interface PlaneView
Vector
public final double scale()
scale
in interface PlaneView
public int ySign()
PlaneView
ySign
in interface PlaneView
public PlaneView.ResizeResponse resizeResponse()
PlaneView
resizeResponse
in interface PlaneView
public java.lang.Object backgroundStyle()
AvatarView
Can specify colour, texture etc.
backgroundStyle
in interface AvatarView
public boolean doConstrain()
public boolean doSnap()
public boolean isLive()
SelectionView
Default returns false
.
isLive
in interface SView
isLive
in class SelectionView
public final int markLeapPixels()
AvatarView
markLeapPixels
in interface AvatarView
public final int markPixels()
AvatarView
markPixels
in interface AvatarView
public final int pickHitPixels()
AvatarView
pickHitPixels
in interface AvatarView
public java.lang.Object stamp()
PlaneView
stamp
in interface PlaneView
Integer
containing an auto-incremented value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |