Package curve.fig
Class F
java.lang.Object
curve.fig.F
-
Field Summary
Modifier and TypeFieldDescription(package private) int
angle in degrees - uses lookup tablesbase points(package private) Board
not sure if required(package private) int
colour index(package private) boolean
cause first time draw(package private) EndPoint
pivot point(package private) EndPoint
swing point(package private) int
id as in working id(indexed)rotated points(package private) boolean
selected(package private) String
sid as in store(file)(package private) Tr
t Translator b f s(package private) static String
zz -
Constructor Summary
ConstructorDescriptionconstructor called from interpretercommon constructor with sidconstructor called from file inputcommon constructor without sidtodo -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear selectedvoid
drawboolean
flip selectedint
set colour indexboolean
getDirty()
get dirty bitint
getID()
get idboolean
is selected?out()
to Stringvoid
setColourIndex
(int ci) get Colour indexvoid
setDirty
(boolean dirty) set dirty bitvoid
set selectedtoString()
to String
-
Field Details
-
zz
zz -
basePoints
-
rotPoints
-
colourIndex
int colourIndexcolour index -
id
int idid as in working id(indexed) -
sid
String sidsid as in store(file) -
board
Board boardnot sure if required -
t
Tr tt Translator b f s -
dirty
boolean dirtycause first time draw -
ep1
EndPoint ep1pivot point -
ep2
EndPoint ep2swing point -
angle
int angleangle in degrees - uses lookup tables -
selected
boolean selectedselected
-
-
Constructor Details
-
F
-
F
-
F
-
F
-
F
-
-
Method Details
-
setColourIndex
public void setColourIndex(int ci) get Colour index- Specified by:
setColourIndex
in interfaceColour
- Parameters:
ci
- - colour index
-
getColourIndex
public int getColourIndex()set colour index- Specified by:
getColourIndex
in interfaceColour
- Returns:
- colourIndex -
-
isSelected
public boolean isSelected()is selected?- Specified by:
isSelected
in interfaceColour
- Returns:
- selected
-
flipSelected
public boolean flipSelected()flip selected- Specified by:
flipSelected
in interfaceColour
- Returns:
- new selected value
-
clearSelected
-
setSelected
-
draw
-
getID
-
setDirty
-
getDirty
-
toString
-
out
-