@Override public YoGraphic duplicate(YoVariableRegistry newRegistry) { return new YoGraphicText(getName(), text, yoFramePoint.duplicate(newRegistry), yoFrameYawPitchRoll.duplicate(newRegistry), scale, backgroundColor, textAppearance); } }
private void addText(SimulationConstructionSet scs, YoGraphicsListRegistry yoGraphicsListRegistry, String string) { if (string == null) return; YoGraphicsList yoGraphicsList = new YoGraphicsList("TextDescription"); textPoint = new YoFramePoint("Desc", worldFrame, registry); textPoint.set(focusX, focusY, -.003); YoFrameOrientation orientation = new YoFrameOrientation("Desc", worldFrame, registry); double scale = 0.5; YoGraphicText desc = new YoGraphicText("FootstepDescription", string, textPoint, orientation, scale, Color.WHITE, Color.BLACK); yoGraphicsList.add(desc); if (yoGraphicsListRegistry != null) yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList); }
private void addText(SimulationConstructionSet scs, YoGraphicsListRegistry yoGraphicsListRegistry, String string) { if (string == null) return; YoGraphicsList yoGraphicsList = new YoGraphicsList("TextDescription"); textPoint = new YoFramePoint3D("Desc", worldFrame, registry); textPoint.set(focusX, focusY, -.003); YoFrameYawPitchRoll orientation = new YoFrameYawPitchRoll("Desc", worldFrame, registry); double scale = 0.5; YoGraphicText desc = new YoGraphicText("FootstepDescription", string, textPoint, orientation, scale, Color.WHITE, Color.BLACK); yoGraphicsList.add(desc); if (yoGraphicsListRegistry != null) yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList); }