projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made GUIsel2_4 more "tabellaric"
[Mograsim.git]
/
net.mograsim.logic.ui
/
src
/
net
/
mograsim
/
logic
/
ui
/
model
/
components
/
SubmodelComponent.java
diff --git
a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/SubmodelComponent.java
b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/SubmodelComponent.java
index
72663a2
..
43ec22b
100644
(file)
--- a/
net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/SubmodelComponent.java
+++ b/
net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/SubmodelComponent.java
@@
-58,6
+58,11
@@
public abstract class SubmodelComponent extends GUIComponent
requestRedraw();// needed if there is no submodel interface pin
}
requestRedraw();// needed if there is no submodel interface pin
}
+ protected double getSubmodelScale()
+ {
+ return submodelScale;
+ }
+
/**
* Returns the submodel pin.
*/
/**
* Returns the submodel pin.
*/
@@
-153,16
+158,16
@@
public abstract class SubmodelComponent extends GUIComponent
if (labelAlpha != 0)
{
gc.setAlpha(labelAlpha);
if (labelAlpha != 0)
{
gc.setAlpha(labelAlpha);
- renderSymbol(gc);
+ renderSymbol(gc
, visibleRegion
);
}
conf.reset(gc);
// draw the outline after all other operations to make interface pins look better
}
conf.reset(gc);
// draw the outline after all other operations to make interface pins look better
- renderOutline(gc);
+ renderOutline(gc
, visibleRegion
);
}
}
- protected abstract void renderOutline(GeneralGC gc);
+ protected abstract void renderOutline(GeneralGC gc
, Rectangle visibleRegion
);
- protected abstract void renderSymbol(GeneralGC gc);
+ protected abstract void renderSymbol(GeneralGC gc
, Rectangle visibleRegion
);
private static double map(double val, double valMin, double valMax, double mapMin, double mapMax)
{
private static double map(double val, double valMin, double valMax, double mapMin, double mapMax)
{