public class SelectorModel extends FeatureModel implements SelectorConfigurer
Constructor and Description |
---|
SelectorModel()
Create a selector.
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
getClickableArea()
Get the clickable area.
|
Rectangle |
getSelectionArea()
Get the selection area.
|
int |
getSelectionClick()
Get the click used to start selection.
|
double |
getSelectRawH()
Get the raw height.
|
double |
getSelectRawY()
Get the raw y.
|
boolean |
isSelecting()
Check if is in selection mode.
|
void |
setClickableArea(Rectangle area)
Set clickable area (where selection can be performed on screen).
|
void |
setClickableArea(Viewer viewer)
Set clickable area (where selection can be performed on screen).
|
void |
setClickSelection(int click)
Set the mouse click selection value.
|
void |
setSelecting(boolean selecting)
Set the selection flag.
|
void |
setSelectRawH(double selectRawH)
Set the height raw selection.
|
void |
setSelectRawY(double selectRawY)
Set the vertical raw selection.
|
checkListener, getFeature, getFeatures, getFeaturesType, hasFeature, prepare
public void setSelecting(boolean selecting)
selecting
- The selection flag.public int getSelectionClick()
public void setSelectRawY(double selectRawY)
selectRawY
- The vertical raw selection.public void setSelectRawH(double selectRawH)
selectRawH
- The height raw selection.public Rectangle getSelectionArea()
public Rectangle getClickableArea()
public boolean isSelecting()
true
if selecting, false
else.public double getSelectRawY()
public double getSelectRawH()
public void setClickSelection(int click)
SelectorConfigurer
setClickSelection
in interface SelectorConfigurer
click
- The click number.InputDevicePointer
public void setClickableArea(Rectangle area)
SelectorConfigurer
setClickableArea
in interface SelectorConfigurer
area
- The representation of the clickable area.public void setClickableArea(Viewer viewer)
SelectorConfigurer
setClickableArea
in interface SelectorConfigurer
viewer
- The viewer reference.Copyright © 2016 Byron 3D Games Studio. All rights reserved.